mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-19 10:58:17 +00:00
22 lines
481 B
Markdown
22 lines
481 B
Markdown
# append
|
|
|
|
```lua
|
|
headers:append(NAME, VALUE)
|
|
```
|
|
|
|
{{since('2025.12.02-67ee9e96')}}
|
|
|
|
Constructs a new header with `NAME` and `VALUE` and appends it to the header map.
|
|
|
|
If the header value is ascii then it will be soft wrapped at whitespace around
|
|
75 columns, and hard-wrapped regardless of whitespace at 900 columns.
|
|
|
|
If the header value is non-ascii then it will be quoted printable encoded using
|
|
RFC 2047 header encoding.
|
|
|
|
```lua
|
|
headers:append('X-Something', 'Some value')
|
|
```
|
|
|
|
|