summaryrefslogtreecommitdiffstats
path: root/rules/regexp/headers.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-15 17:11:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-15 17:11:57 +0100
commit7f66a4fd9a4141c4fdfe172c03e94f8e2b0ab679 (patch)
treed4718d0b2c5328be875ddd29296cf4df43c3af79 /rules/regexp/headers.lua
parent1a3ffb7e0b1ac1a56b17f6a235841c105ba02aed (diff)
downloadrspamd-7f66a4fd9a4141c4fdfe172c03e94f8e2b0ab679.tar.gz
rspamd-7f66a4fd9a4141c4fdfe172c03e94f8e2b0ab679.zip
[Minor] Fix R_MISSING_CHARSET for non text/plain parts
Diffstat (limited to 'rules/regexp/headers.lua')
-rw-r--r--rules/regexp/headers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 75ed91fd1..5658608fb 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -119,7 +119,7 @@ reconf['R_RCVD_SPAMBOTS'] = {
-- Charset is missing in message
reconf['R_MISSING_CHARSET'] = {
- re = string.format('!is_empty_body() & content_type_is_type(text) & !content_type_has_param(charset) & !%s',
+ re = string.format('!is_empty_body() & content_type_is_type(text) & content_type_is_subtype(plain) & !content_type_has_param(charset) & !%s',
'compare_transfer_encoding(7bit)'),
score = 2.5,
description = 'Charset is missing in a message',