dovecot-1.2: Maildir++ quota: If there'a s "*" quota rule with 0...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 5 19:11:38 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/2b39142e6430
changeset: 8245:2b39142e6430
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 05 19:11:35 2008 +0300
description:
Maildir++ quota: If there'a s "*" quota rule with 0 limits, keep the quota up-to-date anyway.
diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
src/plugins/quota/quota-maildir.c | 5 ++++-
diffs (15 lines):
diff -r 327c893590c3 -r 2b39142e6430 src/plugins/quota/quota-maildir.c
--- a/src/plugins/quota/quota-maildir.c Sun Oct 05 18:43:48 2008 +0300
+++ b/src/plugins/quota/quota-maildir.c Sun Oct 05 19:11:35 2008 +0300
@@ -628,7 +628,10 @@ static int maildirquota_refresh(struct m
if (root->root.set->default_rule.bytes_limit == 0 &&
root->root.set->default_rule.count_limit == 0) {
/* no quota */
- return 0;
+ if (!root->root.set->force_default_rule)
+ return 0;
+ /* explicitly specified 0 as quota. keep the quota
+ updated even if it's not enforced. */
}
ret = maildirsize_recalculate(root);
More information about the dovecot-cvs
mailing list