forked from extern/egroupware
* Mail/Admin: fix setting ACL or vaction notice from Admin app, if IMAP auth uses email address from account
This commit is contained in:
parent
0f066574fc
commit
126116584c
@ -1123,7 +1123,7 @@ class Imap extends Horde_Imap_Client_Socket implements Imap\Iface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$username = $this->getMailBoxUserName($_username);
|
$username = $this->getMailBoxUserName($_username);
|
||||||
if($this->loginType == 'vmailmgr' || $this->loginType == 'email' || $this->loginType == 'uidNumber') {
|
if($this->loginType == 'vmailmgr' || $this->loginType == 'uidNumber') {
|
||||||
$username .= '@'. $this->domainName;
|
$username .= '@'. $this->domainName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,6 +95,7 @@ class Sieve extends Horde\ManageSieve
|
|||||||
'user' => $params->isAdminConnection ? $params->acc_imap_admin_username : $params->acc_imap_username,
|
'user' => $params->isAdminConnection ? $params->acc_imap_admin_username : $params->acc_imap_username,
|
||||||
'password' => $params->isAdminConnection ? $params->acc_imap_admin_password : $params->acc_imap_password,
|
'password' => $params->isAdminConnection ? $params->acc_imap_admin_password : $params->acc_imap_password,
|
||||||
'euser' => $params->isAdminConnection ? $params->acc_imap_username : null,
|
'euser' => $params->isAdminConnection ? $params->acc_imap_username : null,
|
||||||
|
//'logger' => new \admin_mail_logger('/tmp/sieve.log'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
parent::__construct($params);
|
parent::__construct($params);
|
||||||
|
@ -84,7 +84,7 @@ class mail_acl
|
|||||||
$mailbox = $_GET['mailbox']? base64_decode($_GET['mailbox']): $content['mailbox'][0];
|
$mailbox = $_GET['mailbox']? base64_decode($_GET['mailbox']): $content['mailbox'][0];
|
||||||
if (empty($mailbox))
|
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)
|
if (!$this->imap->isAdminConnection)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user