Skip to content

RFC8621 nonconformance #67

Description

@sftse

When parsing the example legacy/034.emllegacy/032.eml the returned parts are

html_body: [3, 4, 5], text_body: [2, 4, 5], attachments: [4, 5]

This seems at odds with RFC8621

   o  attachments: "EmailBodyPart[]" (immutable)

      A list, traversing depth-first, of all parts in "bodyStructure"
      that satisfy either of the following conditions:

      *  not of type "multipart/*" and not included in "textBody" or
         "htmlBody"

      *  of type "image/*", "audio/*", or "video/*" and not in both
         "textBody" and "htmlBody"

      None of these parts include subParts, including "message/*" types.
      Attached messages may be fetched using the "Email/parse" method
      and the "blobId".

      Note that a "text/html" body part [[HTML](https://datatracker.ietf.org/doc/html/rfc8621#ref-HTML)] may reference image parts
      in attachments by using "cid:" links to reference the Content-Id,
      as defined in [[RFC2392](https://datatracker.ietf.org/doc/html/rfc2392)], or by referencing the Content-Location.

Attachments 4, 5 are image/png and fit neither of the criteria listed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions