]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: Added a temporary hack to avoid virtual mailboxes being counted in quota.
authorTimo Sirainen <tss@iki.fi>
Mon, 1 Nov 2010 14:33:26 +0000 (14:33 +0000)
committerTimo Sirainen <tss@iki.fi>
Mon, 1 Nov 2010 14:33:26 +0000 (14:33 +0000)
src/plugins/quota/quota-storage.c

index b742eab0194bbc2171ee787286dd8d2ec62d42d5..93324df0be3bc5be76508d825e8c4fa6a8da7361 100644 (file)
@@ -514,7 +514,8 @@ void quota_mailbox_list_created(struct mailbox_list *list)
        if (root != NULL)
                root->ns = list->ns;
 
-       if ((list->ns->flags & NAMESPACE_FLAG_NOQUOTA) != 0)
+       if ((list->ns->flags & NAMESPACE_FLAG_NOQUOTA) != 0 ||
+           strncmp(list->ns->set->location, "virtual:", 8) == 0) /* FIXME: remove ugly workaround */
                add = FALSE;
        else if (list->ns->owner == NULL) {
                /* public namespace - add quota only if namespace is