Karta. Inbound. MailFields
(Karta v1.0.0)
The fields of a received message, parsed once for the formats that carry
a message as parsed fields (Karta.Inbound.Formats): its header fields
(unfolded and decoded, in the order received), the first inline
text/plain and text/html bodies, and every other leaf part as an
attachment.
Parsing is Karta.Mail.Message's, with the same options and limits, so
there is one MIME reader for all of Karta's formats. Header values, the
text and HTML bodies are made UTF-8 (replacing bytes that are not), as
the formats write them into JSON strings; an attachment keeps its
decoded bytes.
attachments: false does not decode the attachments (a format that
sends the message itself does not need them), and attachments is then
[].
Summary
Functions
Every field by lower-case name, in the order received.
Parses raw into its fields. The options are Karta.Mail.Message.parse/2's
(:max_depth, :max_parts, the header limits) and :attachments
(default true).
The last value of the field named name, or nil (as Postal reads headers).
The values of every field named name, in the order received.
Types
Functions
Every field by lower-case name, in the order received.
Parses raw into its fields. The options are Karta.Mail.Message.parse/2's
(:max_depth, :max_parts, the header limits) and :attachments
(default true).
The last value of the field named name, or nil (as Postal reads headers).
The values of every field named name, in the order received.