diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-24 17:06:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-24 17:06:55 +0100 |
commit | 7c68de49e50574dccaf5f026a1491bf2c9df83c2 (patch) | |
tree | 9aa27693ab1cc2576a0e59aa027511732def31bc /rules/regexp/headers.lua | |
parent | 0d3cf178888070d4cd057507b8b0a9140c3dbaea (diff) | |
download | rspamd-7c68de49e50574dccaf5f026a1491bf2c9df83c2.tar.gz rspamd-7c68de49e50574dccaf5f026a1491bf2c9df83c2.zip |
[Fix] Fix R_BAD_CTE_7BIT rule
Issue: #1590
Diffstat (limited to 'rules/regexp/headers.lua')
-rw-r--r-- | rules/regexp/headers.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 0258ab42e..12a2b6249 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -57,20 +57,6 @@ rspamd_config.MISSING_SUBJECT = { end } --- Detects bad content-transfer-encoding for text parts --- For text parts (text/plain and text/html mainly) -local r_ctype_text = 'content_type_is_type(text)' --- Content transfer encoding is 7bit -local r_cte_7bit = 'compare_transfer_encoding(7bit)' --- And body contains 8bit characters -local r_body_8bit = '/[^\\x01-\\x7f]/Qr' -reconf['R_BAD_CTE_7BIT'] = { - re = string.format('(%s) & (%s) & (%s)', r_ctype_text, r_cte_7bit, r_body_8bit), - score = 2.0, - description = 'Detects bad content-transfer-encoding for text parts', - group = 'header' -} - -- Detects missing To header reconf['MISSING_TO'] = { re = '!raw_header_exists(To)', |