dovecot-2.0: convert plugin: Fixed changing hierarchy separators...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 10 05:10:25 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/c0914a6a2e36
changeset: 9604:c0914a6a2e36
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 09 22:09:57 2009 -0400
description:
convert plugin: Fixed changing hierarchy separators in mailbox names when alt_hierarchy_char isn't set.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/plugins/convert/convert-storage.c |    4 ++--

diffs (18 lines):

diff -r caea6aaadde4 -r c0914a6a2e36 src/plugins/convert/convert-storage.c
--- a/src/plugins/convert/convert-storage.c	Thu Jul 09 20:49:34 2009 -0400
+++ b/src/plugins/convert/convert-storage.c	Thu Jul 09 22:09:57 2009 -0400
@@ -110,12 +110,12 @@ mailbox_name_convert(struct mail_namespa
 	src_sep = mailbox_list_get_hierarchy_sep(source_ns->list);
 	dest_sep = mailbox_list_get_hierarchy_sep(dest_ns->list);
 
-	if (src_sep == dest_sep || set->alt_hierarchy_char == '\0')
+	if (src_sep == dest_sep)
 		return name;
 
 	dest_name = t_strdup_noconst(name);
 	for (p = dest_name; *p != '\0'; p++) {
-		if (*p == dest_sep)
+		if (*p == dest_sep && set->alt_hierarchy_char != '\0')
 			*p = set->alt_hierarchy_char;
 		else if (*p == src_sep)
 			*p = dest_sep;


More information about the dovecot-cvs mailing list