[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-list.c, 1.38, 1.38.2.1

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


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

Modified Files:
      Tag: branch_1_0
	mbox-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: mbox-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-list.c,v
retrieving revision 1.38
retrieving revision 1.38.2.1
diff -u -d -r1.38 -r1.38.2.1
--- mbox-list.c	1 Apr 2006 10:44:10 -0000	1.38
+++ mbox-list.c	6 Aug 2006 21:00:15 -0000	1.38.2.1
@@ -122,10 +122,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