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

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 1 23:34:14 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.0/rev/39bb56f31185
changeset: 5561:39bb56f31185
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 01 23:34:11 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-sync.c |    2 +-

diffs (12 lines):

diff -r 52f1d54d37cf -r 39bb56f31185 src/lib-storage/index/maildir/maildir-sync.c
--- a/src/lib-storage/index/maildir/maildir-sync.c	Sat Jun 21 16:23:40 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync.c	Tue Jul 01 23:34:11 2008 +0300
@@ -257,7 +257,7 @@ int maildir_filename_get_flags(struct ma
 	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 0;
 


More information about the dovecot-cvs mailing list