Files
Wez Furlong 1fb712e2bf Add msg:set_data()
This method allows replacing the message payload arbitrarily.
This is a building block for more advanced and convenient
modification operations.

refs: https://github.com/KumoCorp/kumomta/issues/117
refs: https://github.com/KumoCorp/kumomta/issues/120
2024-03-31 06:57:59 -07:00

342 B

message:set_data(payload)

{{since('dev')}}

Replaces the message body/data completely. It is your responsibility to ensure that the content is well-formed, has canonical CRLF line endings, and uses appropriate transfer-encoding, otherwise the system will misbehave when delivering the message.

See also: