P is for Practical | |
PerlMonks |
Email::MIME Distinguishing HTML msg from HTML attachmentby cormanaz (Deacon) |
on Jul 15, 2009 at 17:48 UTC ( [id://780412]=perlquestion: print w/replies, xml ) | Need Help?? |
cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
Howdy Bros. I am using Email::MIME to process some e-mails and have run up against a problem. Some email clients send a message in two parts, both in text/plain and text/html. This is of course easy to sort out. Someone using the same sort of client might also include an html attachment. Again easy to sort out by just taking the first html part you find. BUT, what if someone sends a plain text (only) message AND includes an html attachment? How do you tell the html part is an attachment and not just an html version of the message? I've been looking at the headers returned by Email::MIME and I'm not sure it's possible to distinguish. Or am I missing something? TIA... Steve
Back to
Seekers of Perl Wisdom
|
|