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

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


details:   http://hg.dovecot.org/dovecot-2.0/rev/b7722e6ccccb
changeset: 9369:b7722e6ccccb
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 e76d521817d3 -r b7722e6ccccb src/plugins/convert/convert-storage.c
--- a/src/plugins/convert/convert-storage.c	Mon May 25 21:44:24 2009 -0400
+++ b/src/plugins/convert/convert-storage.c	Mon May 25 21:52:55 2009 -0400
@@ -119,7 +119,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