mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-19 19:08:17 +00:00
1bf9d138ce
refs: https://github.com/KumoCorp/kumomta/issues/117 Could also make it possible to do eg: https://github.com/KumoCorp/kumomta/issues/142 without any explicit direct support in the product.
950 B
950 B
The MimePart Object
A MimePart object represents the parsed MIME structure of an RFC 5322
formatted message. Complex messages form a tree that is composed of various
MimeParts and there are multiple different ways to build a MIME tree to, for
example, represent a message with a single attachment.
MimePart is the name of the underlying Rust type, but it is exposed through
to lua via a PartRef that acts as a handle to the MimePart that allows
safely modifying the MIME structure.
There are few different ways to obtain a MimePart:
- By parsing it from a
Messageobject via msg:parse_mime - By creating parts using the kumo.mimepart module
!!! info
Printing or otherwise explicitly converting a MimePart object as a string
will produce the RFC 5322 representation of that MimePart and its children.