From: Timo Sirainen Date: Wed, 4 Apr 2012 01:33:41 +0000 (+0300) Subject: lib-storage: Previous change incorrectly reverted setting parent shared namespace... X-Git-Tag: 2.1.4~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31327a74b86728e201fcedd0acaecf69d077bf1d;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Previous change incorrectly reverted setting parent shared namespace usable. --- diff --git a/src/lib-storage/index/shared/shared-storage.c b/src/lib-storage/index/shared/shared-storage.c index 651a058eba..f681d0ba81 100644 --- a/src/lib-storage/index/shared/shared-storage.c +++ b/src/lib-storage/index/shared/shared-storage.c @@ -328,6 +328,9 @@ int shared_storage_get_namespace(struct mail_namespace **_ns, /* this user doesn't have a usable storage */ new_ns->flags |= NAMESPACE_FLAG_UNUSABLE; } + /* mark the shared namespace root as usable, since it now has + child namespaces */ + ns->flags |= NAMESPACE_FLAG_USABLE; *_name = mailbox_list_get_storage_name(new_ns->list, t_strconcat(new_ns->prefix, name, NULL)); *_ns = new_ns;