diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-19 11:18:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 11:18:34 +0100 |
commit | 4e141bea0675cd58f9f395637ba4f8e2612cfddc (patch) | |
tree | 616f3c9c6320bfd04143e75b15656bf21d3b485e /rules | |
parent | 82c3c3a5effda79b82257797e7ca52b9df3cdc81 (diff) | |
parent | bf86836adacbbb919c146ec44150af2c6075c5c0 (diff) | |
download | rspamd-4e141bea0675cd58f9f395637ba4f8e2612cfddc.tar.gz rspamd-4e141bea0675cd58f9f395637ba4f8e2612cfddc.zip |
Merge pull request #1645 from moisseev/missed-charset
[Minor] Fix R_MISSING_CHARSET rule
Diffstat (limited to 'rules')
-rw-r--r-- | rules/regexp/headers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 593052a38..a2e7f3829 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -93,7 +93,7 @@ reconf['R_RCVD_SPAMBOTS'] = { -- Charset is missing in message reconf['R_MISSING_CHARSET'] = { - re = string.format('content_type_is_type(text) & !content_type_has_param(charset) & !%s', + re = string.format('!is_empty_body() & content_type_is_type(text) & !content_type_has_param(charset) & !%s', 'compare_transfer_encoding(7bit)'), score = 2.5, description = 'Charset is missing in a message', |