mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
give quota-limit from SMTP/SQL precedence over (cached) quota from Dovecot
This commit is contained in:
parent
32a5cdb151
commit
832276f969
@ -316,6 +316,11 @@ class Account implements \ArrayAccess
|
|||||||
$this->imapServer($this->user) && is_a($this->imapServer, __NAMESPACE__.'\\Imap') &&
|
$this->imapServer($this->user) && is_a($this->imapServer, __NAMESPACE__.'\\Imap') &&
|
||||||
($data = $this->imapServer->getUserData($GLOBALS['egw']->accounts->id2name($this->user))))
|
($data = $this->imapServer->getUserData($GLOBALS['egw']->accounts->id2name($this->user))))
|
||||||
{
|
{
|
||||||
|
// give quota-limit from SMTP/SQL precedence over (cached) quota from Dovecot
|
||||||
|
if (isset($this->params['quotaLimit']) && is_a($this->imapServer, __NAMESPACE__.'\\Imap\\Dovecot'))
|
||||||
|
{
|
||||||
|
unset($data['quotaLimit']);
|
||||||
|
}
|
||||||
$this->params = array_merge($this->params, $data);
|
$this->params = array_merge($this->params, $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user