]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox-snarf: Messages weren't sometimes expunged from the source mbox,
authorTimo Sirainen <tss@iki.fi>
Sun, 20 Jul 2008 15:40:17 +0000 (18:40 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 20 Jul 2008 15:40:17 +0000 (18:40 +0300)
causing duplicates.

--HG--
branch : HEAD

src/plugins/mbox-snarf/mbox-snarf-plugin.c

index de9c0355dd3aebcd1f032802a7f413c37f00e726..c005abb9921bb818b58959857f19505c2840e9fd 100644 (file)
@@ -88,6 +88,10 @@ static int mbox_snarf(struct mailbox *srcbox, struct mailbox *destbox)
                if (mailbox_transaction_commit(&src_trans) < 0)
                        ret = -1;
        }
+       if (ret == 0) {
+               if (mailbox_sync(srcbox, 0, 0, NULL) < 0)
+                       ret = -1;
+       }
        return ret;
 }