diff src/lib-storage/index/maildir/maildir-sync.c @ 2877:3cb483d565a6 HEAD

Allow specifying to transaction if it's external. Make mail saving transactions external to avoid problems with uids.
author Timo Sirainen <tss@iki.fi>
date Fri, 12 Nov 2004 00:01:39 +0200
parents a758a5b542bb
children 62d53b49110d
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c	Thu Nov 11 19:45:03 2004 +0200
+++ b/src/lib-storage/index/maildir/maildir-sync.c	Fri Nov 12 00:01:39 2004 +0200
@@ -340,7 +340,7 @@
 				    ibox->commit_log_file_seq,
 				    ibox->commit_log_file_offset, FALSE, FALSE);
 	if (ret > 0) {
-		ctx.trans = mail_index_transaction_begin(ctx.view, FALSE);
+		ctx.trans = mail_index_transaction_begin(ctx.view, FALSE, TRUE);
 
 		while ((ret = mail_index_sync_next(ctx.sync_ctx,
 						   &ctx.sync_rec)) > 0) {
@@ -636,7 +636,7 @@
 		return -1;
 	}
 
-	trans = mail_index_transaction_begin(view, FALSE);
+	trans = mail_index_transaction_begin(view, FALSE, TRUE);
 	sync_ctx->trans = trans;
 
 	seq = 0;