dovecot-1.2: Maildir: If there are multiple :2,<flags> in filena...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 2 09:45:40 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/639f6fb48277
changeset: 7964:639f6fb48277
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 01 23:33:17 2008 +0300
description:
Maildir: If there are multiple :2,<flags> in filename, use the last one both
getting and setting the flags.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-filename.c |    2 +-

diffs (12 lines):

diff -r 7760a30a5f7e -r 639f6fb48277 src/lib-storage/index/maildir/maildir-filename.c
--- a/src/lib-storage/index/maildir/maildir-filename.c	Wed Jul 02 09:44:30 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-filename.c	Tue Jul 01 23:33:17 2008 +0300
@@ -44,7 +44,7 @@ void maildir_filename_get_flags(struct m
 	array_clear(keywords_r);
 	*flags_r = 0;
 
-	info = strchr(fname, MAILDIR_INFO_SEP);
+	info = strrchr(fname, MAILDIR_INFO_SEP);
 	if (info == NULL || info[1] != '2' || info[2] != MAILDIR_FLAGS_SEP)
 		return;
 


More information about the dovecot-cvs mailing list