Files
kumomta/docs/reference/headermap/set_content_transfer_encoding.md
T
Wez Furlong 1bf9d138ce extended lua mime parsing API
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.
2025-09-09 09:15:58 +01:00

21 lines
688 B
Markdown

# set_content_transfer_encoding
```lua
headers:set_content_transfer_encoding(VALUE)
```
{{since('dev')}}
Assign the `VALUE` to the `Content-Transfer-Encoding` header.
`VALUE` may be either a `string` or be an [MimeParams](index.md#mimeparams).
If you assign using a string, the string will be parsed and validated as being
compatible with [MimeParams](index.md#mimeparams) before allowing the assigment to proceed.
!!! danger
Changing the `Content-Transfer-Encoding` header may result in an inconsistent
representation of the message and should be avoided. We recommend limiting
changes to just the parameter portion of the header rather than the overall
encoding.