dovecot-1.1: mbox-snarf: Messages weren't sometimes expunged fro...

dovecot at dovecot.org dovecot at dovecot.org
Sun Jul 20 18:40:22 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/7374114ce7a8
changeset: 7766:7374114ce7a8
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jul 20 18:40:17 2008 +0300
description:
mbox-snarf: Messages weren't sometimes expunged from the source mbox,
causing duplicates.

diffstat:

1 file changed, 4 insertions(+)
src/plugins/mbox-snarf/mbox-snarf-plugin.c |    4 ++++

diffs (14 lines):

diff -r b7ea1c010f4d -r 7374114ce7a8 src/plugins/mbox-snarf/mbox-snarf-plugin.c
--- a/src/plugins/mbox-snarf/mbox-snarf-plugin.c	Sun Jul 20 18:16:46 2008 +0300
+++ b/src/plugins/mbox-snarf/mbox-snarf-plugin.c	Sun Jul 20 18:40:17 2008 +0300
@@ -85,6 +85,10 @@ static int mbox_snarf(struct mailbox *sr
 		mailbox_transaction_rollback(&src_trans);
 	else {
 		if (mailbox_transaction_commit(&src_trans) < 0)
+			ret = -1;
+	}
+	if (ret == 0) {
+		if (mailbox_sync(srcbox, 0, 0, NULL) < 0)
 			ret = -1;
 	}
 	return ret;


More information about the dovecot-cvs mailing list