mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-19 02:48:18 +00:00
1fb712e2bf
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
342 B
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: