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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/dee948c9f14f
changeset: 8321:dee948c9f14f
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 527ffc77f00d -r dee948c9f14f src/plugins/convert/convert-storage.c
--- a/src/plugins/convert/convert-storage.c	Wed Jul 08 14:10:11 2009 -0400
+++ b/src/plugins/convert/convert-storage.c	Thu Jul 09 22:09:57 2009 -0400
@@ -113,12 +113,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