Files
kumomta/docs/reference/mimepart/_index.md
T
Wez Furlong 1bf9d138ce extended lua mime parsing API
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.
2025-09-09 09:15:58 +01:00

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:

!!! info Printing or otherwise explicitly converting a MimePart object as a string will produce the RFC 5322 representation of that MimePart and its children.

Available Fields and Methods { data-search-exclude }