From 8cc2007a444fac3c429d2dc9c8cbb04bb4b583e5 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sat, 12 Aug 2017 16:46:00 +0200 Subject: [PATCH] not counting mailman box in quotas, fixes #170 --- bureau/class/m_quota.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/class/m_quota.php b/bureau/class/m_quota.php index 5bff8225..ac0e44e1 100644 --- a/bureau/class/m_quota.php +++ b/bureau/class/m_quota.php @@ -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 */