Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know this is old, but I thought it should be clarified and explained in more detail...</p> <p>@Guy Starbuck wrote:</p> <blockquote> <p>message/rfc822</p> <p>RFC 822 - STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES</p> </blockquote> <p>The problem with this answer is that MHTML files <strong><em>are not defined by RFC822</em></strong>.</p> <p>The correct content-type for MHTML files (.mht, .mhtml) is <strong><em>multipart/related</em></strong>.</p> <p>As stated above, <a href="http://www.ietf.org/rfc/rfc0822.txt" rel="noreferrer">RFC822</a> defines the format for internet <em>text messages</em>. The content-type <strong><em>message/rfc822</em></strong> is used for text attachments within email messages [1][2].</p> <p>Most of us have probably received a reply to an email where, instead of being quoted inline, the original message is included as an attachment. That <em>attachment</em> has a content-type of <strong><em>message/rfc822</em></strong>. In such emails, the content-types break down as follows:</p> <ul> <li><em><strong>multipart/mixed</em></strong> = entire message</li> <li><em><strong>text/plain</em></strong> = text of reply email</li> <li><em><strong>message/rfc822</em></strong> = original email as attachment</li> </ul> <p>On the other hand, as noted by @feeela, <strong>MHTML</strong> files are defined in <a href="http://www.ietf.org/rfc/rfc2557.txt" rel="noreferrer">RFC2557</a>. MHTML files are comprised of many different parts, each of which can have a different content-type. However, RFC2557 defines the content-type of the <strong>entire</strong> file as <strong><em>multipart/related</em></strong>.</p> <p>[1] <a href="http://www.ietf.org/rfc/rfc1341.txt" rel="noreferrer">RFC1341: MIME (Multipurpose Internet Mail Extensions)</a><br> [2] <a href="http://www.w3.org/Protocols/rfc1341/7_3_Message.html" rel="noreferrer">The <strong>message</strong> Content-Type</a> </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload