dovecot-1.1: Maildir++ quota: If there'a s "*" quota rule with 0...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 5 19:10:58 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/32c63bf51172
changeset: 7919:32c63bf51172
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 05 19:09:23 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 3b0d23902a32 -r 32c63bf51172 src/plugins/quota/quota-maildir.c
--- a/src/plugins/quota/quota-maildir.c Sun Oct 05 18:42:27 2008 +0300
+++ b/src/plugins/quota/quota-maildir.c Sun Oct 05 19:09:23 2008 +0300
@@ -601,7 +601,10 @@ static int maildirquota_refresh(struct m
if (root->root.default_rule.bytes_limit == 0 &&
root->root.default_rule.count_limit == 0) {
/* no quota */
- return 0;
+ if (!root->root.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