The parser never validates the message against the grammar and never throws
on malformed content; it extracts what it can. Multipart mixed,
alternative, and related structures are traversed, base64 and
quoted-printable transfer encodings are decoded, RFC 2047 encoded words in
structured headers are decoded, and RFC 2231 parameters are reassembled.
message/rfc822 parts are exposed as attachments rather than parsed
recursively.
Parses an inbound RFC 5322 / MIME message.
The parser never validates the message against the grammar and never throws on malformed content; it extracts what it can. Multipart
mixed,alternative, andrelatedstructures are traversed,base64andquoted-printabletransfer encodings are decoded, RFC 2047 encoded words in structured headers are decoded, and RFC 2231 parameters are reassembled.message/rfc822parts are exposed as attachments rather than parsed recursively.