[dovecot-cvs] dovecot/src/imap cmd-list.c,1.20,1.21

cras at procontrol.fi cras at procontrol.fi
Thu Mar 20 19:19:06 EET 2003


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv32684

Modified Files:
	cmd-list.c 
Log Message:
LIST "" foo.% doesn't anymore reply "foo." folder.



Index: cmd-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- cmd-list.c	27 Feb 2003 14:48:00 -0000	1.20
+++ cmd-list.c	20 Mar 2003 17:19:03 -0000	1.21
@@ -139,11 +139,18 @@
 
 			buf = str_unescape(t_strdup_noconst(name));
 			match = imap_match(ctx->glob, buf);
-			if (match == IMAP_MATCH_CHILDREN) {
+			/* FIXME: IMAP spec says this should be done, but
+			   a) this is broken, we shouldn't give \NoSelect for
+			      this folder if it actually works.
+			   b) at least mozilla's subscriptions list breaks if
+			      this is sent
+			   c) cyrus and courier doesn't do this either..
+
+			   if (match == IMAP_MATCH_CHILDREN) {
 				send_name = t_strconcat(name, ctx->sep, NULL);
 				buf = str_unescape(t_strdup_noconst(send_name));
 				match = imap_match(ctx->glob, buf);
-			}
+			}*/
 		}
 
 		if (match == IMAP_MATCH_YES) {




More information about the dovecot-cvs mailing list