[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.97,
1.98
cras at dovecot.org
cras at dovecot.org
Fri Oct 8 15:01:14 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv5630/lib-storage/index/mbox
Modified Files:
mbox-sync.c
Log Message:
Remove recent-flags even if flags are dirty.
Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- mbox-sync.c 5 Oct 2004 00:50:28 -0000 1.97
+++ mbox-sync.c 8 Oct 2004 12:01:11 -0000 1.98
@@ -372,8 +372,11 @@
&idx_flags, idx_keywords);
if ((idx_flags & MAIL_INDEX_MAIL_FLAG_DIRTY) != 0) {
- /* flags are dirty, ignore whatever was in the file */
+ /* flags are dirty, ignore whatever was in the file.
+ but remove recent flag if needed. */
mbox_flags = idx_flags;
+ if (!sync_ctx->ibox->keep_recent)
+ mbox_flags &= ~MAIL_RECENT;
} else {
mbox_flags = (rec->flags & ~MAIL_FLAGS_MASK) |
(mail->flags & MAIL_FLAGS_MASK);
More information about the dovecot-cvs
mailing list