[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-transaction.c, 1.14, 1.15

tss at dovecot.org tss at dovecot.org
Sun Oct 15 13:59:48 UTC 2006


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

Modified Files:
	mbox-transaction.c 
Log Message:
After saving messages the mailbox wasn't synced, which caused deliver to
treat the mailbox as unsynced and not update the indexes.



Index: mbox-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-transaction.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- mbox-transaction.c	28 Jun 2006 16:31:09 -0000	1.14
+++ mbox-transaction.c	15 Oct 2006 12:59:46 -0000	1.15
@@ -18,7 +18,7 @@
 	unsigned int lock_id = mt->mbox_lock_id;
 	enum mailbox_sync_flags flags = mt->ictx.commit_flags;
 	bool mbox_modified;
-	bool external = t->external;
+	bool syncing = t->sync_transaction;
 	int ret = 0;
 
 	if (mt->save_ctx != NULL)
@@ -42,7 +42,7 @@
 		lock_id = 0;
 	}
 
-	if (ret == 0 && !external) {
+	if (ret == 0 && !syncing) {
 		enum mbox_sync_flags mbox_sync_flags = MBOX_SYNC_LAST_COMMIT;
 		if ((flags & MAILBOX_SYNC_FLAG_FULL_READ) != 0 &&
 		    !mbox->mbox_very_dirty_syncs)



More information about the dovecot-cvs mailing list