From: Timo Sirainen Date: Mon, 1 Nov 2010 14:33:26 +0000 (+0000) Subject: quota: Added a temporary hack to avoid virtual mailboxes being counted in quota. X-Git-Tag: 2.0.7~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53e85e63dbbd681369390f084d40776750b2c232;p=thirdparty%2Fdovecot%2Fcore.git quota: Added a temporary hack to avoid virtual mailboxes being counted in quota. --- diff --git a/src/plugins/quota/quota-storage.c b/src/plugins/quota/quota-storage.c index b742eab019..93324df0be 100644 --- a/src/plugins/quota/quota-storage.c +++ b/src/plugins/quota/quota-storage.c @@ -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