changeset 3383:bfba2219b586 HEAD

We didn't keep dirty flag state long enough.
author Timo Sirainen <tss@iki.fi>
date Sat, 14 May 2005 20:17:29 +0300
parents f3696949cb7c
children 3b75956d20c4
files src/lib-storage/index/mbox/mbox-sync.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c	Sat May 14 17:01:03 2005 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Sat May 14 20:17:29 2005 +0300
@@ -427,6 +427,8 @@
 			   but update recent/dirty flag states if needed. */
 			mbox_flags &= SYNC_FLAGS;
 			mbox_flags |= idx_mail.flags & ~SYNC_FLAGS;
+			if (sync_ctx->delay_writes)
+				mbox_flags |= MAIL_INDEX_MAIL_FLAG_DIRTY;
 		} else {
 			/* keep index's internal flags */
 			mbox_flags &= MAIL_FLAGS_MASK | SYNC_FLAGS;