changeset 7964:639f6fb48277 HEAD

Maildir: If there are multiple :2,<flags> in filename, use the last one both getting and setting the flags.
author Timo Sirainen <tss@iki.fi>
date Tue, 01 Jul 2008 23:33:17 +0300
parents 7760a30a5f7e
children 72a560a00def
files src/lib-storage/index/maildir/maildir-filename.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	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;