diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-05 09:16:06 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-05 09:16:06 -0700 |
commit | 263cc6c4175c316655c269718c28413d441bdb3d (patch) | |
tree | 7d240fda38766467fb814b4d4986b392950aacaa /maildir-import-patch | |
parent | d6952ffaa96f5dfdd1e842e94034e15ded784b11 (diff) | |
download | mailscripts-263cc6c4175c316655c269718c28413d441bdb3d.tar.gz |
maildir-import-patch: close a handle earlier
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'maildir-import-patch')
-rwxr-xr-x | maildir-import-patch | 2 |
1 files changed, 1 insertions, 1 deletions
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; |