From: Don Armstrong Date: Wed, 8 Mar 2017 03:00:29 +0000 (-0800) Subject: add parse_mime_to_entity to exports; fix tempdir location X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1b5baa9748710bbe743f2b2912672ec11920ccf7;p=debbugs.git add parse_mime_to_entity to exports; fix tempdir location --- diff --git a/Debbugs/MIME.pm b/Debbugs/MIME.pm index bb7a2cd..adc4566 100644 --- a/Debbugs/MIME.pm +++ b/Debbugs/MIME.pm @@ -41,7 +41,9 @@ BEGIN { @EXPORT = (); - %EXPORT_TAGS = (mime => [qw(parse create_mime_message getmailbody)], + %EXPORT_TAGS = (mime => [qw(parse create_mime_message getmailbody), + qw(parse_to_mime_entity), + ], rfc1522 => [qw(decode_rfc1522 encode_rfc1522)], ); @EXPORT_OK=(); @@ -105,7 +107,7 @@ sub parse_to_mime_entity { my $parser = MIME::Parser->new(); my $entity; # this will be cleaned up once we exit - $tempdir = File::Temp->newdir(); + my $tempdir = File::Temp->newdir(); $parser->output_dir($tempdir->dirname()); if (ref($record) eq 'HASH') { if ($record->{inner_file}) {