aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/plugins/dmarc.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-12-14 16:41:14 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-12-14 16:41:14 +0000
commit0ee4250cac7589cea27a2d6770deb68b01a03242 (patch)
tree603e07cf3168c7527d27194da09ca00fb8685527 /lualib/plugins/dmarc.lua
parent6a32c3ad6043c433e5c3ca458c4c3a47bcc67641 (diff)
downloadrspamd-0ee4250cac7589cea27a2d6770deb68b01a03242.tar.gz
rspamd-0ee4250cac7589cea27a2d6770deb68b01a03242.zip
[Minor] Dmarc: Fold header using specific newline type
Diffstat (limited to 'lualib/plugins/dmarc.lua')
-rw-r--r--lualib/plugins/dmarc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/plugins/dmarc.lua b/lualib/plugins/dmarc.lua
index 783447242..c72b68824 100644
--- a/lualib/plugins/dmarc.lua
+++ b/lualib/plugins/dmarc.lua
@@ -197,10 +197,10 @@ exports.gen_munging_callback = function(munging_opts, settings)
local hdr_encoded = rspamd_util.fold_header('From',
rspamd_util.mime_header_encode(string.format('%s <%s>',
- via_name, via_addr)))
+ via_name, via_addr)), task:get_newlines_type())
local orig_from_encoded = rspamd_util.fold_header('X-Original-From',
rspamd_util.mime_header_encode(string.format('%s <%s>',
- from.name or '', from.addr)))
+ from.name or '', from.addr)), task:get_newlines_type())
local add_hdrs = {
['From'] = { order = 1, value = hdr_encoded },
}