Files
kumomta/docs/reference/mimepart/headers.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

534 B

headers

local headers = mimepart.headers

!!! note This is a field rather than a method, so you must use mimepart.headers rather than mimepart:headers to reference it.

{{since('dev')}}

The headers field returns a reference to the HeaderMap for mimepart. You can use the headermap to enumerate or modify the set of headers in the mime part.

The example below prints the Subject header of the mime part:

local subject = mimepart.headers.subject()
print(subject)