From 6c83c787baa12140eba6993760a7baf858c4b4c8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 19 Feb 2020 14:37:24 +0000 Subject: [Minor] Deal with cte modifications --- lualib/rspamadm/mime.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lualib/rspamadm') diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua index ae29f0eb1..8ef82f1c0 100644 --- a/lualib/rspamadm/mime.lua +++ b/lualib/rspamadm/mime.lua @@ -690,7 +690,7 @@ local function modify_handler(opts) return elseif name:lower() == 'content-transfer-encoding' then out[#out + 1] = string.format('%s: %s', - 'Content-Transfer-Encoding', 'quoted-printable') + 'Content-Transfer-Encoding', rewrite.new_cte or 'quoted-printable') seen_cte = true return end @@ -712,7 +712,7 @@ local function modify_handler(opts) if not seen_cte and rewrite.need_rewrite_ct then out[#out + 1] = string.format('%s: %s', - 'Content-Transfer-Encoding', 'quoted-printable') + 'Content-Transfer-Encoding', rewrite.new_cte or 'quoted-printable') end -- End of headers -- cgit v1.2.3