develooper Front page | perl.pep | Postings from November 2014

The PDF attachments sent with Email::MIME::Kit are damaged

Thread Next
From:
Octavian Rasnita
Date:
November 2, 2014 13:06
Subject:
The PDF attachments sent with Email::MIME::Kit are damaged
Message ID:
143E75D68B8048FB9C61E66D1675CD94@octavianf303f0
Hello,

Please apply the following diff to Email::MIME::Kit::KitReader::Dir.

Without it, the pdf attachments are broken if the messages are sent under 
Windows.

--- D:\usr\site\lib\Email\MIME\Kit\KitReader\Dir.pm Sun Nov  2 14:57:48 2014
+++ D:\usr2\site\lib\Email\MIME\Kit\KitReader\Dir.pm Sun Nov  2 14:53:33 
2014
@@ -13,6 +13,7 @@
   my $fullpath = File::Spec->catfile($self->kit->source, $path);

   open my $fh, '<', $fullpath or die "can't open $fullpath for reading: 
$!";
+  binmode $fh;
   my $content = do { local $/; <$fh> };

   return \$content;


And thank you for the module. It is great!

--Octavian


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About