[dovecot-cvs] dovecot/src/imap cmd-list.c,1.54,1.55
cras at dovecot.org
cras at dovecot.org
Mon Aug 7 01:01:17 EEST 2006
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv8498
Modified Files:
cmd-list.c
Log Message:
When listing INBOX from inbox=yes namespace, don't insert the
namespace prefix
Index: cmd-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- cmd-list.c 6 Aug 2006 21:45:12 -0000 1.54
+++ cmd-list.c 6 Aug 2006 22:01:15 -0000 1.55
@@ -123,7 +123,10 @@
name_str = t_str_new(256);
while ((list = mail_storage_mailbox_list_next(ctx->list_ctx)) != NULL) {
str_truncate(name_str, 0);
- str_append(name_str, ctx->ns->prefix);
+ /* when listing INBOX from inbox=yes namespace, don't insert
+ the namespace prefix */
+ if (strcasecmp(list->name, "INBOX") != 0 || !ctx->ns->inbox)
+ str_append(name_str, ctx->ns->prefix);
str_append(name_str, list->name);
if (ctx->ns->sep != ctx->ns->real_sep) {
More information about the dovecot-cvs
mailing list