]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: Fix to previous commit - counting quota-disabled-storages may have returned...
authorTimo Sirainen <tss@iki.fi>
Mon, 28 Sep 2015 13:37:37 +0000 (16:37 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 28 Sep 2015 13:37:37 +0000 (16:37 +0300)
src/plugins/quota/quota-count.c

index a7a402bddfaae1d7175696afb20a88101586b4f2..103c6714fe4d8f83cdc7276898720f8150f08c44 100644 (file)
@@ -36,6 +36,7 @@ quota_count_mailbox(struct quota_root *root, struct mail_namespace *ns,
        box = mailbox_alloc(ns->list, vname, MAILBOX_FLAG_READONLY);
        if ((box->storage->class_flags & MAIL_STORAGE_CLASS_FLAG_NOQUOTA) != 0) {
                /* quota doesn't exist for this mailbox/storage */
+               ret = 0;
        } else if (mailbox_get_metadata(box, root->quota->set->vsizes ?
                                        MAILBOX_METADATA_VIRTUAL_SIZE :
                                        MAILBOX_METADATA_PHYSICAL_SIZE,