]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Maildir++ quota: If there'a s "*" quota rule with 0 limits, keep the quota up-to...
authorTimo Sirainen <tss@iki.fi>
Sun, 5 Oct 2008 16:11:35 +0000 (19:11 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 5 Oct 2008 16:11:35 +0000 (19:11 +0300)
--HG--
branch : HEAD

src/plugins/quota/quota-maildir.c

index e7afb0f995334ee74c620bf3f0e061d1725e1be6..42b1b0b87e0e08c64004a3e496f60a7bbe8ae69e 100644 (file)
@@ -628,7 +628,10 @@ static int maildirquota_refresh(struct maildir_quota_root *root)
                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);