dovecot-2.2: quota: Don't assume mail is too large if a quota ro...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 29 08:29:28 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/e00f9e93a9a3
changeset: 18489:e00f9e93a9a3
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 29 10:13:19 2015 +0200
description:
quota: Don't assume mail is too large if a quota root has mail count limit but not size limit.
Based on patch by Alexei Gradinari
diffstat:
src/plugins/quota/quota.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r aa8786771490 -r e00f9e93a9a3 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c Tue Apr 28 14:20:39 2015 +0200
+++ b/src/plugins/quota/quota.c Wed Apr 29 10:13:19 2015 +0200
@@ -1093,14 +1093,12 @@
ret = quota_root_get_rule_limits(roots[i],
mailbox_get_vname(ctx->box),
&bytes_limit, &count_limit);
- if (ret == 0)
- continue;
if (ret < 0)
return -1;
/* if size is bigger than any limit, then
it is bigger than the lowest limit */
- if (size > bytes_limit) {
+ if (bytes_limit > 0 && size > bytes_limit) {
*too_large_r = TRUE;
break;
}
More information about the dovecot-cvs
mailing list