Returns the identity's id that matches the passed addresses.
public getMatchingIdentity ( mixed $addresses, boolean $search_own = true ) : integer | ||
$addresses | mixed | Either an array or a single string or a comma-separated list of email addresses. |
$search_own | boolean | Search for a matching identity in own addresses also? |
return | integer | The id of the first identity that from or alias addresses match (one of) the passed addresses or null if none matches. |