dovecot: Don't convert real separators to virtual separators. Th...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 16 16:16:50 EET 2008
details: http://hg.dovecot.org/dovecot/rev/5d4efb4fb414
changeset: 7254:5d4efb4fb414
user: Timo Sirainen <tss at iki.fi>
date: Sat Feb 16 16:17:14 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 de707046ab32 -r 5d4efb4fb414 src/imap/cmd-list.c
--- a/src/imap/cmd-list.c Sat Feb 16 15:55:19 2008 +0200
+++ b/src/imap/cmd-list.c Sat Feb 16 16:17:14 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