changeset 7255:cd7eeb8cc7fc HEAD

Don't convert real separators to virtual separators. The mailbox listing code already did it for us.
author Timo Sirainen <tss@iki.fi>
date Sat, 16 Feb 2008 16:17:17 +0200
parents a9ddd7d0e160
children 39c2f2adfed1
files src/imap/cmd-list.c
diffstat 1 files changed, 1 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	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) {