dovecot-1.2: mbox-snarf: Messages weren't sometimes expunged fro...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jul 20 18:40:28 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/1f20b78f37d7
changeset: 8021:1f20b78f37d7
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 701828d42e66 -r 1f20b78f37d7 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
@@ -86,6 +86,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