[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-transaction.c, 1.3, 1.4

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


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

Modified Files:
	dbox-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: dbox-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-transaction.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- dbox-transaction.c	28 Jun 2006 16:31:07 -0000	1.3
+++ dbox-transaction.c	15 Oct 2006 12:59:45 -0000	1.4
@@ -15,7 +15,7 @@
 	struct dbox_transaction_context *dt = MAIL_STORAGE_TRANSACTION(t);
 	struct dbox_mailbox *dbox = (struct dbox_mailbox *)dt->ictx.ibox;
 	struct dbox_save_context *save_ctx;
-	bool external = t->external;
+	bool syncing = t->sync_transaction;
 	int ret = 0;
 
 	if (dt->save_ctx != NULL) {
@@ -44,7 +44,7 @@
 		dbox_transaction_save_commit_post(save_ctx);
 	}
 
-	if (ret == 0 && !external) {
+	if (ret == 0 && !syncing) {
 		if (dbox_sync(dbox, FALSE) < 0)
 			ret = -1;
 	}



More information about the dovecot-cvs mailing list