[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-list.c, 1.7, 1.8

cras at dovecot.org cras at dovecot.org
Mon Aug 7 00:01:02 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv8995

Modified Files:
	dbox-list.c 
Log Message:
Handle reference parameter more like UW-IMAP: If it doesn't begin with
separator, just use it as a prefix to mask. I'm not sure where I got the
earlier rules..



Index: dbox-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-list.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- dbox-list.c	30 May 2006 08:24:44 -0000	1.7
+++ dbox-list.c	6 Aug 2006 21:00:58 -0000	1.8
@@ -116,10 +116,7 @@
 		/* mask overrides reference */
 	} else if (*ref != '\0') {
 		/* merge reference and mask */
-		if (ref[strlen(ref)-1] == '/')
-			mask = t_strconcat(ref, mask, NULL);
-		else
-			mask = t_strconcat(ref, "/", mask, NULL);
+		mask = t_strconcat(ref, mask, NULL);
 	}
 
 	if ((flags & MAILBOX_LIST_SUBSCRIBED) != 0) {



More information about the dovecot-cvs mailing list