From: Vsevolod Stakhov Date: Tue, 14 Dec 2021 16:41:14 +0000 (+0000) Subject: [Minor] Dmarc: Fold header using specific newline type X-Git-Tag: 3.2~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ee4250cac7589cea27a2d6770deb68b01a03242;p=thirdparty%2Frspamd.git [Minor] Dmarc: Fold header using specific newline type --- diff --git a/lualib/plugins/dmarc.lua b/lualib/plugins/dmarc.lua index 7834472423..c72b688240 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 }, }