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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/a9f719f9a509
changeset: 9219:a9f719f9a509
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 754234248510 -r a9f719f9a509 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
@@ -118,12 +118,12 @@ mailbox_name_convert(struct mail_storage
 	src_sep = mail_storage_get_hierarchy_sep(source_storage);
 	dest_sep = mail_storage_get_hierarchy_sep(dest_storage);
 
-	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