[dovecot-cvs] dovecot/src/imap cmd-list.c,1.45,1.46

cras at dovecot.org cras at dovecot.org
Sun Apr 17 19:37:40 EEST 2005


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

Modified Files:
	cmd-list.c 
Log Message:
LSUB was returning namespace prefixes.



Index: cmd-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- cmd-list.c	18 Mar 2005 19:45:59 -0000	1.45
+++ cmd-list.c	17 Apr 2005 16:37:37 -0000	1.46
@@ -221,7 +221,8 @@
 		match = ns->hidden ? IMAP_MATCH_NO :
 		       imap_match(ctx->glob, cur_prefix);
 
-		if (match == IMAP_MATCH_YES) {
+		if (match == IMAP_MATCH_YES &&
+		    (ctx->list_flags & MAILBOX_LIST_SUBSCRIBED) == 0) {
 			/* The prefix itself matches */
                         enum mailbox_flags flags;
 			string_t *str = t_str_new(128);



More information about the dovecot-cvs mailing list