summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-10 09:26:56 +0000
committeralecpl <alec@alec.pl>2009-04-10 09:26:56 +0000
commit942069969cfd95784f872b3bef2cc6323fc55c3d (patch)
tree9dd31d27617d98c63e5cf7e45f8ea2e2429a2e78 /program/include/rcmail.php
parent82c45a19529e818dc6b290491e79e7e2feeedcf6 (diff)
- Support several e-mail addresses per user from virtuser_file (#1485678)
- return NULL from rcube_user::email2user if user not found (#1485801)
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index f109c16fd..71601b526 100644
--- a/program/include/rcmail.php
+++ b/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, '@'))