[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-transaction.c, 1.16, 1.17

tss at dovecot.org tss at dovecot.org
Sat Mar 10 17:47:35 EET 2007


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

Modified Files:
	mbox-transaction.c 
Log Message:
After saving mails we didn't update last-uid header in X-IMAP[base] if lazy
writes were used.



Index: mbox-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-transaction.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- mbox-transaction.c	25 Nov 2006 22:17:45 -0000	1.16
+++ mbox-transaction.c	10 Mar 2007 15:47:32 -0000	1.17
@@ -49,8 +49,10 @@
 			mbox_sync_flags |= MBOX_SYNC_UNDIRTY;
 		if ((flags & MAILBOX_SYNC_FLAG_FULL_WRITE) != 0)
 			mbox_sync_flags |= MBOX_SYNC_REWRITE;
-		if (mbox_modified)
-			mbox_sync_flags |= MBOX_SYNC_HEADER;
+		if (mbox_modified) {
+			/* after saving mails we want to update the last-uid */
+			mbox_sync_flags |= MBOX_SYNC_HEADER | MBOX_SYNC_REWRITE;
+		}
 		if (mbox_sync(mbox, mbox_sync_flags) < 0)
 			ret = -1;
 	}



More information about the dovecot-cvs mailing list