From 6cf4ed00cfe766141572511d4ab2016cd6dafe46 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 26 Jul 2016 01:00:31 +0000 Subject: mda: always call Import::done, even on dupes We don't want to leave fast_import_crash_* dumps around on duplicates. --- script/public-inbox-mda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/public-inbox-mda') 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); -- cgit v1.2.3-24-ge0c7