From e6dfe937343e7d5e2a9f5a188a44d922460fbbef Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 16 Apr 2009 22:07:08 -0400 Subject: [PATCH] maildir++ quota: Make sure we don't create maildirsize file to wrong namespace. --HG-- branch : HEAD --- src/plugins/quota/quota-maildir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/quota/quota-maildir.c b/src/plugins/quota/quota-maildir.c index b2856f2b06..a493f5bc34 100644 --- a/src/plugins/quota/quota-maildir.c +++ b/src/plugins/quota/quota-maildir.c @@ -767,7 +767,8 @@ maildir_quota_storage_added(struct quota *quota, struct mail_storage *storage) roots = array_get_modifiable("a->roots, &count); for (i = 0; i < count; i++) { if (roots[i]->backend.name == quota_backend_maildir.name && - (roots[i]->ns_prefix == NULL || + ((roots[i]->ns_prefix == NULL && + storage->ns->type == NAMESPACE_PRIVATE) || roots[i]->ns == storage->ns)) maildir_quota_root_storage_added(roots[i], storage); } -- 2.47.3