mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* 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
08cbb3d96c
commit
70c0a26307
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user