diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-10 09:26:56 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-10 09:26:56 +0000 |
| commit | c311601baea5cdc0358c742166d248606624cdd4 (patch) | |
| tree | 55e7230f10b44549f26cf71a19fd88487fdc378e /roundcubemail/program/include/rcmail.php | |
| parent | bce4774ce47a70423ddade948b930ef7feed75b8 (diff) | |
- Support several e-mail addresses per user from virtuser_file (#1485678)
- return NULL from rcube_user::email2user if user not found (#1485801)
git-svn-id: https://svn.roundcube.net/trunk@2384 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index f109c16fd..71601b526 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/program/include/rcmail.php @@ -453,9 +453,10 @@ class rcmail $username .= '@'.$config['username_domain']; } - // try to resolve email address from virtuser table - if (!empty($config['virtuser_file']) && strpos($username, '@')) - $username = rcube_user::email2user($username); + // try to resolve email address from virtuser table + if (strpos($username, '@')) + if ($virtuser = rcube_user::email2user($username)) + $username = $virtuser; // lowercase username if it's an e-mail address (#1484473) if (strpos($username, '@')) |
