commit 0ee4250: [Minor] Dmarc: Fold header using specific newline type
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Dec 14 17:49:09 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-12-14 16:41:14 +0000
URL: https://github.com/rspamd/rspamd/commit/0ee4250cac7589cea27a2d6770deb68b01a03242
[Minor] Dmarc: Fold header using specific newline type
---
lualib/plugins/dmarc.lua | 4 ++--
1 file 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 },
}
More information about the Commits
mailing list