dovecot-2.2: mbox: Previous change broke index updates to succes...

dovecot at dovecot.org dovecot at dovecot.org
Sun May 19 23:21:30 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/bfca9879f7b6
changeset: 16372:bfca9879f7b6
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 19 23:21:20 2013 +0300
description:
mbox: Previous change broke index updates to successful saves.

diffstat:

 src/lib-storage/index/mbox/mbox-save.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r fbe04e687f6f -r bfca9879f7b6 src/lib-storage/index/mbox/mbox-save.c
--- a/src/lib-storage/index/mbox/mbox-save.c	Sun May 19 22:36:36 2013 +0300
+++ b/src/lib-storage/index/mbox/mbox-save.c	Sun May 19 23:21:20 2013 +0300
@@ -715,7 +715,7 @@
 		ctx->mail_offset = (uoff_t)-1;
 	}
 
-	if (ctx->seq != 0) {
+	if (ctx->seq != 0 && ctx->failed) {
 		mail_index_expunge(ctx->trans, ctx->seq);
 		/* currently we can't just drop pending cache updates for this
 		   one specific record, so we'll reset the whole cache


More information about the dovecot-cvs mailing list