changeset 7961:820cc75d6ccc HEAD

Maildir: \Recent flags weren't set correctly if mail was saved externally.
author Timo Sirainen <tss@iki.fi>
date Fri, 27 Jun 2008 14:32:19 +0300
parents ccbbfa63a36e
children 465931d0a642
files src/lib-storage/index/maildir/maildir-sync-index.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync-index.c	Fri Jun 27 13:05:27 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c	Fri Jun 27 14:32:19 2008 +0300
@@ -338,10 +338,7 @@
 			   messages. When saving/copying messages with flags
 			   they're stored to cur/ and uidlist treats them
 			   as non-recent. */
-			if ((uflags & MAILDIR_UIDLIST_REC_FLAG_RECENT) != 0) {
-				if (uid > first_recent_uid)
-					first_recent_uid = uid;
-			} else {
+			if ((uflags & MAILDIR_UIDLIST_REC_FLAG_RECENT) == 0) {
 				if (uid >= first_recent_uid)
 					first_recent_uid = uid + 1;
 			}