[dovecot-cvs] dovecot/src/imap cmd-list.c,1.56,1.57

tss at dovecot.org tss at dovecot.org
Thu Nov 2 20:42:28 UTC 2006


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

Modified Files:
	cmd-list.c 
Log Message:
If we had only prefixed namespaces and we listed for "%", INBOX's flags
weren't correct and it wasn't shown at all with LSUB.



Index: cmd-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- cmd-list.c	8 Oct 2006 21:42:38 -0000	1.56
+++ cmd-list.c	2 Nov 2006 20:42:25 -0000	1.57
@@ -361,6 +361,12 @@
 			}
 			cur_mask++;
 		}
+
+		if (*cur_mask == '\0' && ctx->match_inbox) {
+			/* oh what a horrible hack. ns_prefix="INBOX/" and
+			   we wanted to list "%". INBOX should match. */
+			cur_mask = "INBOX";
+		}
 	}
 
 	if (*cur_mask != '*' || strcmp(ctx->mask, "*") == 0) {



More information about the dovecot-cvs mailing list