dovecot-1.3: Maildir++ quota: Recalculation was broken if limits...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Apr 20 19:36:22 EEST 2009
details: http://hg.dovecot.org/dovecot-1.3/rev/7be0a6c4bc6b
changeset: 9140:7be0a6c4bc6b
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 20 12:35:32 2009 -0400
description:
Maildir++ quota: Recalculation was broken if limits were defined by maildirsize file (and not quota_rules).
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/plugins/quota/quota-maildir.c | 4 +++-
diffs (14 lines):
diff -r a3e0524e8af8 -r 7be0a6c4bc6b src/plugins/quota/quota-maildir.c
--- a/src/plugins/quota/quota-maildir.c Mon Apr 20 12:21:48 2009 -0400
+++ b/src/plugins/quota/quota-maildir.c Mon Apr 20 12:35:32 2009 -0400
@@ -642,7 +642,9 @@ static int maildirquota_refresh(struct m
ret = maildirsize_read(root);
} T_END;
if (ret == 0) {
- if (root->root.set->default_rule.bytes_limit == 0 &&
+ if (root->root.bytes_limit == 0 &&
+ root->root.count_limit == 0 &&
+ root->root.set->default_rule.bytes_limit == 0 &&
root->root.set->default_rule.count_limit == 0) {
/* no quota */
if (!root->root.set->force_default_rule)
More information about the dovecot-cvs
mailing list