From 53e85e63dbbd681369390f084d40776750b2c232 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 1 Nov 2010 14:33:26 +0000 Subject: [PATCH] quota: Added a temporary hack to avoid virtual mailboxes being counted in quota. --- src/plugins/quota/quota-storage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3