not counting mailman box in quotas, fixes #170

This commit is contained in:
Benjamin Sonntag 2017-08-12 16:46:00 +02:00
parent 53eec68f08
commit 8cc2007a44
1 changed files with 2 additions and 2 deletions

View File

@ -478,7 +478,7 @@ class m_quota {
/* sum of mailbox sizes from all domains */
function get_size_mail_sum_all() {
return $this->_get_sum_sql("SELECT SUM(bytes) AS sum FROM mailbox;");
return $this->_get_sum_sql("SELECT SUM(bytes) AS sum FROM mailbox WHERE delivery = 'dovecot';;");
}
/* sum of mailbox sizes for one domain */
@ -491,7 +491,7 @@ class m_quota {
/* count of mailbox sizes from all domains */
function get_size_mail_count_all() {
return $this->_get_count_sql("SELECT COUNT(*) AS count FROM mailbox;");
return $this->_get_count_sql("SELECT COUNT(*) AS count FROM mailbox WHERE delivery = 'dovecot';");
}
/* count of mailbox for one domain */