dovecot-1.3: Allow shared namespaces to have subscriptions=yes.

dovecot at dovecot.org dovecot at dovecot.org
Sat Apr 18 00:20:43 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/40607877c3f9
changeset: 9137:40607877c3f9
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 17 17:20:24 2009 -0400
description:
Allow shared namespaces to have subscriptions=yes.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/shared/shared-storage.c |    3 ++-

diffs (13 lines):

diff -r 35c69f57621e -r 40607877c3f9 src/lib-storage/index/shared/shared-storage.c
--- a/src/lib-storage/index/shared/shared-storage.c	Fri Apr 17 15:40:31 2009 -0400
+++ b/src/lib-storage/index/shared/shared-storage.c	Fri Apr 17 17:20:24 2009 -0400
@@ -257,7 +257,8 @@ int shared_storage_get_namespace(struct 
 	ns->user = user;
 	ns->prefix = i_strdup(str_c(prefix));
 	ns->owner = owner;
-	ns->flags = NAMESPACE_FLAG_LIST_PREFIX | NAMESPACE_FLAG_HIDDEN |
+	ns->flags = (NAMESPACE_FLAG_SUBSCRIPTIONS & _storage->ns->flags) |
+		NAMESPACE_FLAG_LIST_PREFIX | NAMESPACE_FLAG_HIDDEN |
 		NAMESPACE_FLAG_AUTOCREATED | NAMESPACE_FLAG_INBOX;
 	ns->sep = _storage->ns->sep;
 	ns->mail_set = _storage->set;


More information about the dovecot-cvs mailing list