[dovecot-cvs] dovecot/src/imap cmd-list.c,1.61,1.62

tss at dovecot.org tss at dovecot.org
Fri Feb 23 18:29:38 UTC 2007


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv2594

Modified Files:
	cmd-list.c 
Log Message:
If prefix.INBOX has children and we're listing under prefix.%, don't drop
the prefix.



Index: cmd-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- cmd-list.c	5 Feb 2007 14:15:56 -0000	1.61
+++ cmd-list.c	23 Feb 2007 18:29:36 -0000	1.62
@@ -117,8 +117,9 @@
 	while ((info = mailbox_list_iter_next(ctx->list_iter)) != NULL) {
 		str_truncate(name_str, 0);
 		/* when listing INBOX from inbox=yes namespace, don't insert
-		   the namespace prefix */
-		if (strcasecmp(info->name, "INBOX") != 0 || !ctx->ns->inbox)
+		   the namespace prefix (note however that LIST prefix.% may
+		   return INBOX if it has children) */
+		if (!ctx->match_inbox || strcasecmp(info->name, "INBOX") != 0)
 			str_append(name_str, ctx->ns->prefix);
 		str_append(name_str, info->name);
 



More information about the dovecot-cvs mailing list