dovecot-1.2: namespace initialization: Allow plugins to override...

dovecot at dovecot.org dovecot at dovecot.org
Sat Aug 15 01:47:19 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/be4a5cd32b29
changeset: 9327:be4a5cd32b29
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 14 18:45:20 2009 -0400
description:
namespace initialization: Allow plugins to override namespace.real_sep.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/lib-storage/mail-namespace.c |    4 +++-

diffs (14 lines):

diff -r 5ae611e975ad -r be4a5cd32b29 src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c	Fri Aug 14 18:33:39 2009 -0400
+++ b/src/lib-storage/mail-namespace.c	Fri Aug 14 18:45:20 2009 -0400
@@ -14,7 +14,9 @@ void mail_namespace_init_storage(struct 
 {
 	ns->list = mail_storage_get_list(ns->storage);
 	ns->prefix_len = strlen(ns->prefix);
-	ns->real_sep = mailbox_list_get_hierarchy_sep(ns->list);
+	/* allow plugins to override real_sep */
+	if (ns->real_sep == '\0')
+		ns->real_sep = mailbox_list_get_hierarchy_sep(ns->list);
 
 	if (ns->sep == '\0')
                 ns->sep = ns->real_sep;


More information about the dovecot-cvs mailing list