dovecot-1.2: Maildir: \Recent flags weren't set correctly if mai...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 27 14:34:33 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/820cc75d6ccc
changeset: 7961:820cc75d6ccc
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 27 14:32:19 2008 +0300
description:
Maildir: \Recent flags weren't set correctly if mail was saved externally.
diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
src/lib-storage/index/maildir/maildir-sync-index.c | 5 +----
diffs (15 lines):
diff -r ccbbfa63a36e -r 820cc75d6ccc src/lib-storage/index/maildir/maildir-sync-index.c
--- 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 @@ int maildir_sync_index(struct maildir_in
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;
}
More information about the dovecot-cvs
mailing list