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


In reply to Email::MIME Distinguishing HTML msg from HTML attachment by cormanaz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.