dovecot-1.1: Don't convert real separators to virtual separators...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 16 16:16:47 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/cd7eeb8cc7fc
changeset: 7255:cd7eeb8cc7fc
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Feb 16 16:17:17 2008 +0200
description:
Don't convert real separators to virtual separators. The mailbox listing
code already did it for us.

diffstat:

1 file changed, 1 insertion(+), 13 deletions(-)
src/imap/cmd-list.c |   14 +-------------

diffs (24 lines):

diff -r a9ddd7d0e160 -r cd7eeb8cc7fc src/imap/cmd-list.c
--- a/src/imap/cmd-list.c	Sat Feb 16 15:54:39 2008 +0200
+++ b/src/imap/cmd-list.c	Sat Feb 16 16:17:17 2008 +0200
@@ -302,19 +302,7 @@ list_namespace_mailboxes(struct cmd_list
 	str = t_str_new(256);
 	name_str = t_str_new(256);
 	while ((info = mailbox_list_iter_next(ctx->list_iter)) != NULL) {
-		if (ctx->ns->sep == ctx->ns->real_sep)
-			name = info->name;
-		else {
-			char *p;
-
-			str_truncate(name_str, 0);
-			str_append(name_str, info->name);
-			for (p = str_c_modifiable(name_str); *p != '\0'; p++) {
-				if (*p == ctx->ns->real_sep)
-					*p = ctx->ns->sep;
-			}
-			name = str_c(name_str);
-		}
+		name = info->name;
 		flags = info->flags;
 
 		if (strcasecmp(name, "INBOX") == 0) {


More information about the dovecot-cvs mailing list