tenny1204 has asked for the wisdom of the Perl Monks concerning the following question:
I am writing an emailprogram using the Net::IMAP:Client module, but i cannot access the attachments when they are encoded. I've taken a few lines of code to try and make my point.
$laat = @$summaries[$#$summaries]; $part = $laat->get_subpart(2.0); $body = $imap->get_part_body($laatste,2.0); $cte = $part->transfer_encoding; # after this print $cte would say 8b +it, so seems ok. $bod = Email::MIME::Encodings::decode($cte, $body); print $$bod;
After this everything is okay as long as it wasn't encoded. Then the encoded information still seems to lay there, beacuse it says something like "YyheDee=". Maybe someone can tell me how to proceed? Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: decoding email attachments.
by flexvault (Monsignor) on Mar 03, 2013 at 12:14 UTC | |
by tenny1204 (Novice) on Mar 04, 2013 at 12:34 UTC |