Files
kumomta/docs/reference/addressheader/user.md
T
Wez Furlong ea87ea6ab3 make HeaderAddress localpart consistent with EnvelopeAddress
This was previously just returning everything before the final at-sign.
Now we use the same parsing approach and return the normalized local
part.

This is technically a breaking change, but it is minor and improves
the overall state of things.
2026-04-09 15:42:40 +01:00

757 B

user

local user = addressheader.user

If the address header consists of a single simple address, returns the mailbox portion of the address. For example, if the address is "first.last@example.com", addressheader.domain will evaluate as "first.last".

If the address header is not a single simple address, raises an error.

See also addressheader.domain, addressheader.name.

{{since('dev')}}

The user field now returns the normalized/decoded local part. Previously, quoted local parts such as "quoted"@example.com were returned with the RFC 5322 quoting intact (e.g. "quoted"); they now return the decoded semantic value (e.g. quoted). The same applies to entries in addressheader.list.