]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: Fixed quota_over_flag handling when quota usage==limit
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 29 Apr 2016 15:53:04 +0000 (18:53 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 29 Apr 2016 15:56:15 +0000 (18:56 +0300)
It couldn't really work correctly otherwise. If we've reached the quota, we
want to start rejecting new mails.

src/plugins/quota/quota.c

index d75cee3d288c57ed54305ea49fe63597861935cf..169278de6f727dfbf92490a9d332cb3eaa949d5e 100644 (file)
@@ -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) {