Add email addresses of "all my aliases" in mail vacation, not account imap_username

This commit is contained in:
Hadi Nategh 2014-08-01 14:46:36 +00:00
parent eb350e2745
commit 9694a4c9f8

View File

@ -443,7 +443,7 @@ class mail_sieve
if (is_null($accountID)) $accountID = $GLOBALS['egw_info']['user']['account_id']; if (is_null($accountID)) $accountID = $GLOBALS['egw_info']['user']['account_id'];
$accAllIdentities = $this->account->smtpServer()->getAccountEmailAddress(accounts::id2name($accountID)); $accAllIdentities = $this->account->smtpServer()->getAccountEmailAddress(accounts::id2name($accountID));
$allAliases = array($this->account->acc_imap_username); $allAliases = array($this->account->ident_email);
foreach ($accAllIdentities as &$arrVal) foreach ($accAllIdentities as &$arrVal)
{ {
if ($arrVal['type'] !='default') if ($arrVal['type'] !='default')