projects
/
public-inbox.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36daec5
)
mda: always call Import::done, even on dupes
author
Eric Wong <e@80x24.org>
Tue, 26 Jul 2016 01:00:31 +0000 (
01:00
+0000)
committer
Eric Wong <e@80x24.org>
Tue, 26 Jul 2016 01:00:31 +0000 (
01:00
+0000)
We don't want to leave fast_import_crash_* dumps
around on duplicates.
script/public-inbox-mda
patch
|
blob
|
history
diff --git
a/script/public-inbox-mda
b/script/public-inbox-mda
index d76f33a81ade85826a09378e7988f248043b31bd..8b5258f5f397e31bf229ebecf5e1abaf066b7171 100755
(executable)
--- 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);