[Dovecot] LIST returning INBOX.INBOX
Bill Boebel
bill at webmail.us
Wed Jul 5 18:17:56 EEST 2006
With rc2, the LIST command is returning both INBOX and INBOX.INBOX when using the following namespace setting...
namespace private {
separator = .
prefix = INBOX.
inbox = yes
location = maildir:%h:INDEX=/var/index/%h
}
This patch fixed it for us:
*** src/imap/cmd-list.c 2006-07-05 11:14:58.000000000 -0400
--- src/imap/cmd-list.c.new 2006-07-05 11:15:45.000000000 -0400
***************
*** 147,156 ****
--- 147,159 ----
name = "INBOX";
ctx->inbox_found = TRUE;
}
+ if (strcasecmp(list->name, "INBOX") == 0)
+ continue;
+
str_truncate(str, 0);
str_printfa(str, "* %s (%s) \"%s\" ",
ctx->lsub ? "LSUB" : "LIST",
mailbox_flags2str(list->flags, ctx->list_flags),
ctx->ns->sep_str);
More information about the dovecot
mailing list