diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-19 14:37:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-19 14:37:24 +0000 |
commit | 6c83c787baa12140eba6993760a7baf858c4b4c8 (patch) | |
tree | c278267df9c2e0fd015742d61a8bd97b3433515c /lualib/rspamadm | |
parent | 6b9f798d6a0be70e5e7c42f49bfccef67c7f7e54 (diff) | |
download | rspamd-6c83c787baa12140eba6993760a7baf858c4b4c8.tar.gz rspamd-6c83c787baa12140eba6993760a7baf858c4b4c8.zip |
[Minor] Deal with cte modifications
Diffstat (limited to 'lualib/rspamadm')
-rw-r--r-- | lualib/rspamadm/mime.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |