mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-21 03:48: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.
534 B
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)