about summary refs log tree commit homepage
path: root/script/public-inbox-mda
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-26 01:00:31 +0000
committerEric Wong <e@80x24.org>2016-07-26 01:00:31 +0000
commit6cf4ed00cfe766141572511d4ab2016cd6dafe46 (patch)
tree1ceb825fb8190e948093cbfef283b67cd6636cc8 /script/public-inbox-mda
parent36daec54856edb525ad96a3e92b9380a45763761 (diff)
downloadpublic-inbox-6cf4ed00cfe766141572511d4ab2016cd6dafe46.tar.gz
We don't want to leave fast_import_crash_* dumps
around on duplicates.
Diffstat (limited to 'script/public-inbox-mda')
-rwxr-xr-xscript/public-inbox-mda2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/public-inbox-mda b/script/public-inbox-mda
index d76f33a8..8b5258f5 100755
--- a/script/public-inbox-mda
+++ b/script/public-inbox-mda
@@ -83,7 +83,6 @@ PublicInbox::MDA->set_list_headers($mime, $dst);
 my $git = PublicInbox::Git->new($main_repo);
 my $im = PublicInbox::Import->new($git, $dst->{name}, $recipient);
 if (defined $im->add($mime)) {
-        $im->done;
         $emm = $emm->abort;
 } else {
         # this message is similar to what ssoma-mda shows:
@@ -92,4 +91,5 @@ if (defined $im->add($mime)) {
                         " exists\n";
 }
 
+$im->done;
 do_exit(0);