[dovecot-cvs] dovecot/src/imap cmd-list.c,1.52,1.53
cras at dovecot.org
cras at dovecot.org
Sun Aug 6 23:58:57 EEST 2006
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv23211
Modified Files:
cmd-list.c
Log Message:
Don't show INBOX if reference parameter is given.
Index: cmd-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- cmd-list.c 28 Jun 2006 13:10:32 -0000 1.52
+++ cmd-list.c 6 Aug 2006 20:58:53 -0000 1.53
@@ -261,11 +261,11 @@
}
}
- /* INBOX check is done only in the beginning of mask.
- Reference parameter doesn't affect it. */
+ /* INBOX check is done only in the beginning of mask. */
ctx->glob = imap_match_init(cmd->pool, ctx->mask,
cur_mask == ctx->mask, ns->sep);
- ctx->match_inbox = imap_match(ctx->glob, "INBOX") == IMAP_MATCH_YES;
+ ctx->match_inbox = *cur_ref != '\0' ? FALSE :
+ imap_match(ctx->glob, "INBOX") == IMAP_MATCH_YES;
if (*cur_ns_prefix != '\0') {
/* namespace prefix still wasn't completely skipped over.
More information about the dovecot-cvs
mailing list