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

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 1 23:33:22 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/f980a31af785
changeset: 7721:f980a31af785
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 972c01a4c8f5 -r f980a31af785 src/lib-storage/index/maildir/maildir-filename.c
--- a/src/lib-storage/index/maildir/maildir-filename.c	Fri Jun 27 14:32:19 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