changeset 8245:2b39142e6430 HEAD

Maildir++ quota: If there'a s "*" quota rule with 0 limits, keep the quota up-to-date anyway.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Oct 2008 19:11:35 +0300
parents 327c893590c3
children 8e5fd70ea3be
files src/plugins/quota/quota-maildir.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		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);