SirCharles has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to decode an email that was pop'd. After writing the body to a disk file using the perl Mail::POP3Client routine
$pop->BodyToFile( $fh, 1);It looks all like text. So, I run following command to translate body of mime message back to pdf for reading.
perl -MMIME::Base64 -ne 'print decode_base64($_)' <test.txt >test.pdfNo error messages, but file size is different from original file poped from email attachment. When pdf file is brought up in browser, there is no data.
Edited by planetscape - added code tags and rudimentary formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::POP3Client and pdf decode
by jdtoronto (Prior) on Apr 06, 2006 at 19:30 UTC |