[dovecot-cvs]
dovecot/src/lib-storage/index/mbox mbox-sync-update.c, 1.22, 1.23
cras at dovecot.org
cras at dovecot.org
Wed Aug 25 11:16:44 EEST 2004
Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv14521
Modified Files:
mbox-sync-update.c
Log Message:
Recent flag wasn't written always
Index: mbox-sync-update.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-update.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- mbox-sync-update.c 23 Aug 2004 07:39:39 -0000 1.22
+++ mbox-sync-update.c 25 Aug 2004 08:16:42 -0000 1.23
@@ -284,10 +284,6 @@
old_flags = ctx->mail.flags;
- if ((ctx->mail.flags & MBOX_NONRECENT) == 0 &&
- !ctx->sync_ctx->ibox->keep_recent)
- ctx->mail.flags |= MBOX_NONRECENT;
-
if (size != 0) {
memcpy(old_keywords, ctx->mail.keywords, sizeof(old_keywords));
@@ -312,6 +308,9 @@
mbox_sync_update_xkeywords(ctx);
}
+ if (!ctx->sync_ctx->ibox->keep_recent)
+ ctx->mail.flags |= MBOX_NONRECENT;
+
if ((old_flags & STATUS_FLAGS_MASK) !=
(ctx->mail.flags & STATUS_FLAGS_MASK))
mbox_sync_update_status(ctx);
More information about the dovecot-cvs
mailing list