[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c, 1.41.2.2, 1.41.2.3
cras at dovecot.org
cras at dovecot.org
Mon Aug 7 00:00:13 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv28695/maildir
Modified Files:
Tag: branch_1_0
maildir-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: maildir-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-list.c,v
retrieving revision 1.41.2.2
retrieving revision 1.41.2.3
diff -u -d -r1.41.2.2 -r1.41.2.3
--- maildir-list.c 27 Jun 2006 21:13:44 -0000 1.41.2.2
+++ maildir-list.c 6 Aug 2006 21:00:10 -0000 1.41.2.3
@@ -282,17 +282,7 @@
if (*ref != '\0') {
/* join reference + mask */
- if (*mask == MAILDIR_FS_SEP &&
- ref[strlen(ref)-1] == MAILDIR_FS_SEP) {
- /* A. .B -> A.B */
- mask++;
- } else if (*mask != MAILDIR_FS_SEP &&
- ref[strlen(ref)-1] != MAILDIR_FS_SEP) {
- /* A B -> A.B */
- mask = t_strconcat(ref, MAILDIR_FS_SEP_S, mask, NULL);
- } else {
- mask = t_strconcat(ref, mask, NULL);
- }
+ mask = t_strconcat(ref, mask, NULL);
}
glob = imap_match_init(pool, mask, TRUE, MAILDIR_FS_SEP);
More information about the dovecot-cvs
mailing list