Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Reading POP email that may be plain text, HTML, or bothby Krambambuli (Curate) |
on Jun 19, 2010 at 11:45 UTC ( [id://845528]=note: print w/replies, xml ) | Need Help?? |
Have a look on MIME::Tools and MIME::Entity. Parse the message, then check the parts to see if they are text/plain, pick up the parts you need. For HTML-only messages you'll probably have to decide if you want to ignore them or transform HTML to text.
In Section
Seekers of Perl Wisdom
|
|