dovecot-1.1: convert plugin: If alt_hierarchy_char isn't specifi...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 26 04:53:00 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/48cec9cce8d6
changeset: 8290:48cec9cce8d6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 25 21:52:55 2009 -0400
description:
convert plugin: If alt_hierarchy_char isn't specified, don't truncate mailbox names.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/convert/convert-storage.c |    2 +-

diffs (12 lines):

diff -r 295d75f73467 -r 48cec9cce8d6 src/plugins/convert/convert-storage.c
--- a/src/plugins/convert/convert-storage.c	Mon May 25 21:43:25 2009 -0400
+++ b/src/plugins/convert/convert-storage.c	Mon May 25 21:52:55 2009 -0400
@@ -113,7 +113,7 @@ 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)
+	if (src_sep == dest_sep || set->alt_hierarchy_char == '\0')
 		return name;
 
 	dest_name = t_strdup_noconst(name);


More information about the dovecot-cvs mailing list