[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-transaction.c, 1.12, 1.13

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/maildir
In directory talvi:/tmp/cvs-serv16975/lib-storage/index/maildir

Modified Files:
	maildir-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: maildir-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-transaction.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- maildir-transaction.c	28 Jun 2006 16:31:07 -0000	1.12
+++ maildir-transaction.c	15 Oct 2006 12:59:45 -0000	1.13
@@ -14,7 +14,7 @@
 	struct maildir_transaction_context *mt = MAIL_STORAGE_TRANSACTION(t);
 	struct maildir_mailbox *mbox = (struct maildir_mailbox *)mt->ictx.ibox;
 	struct maildir_save_context *save_ctx;
-	bool external = t->external;
+	bool syncing = t->sync_transaction;
 	int ret = 0;
 
 	if (mt->save_ctx != NULL) {
@@ -36,7 +36,7 @@
 	if (save_ctx != NULL)
 		maildir_transaction_save_commit_post(save_ctx);
 
-	if (ret == 0 && !external)
+	if (ret == 0 && !syncing)
 		ret = maildir_sync_last_commit(mbox);
 	return ret;
 }



More information about the dovecot-cvs mailing list