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/lua_mime.lua | |
parent | 6b9f798d6a0be70e5e7c42f49bfccef67c7f7e54 (diff) | |
download | rspamd-6c83c787baa12140eba6993760a7baf858c4b4c8.tar.gz rspamd-6c83c787baa12140eba6993760a7baf858c4b4c8.zip |
[Minor] Deal with cte modifications
Diffstat (limited to 'lualib/lua_mime.lua')
-rw-r--r-- | lualib/lua_mime.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index 9b530a996..b839933b0 100644 --- a/lualib/lua_mime.lua +++ b/lualib/lua_mime.lua @@ -44,6 +44,7 @@ end -- * out: new content (body only) -- * need_rewrite_ct: boolean field that means if we must rewrite content type -- * new_ct: new content type (type => string, subtype => string) +-- * new_cte: new content-transfer encoding (string) --]] exports.add_text_footer = function(task, html_footer, text_footer) local newline_s = newline(task) @@ -84,6 +85,8 @@ exports.add_text_footer = function(task, html_footer, text_footer) 'Content-Transfer-Encoding: %s', ct, newline_s, cte) out[#out + 1] = '' + else + res.new_cte = cte end local content = tostring(tp:get_content('raw_utf') or '') |