From: Vsevolod Stakhov Date: Tue, 15 May 2018 16:11:57 +0000 (+0100) Subject: [Minor] Fix R_MISSING_CHARSET for non text/plain parts X-Git-Tag: 1.7.5~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f66a4fd9a4141c4fdfe172c03e94f8e2b0ab679;p=rspamd.git [Minor] Fix R_MISSING_CHARSET for non text/plain parts --- 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',