get mail user by name/address?

Discussion in 'General' started by Freescape, Sep 15, 2017 at 12:07 AM.

  1. Freescape

    Freescape New Member

    Hi all,

    I can't seem to find a way to get a user by email address or login via the api. I can obviously do mail_user_get with id => -1 and find the user in the resulting array, but this seems horribly inefficient with a large number of users.

    Is there a trick to doing something like mail_get_user_by_email without querying the db directly?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Freescape

    Freescape New Member

  4. Freescape

    Freescape New Member

    I bought the manual to support the great work you guys are doing by the way, and it's nice work.
    Next time you feel like spending a thousand hours writing docs, maybe you could do an API chapter? :)
     
    till likes this.

Share This Page