* [PATCH] mda: always call Import::done, even on dupes
@ 2016-07-26 1:02 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-07-26 1:02 UTC (permalink / raw)
To: meta
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(-)
diff --git a/script/public-inbox-mda b/script/public-inbox-mda
index d76f33a..8b5258f 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);
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-07-26 1:02 7% [PATCH] mda: always call Import::done, even on dupes Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).