diff --git a/api/src/Mail/Imap.php b/api/src/Mail/Imap.php index 827e4a53dc..6b40f7f931 100644 --- a/api/src/Mail/Imap.php +++ b/api/src/Mail/Imap.php @@ -1158,7 +1158,7 @@ class Imap extends Horde_Imap_Client_Socket implements Imap\Iface } $username = $this->getMailBoxUserName($_username); - if($this->loginType == 'vmailmgr' || $this->loginType == 'email' || $this->loginType == 'uidNumber') { + if($this->loginType == 'vmailmgr' || $this->loginType == 'uidNumber') { $username .= '@'. $this->domainName; } diff --git a/api/src/Mail/Sieve.php b/api/src/Mail/Sieve.php index 93ad95db66..80236465a8 100644 --- a/api/src/Mail/Sieve.php +++ b/api/src/Mail/Sieve.php @@ -95,6 +95,7 @@ class Sieve extends Horde\ManageSieve 'user' => $params->isAdminConnection ? $params->acc_imap_admin_username : $params->acc_imap_username, 'password' => $params->isAdminConnection ? $params->acc_imap_admin_password : $params->acc_imap_password, 'euser' => $params->isAdminConnection ? $params->acc_imap_username : null, + //'logger' => new \admin_mail_logger('/tmp/sieve.log'), ); } parent::__construct($params); diff --git a/mail/inc/class.mail_acl.inc.php b/mail/inc/class.mail_acl.inc.php index ce9a0991ee..a2e5423600 100644 --- a/mail/inc/class.mail_acl.inc.php +++ b/mail/inc/class.mail_acl.inc.php @@ -84,7 +84,7 @@ class mail_acl $mailbox = $_GET['mailbox']? base64_decode($_GET['mailbox']): $content['mailbox'][0]; if (empty($mailbox)) { - $mailbox = $this->imap->isAdminConnection ? $this->imap->getUserMailboxString($this->imap->isAdminConnection) : 'INBOX'; + $mailbox = $this->imap->isAdminConnection ? $this->imap->getUserMailboxString($account_id) : 'INBOX'; } if (!$this->imap->isAdminConnection) {