[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-transaction.c, 1.13, 1.13.2.1

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


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

Modified Files:
      Tag: branch_1_0
	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.13
retrieving revision 1.13.2.1
diff -u -d -r1.13 -r1.13.2.1
--- mbox-transaction.c	13 Jan 2006 20:26:37 -0000	1.13
+++ mbox-transaction.c	10 Mar 2007 15:47:29 -0000	1.13.2.1
@@ -52,8 +52,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