]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: imapc backend now never enforces the quota itself
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 26 Apr 2017 20:41:03 +0000 (23:41 +0300)
committerGitLab <gitlab@git.dovecot.net>
Thu, 27 Apr 2017 07:01:45 +0000 (10:01 +0300)
It just causes a lot of GETQUOTA/GETQUOTAROOT calls to remove. In theory we
could make this optional, but I doubt anyone would want it.

src/plugins/quota/quota-imapc.c

index 264f85308d221c28b63fa205f3552cf7b1968375..2cc6527d73a08ee440d0bc9d73dce1f8d6a00f88 100644 (file)
@@ -68,6 +68,9 @@ static int imapc_quota_init(struct quota_root *_root, const char *args,
        }
        if (root->box_name == NULL && root->root_name == NULL)
                root->box_name = "INBOX";
+       /* we'll never try to enforce the quota - it's just a lot of
+          unnecessary remote GETQUOTA calls. */
+       _root->no_enforcing = TRUE;
        return 0;
 }