]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix R_MISSING_CHARSET for non text/plain parts
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 May 2018 16:11:57 +0000 (17:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 May 2018 16:11:57 +0000 (17:11 +0100)
rules/regexp/headers.lua

index 75ed91fd1bfe71c43e98a93e0318aa466be8fb7b..5658608fb4711421e8d042dcae6452084cf994ce 100644 (file)
@@ -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',