user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] mda: always call Import::done, even on dupes
@ 2016-07-26  1:02 Eric Wong
  0 siblings, 0 replies; only message in thread
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	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-26  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-26  1:02 [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).