2.2.3.4 Attachments

During MIME analysis, MIME readers classify all non-multipart MIME entities and "multipart/appledouble" MIME entities (that contain appropriate child MIME subparts) into the following three categories:

  1. MIME entities that can potentially represent the message body, as specified in section 2.2.3.3.2.

  2. MIME entities that represent non-inline attachments.

  3. MIME entities that represent attachments that can potentially be inline.

All MIME entities that can be classified as attachments (category 2 or 3) SHOULD be treated by MIME readers as attachment MIME parts, and an entry in an attachments table SHOULD be created for each such MIME part. However, depending on the value of the Content-Type header, analysis SHOULD be done differently, as follows:

  1. "message/rfc822" MIME entities SHOULD be treated as embedded message attachments, as specified in section 2.2.3.4.3.

  2. "Multipart/appledouble", "application/applefile", and "application/mac-binhex40" MIME entities SHOULD be treated as Macintosh attachments, as specified in section 2.2.3.4.2.

  3. "Message/external-body" attachments SHOULD be treated as external body attachments, as specified in section 2.2.3.5.

  4. All other attachments SHOULD be treated as regular file attachments, as specified in section 2.2.3.4.1.

If no Content-Type header is present on a MIME entity, MIME readers SHOULD treat it as a "text/plain" MIME content-type (unless this MIME entity is a subpart of multipart/digest, in which case the default value for the Content-Type header is "message/rfc822").