From 0ee4250cac7589cea27a2d6770deb68b01a03242 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 14 Dec 2021 16:41:14 +0000 Subject: [PATCH] [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 }, } -- 2.39.5