From: Timo Sirainen Date: Fri, 29 Apr 2016 15:53:04 +0000 (+0300) Subject: quota: Fixed quota_over_flag handling when quota usage==limit X-Git-Tag: 2.2.25.rc1~363 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3120486f617d6ab2634bb403bef5d1fde761442;p=thirdparty%2Fdovecot%2Fcore.git quota: Fixed quota_over_flag handling when quota usage==limit It couldn't really work correctly otherwise. If we've reached the quota, we want to start rejecting new mails. --- diff --git a/src/plugins/quota/quota.c b/src/plugins/quota/quota.c index d75cee3d28..169278de6f 100644 --- a/src/plugins/quota/quota.c +++ b/src/plugins/quota/quota.c @@ -1029,7 +1029,7 @@ quota_over_flag_check_root(struct mail_user *user, struct quota_root *root) (unsigned long long)value, (unsigned long long)limit); } - if (ret > 0 && value > limit) + if (ret > 0 && value >= limit) cur_overquota = TRUE; } if (root->quota->set->debug) {