[dovecot-cvs] dovecot/src/imap cmd-list.c,1.51.2.4,1.51.2.5
tss at dovecot.org
tss at dovecot.org
Thu Nov 2 20:42:26 UTC 2006
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv6692
Modified Files:
Tag: branch_1_0
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.51.2.4
retrieving revision 1.51.2.5
diff -u -d -r1.51.2.4 -r1.51.2.5
--- cmd-list.c 8 Oct 2006 21:42:37 -0000 1.51.2.4
+++ cmd-list.c 2 Nov 2006 20:42:24 -0000 1.51.2.5
@@ -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