Skip to content

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 Builds Only

The functionality described in this section requires a dev build of KumoMTA. You can obtain a dev build by following the instructions in the Installation section.

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)