From 263cc6c4175c316655c269718c28413d441bdb3d Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 5 May 2020 09:16:06 -0700 Subject: maildir-import-patch: close a handle earlier Signed-off-by: Sean Whitton --- maildir-import-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maildir-import-patch b/maildir-import-patch index 91b5143..605435b 100755 --- a/maildir-import-patch +++ b/maildir-import-patch @@ -69,8 +69,8 @@ unless ($pid) { or die "couldn't reopen child's STDOUT: $!"; exec qw(git format-patch --no-cc --no-to --stdout --thread=shallow), @ARGV; } -wait; $mbox_file->close; +wait; my $mbox = $mgr->open($mbox_file->filename, type => "mbox", access => "r"); $mgr->copyMessage($maildir, $_) for $mbox->messages; -- cgit v1.2.3