]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
maildir++ quota: Support "NOQUOTA" as valid backend string.
authorTimo Sirainen <tss@iki.fi>
Wed, 19 May 2010 13:48:20 +0000 (15:48 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 19 May 2010 13:48:20 +0000 (15:48 +0200)
--HG--
branch : HEAD

src/plugins/quota/quota-maildir.c

index 226fb17c59d2ff33c8738963ff7e11578432af28..6f003e18b761fb393686199bf11fc20aa53ba7da 100644 (file)
@@ -741,7 +741,10 @@ maildir_quota_parse_rule(struct quota_root_settings *root_set ATTR_UNUSED,
 {
        uint64_t bytes, count;
 
-       if (!maildir_parse_limit(str, &bytes, &count)) {
+       if (strcmp(str, "NOQUOTA") == 0) {
+               bytes = 0;
+               count = 0;
+       } else if (!maildir_parse_limit(str, &bytes, &count)) {
                *error_r = "Invalid Maildir++ quota rule";
                return FALSE;
        }