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

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


details:   http://hg.dovecot.org/dovecot-2.0/rev/4acd3444ca43
changeset: 9797:4acd3444ca43
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 14 18:46:09 2009 -0400
description:
namespace initialization: Allow plugins to override namespace.real_sep.

diffstat:

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

diffs (15 lines):

diff -r f61dd34e3c35 -r 4acd3444ca43 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:46:09 2009 -0400
@@ -27,7 +27,10 @@ void mail_namespace_finish_list_init(str
 				     struct mailbox_list *list)
 {
 	ns->list = list;
-	ns->real_sep = mailbox_list_get_hierarchy_sep(list);
+
+	/* allow plugins to override real_sep */
+	if (ns->real_sep == '\0')
+		ns->real_sep = mailbox_list_get_hierarchy_sep(list);
 	ns->prefix_len = strlen(ns->prefix);
 
 	if (ns->set->separator != NULL)


More information about the dovecot-cvs mailing list