[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.160, 1.161

cras at dovecot.org cras at dovecot.org
Sat May 14 20:17:32 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv13373/lib-storage/index/mbox

Modified Files:
	mbox-sync.c 
Log Message:
We didn't keep dirty flag state long enough.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -d -r1.160 -r1.161
--- mbox-sync.c	8 May 2005 14:12:58 -0000	1.160
+++ mbox-sync.c	14 May 2005 17:17:29 -0000	1.161
@@ -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;



More information about the dovecot-cvs mailing list