Mercurial > dovecot > core-2.2
changeset 9140:7be0a6c4bc6b HEAD
Maildir++ quota: Recalculation was broken if limits were defined by maildirsize file (and not quota_rules).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 20 Apr 2009 12:35:32 -0400 |
parents | a3e0524e8af8 |
children | 1a49747f9445 |
files | src/plugins/quota/quota-maildir.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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)