commit 99c27fc: [Rules] Reduce default weight for R_MISSING_CHARSET

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Mar 12 21:35:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-03-12 21:29:01 +0000
URL: https://github.com/rspamd/rspamd/commit/99c27fc7bec4217ebd2514adac9e2b9c7f129984 (HEAD -> master)

[Rules] Reduce default weight for R_MISSING_CHARSET

---
 rules/regexp/headers.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index f606778ba..a9ab6c975 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -147,7 +147,7 @@ reconf['R_RCVD_SPAMBOTS'] = {
 reconf['R_MISSING_CHARSET'] = {
   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,
+  score = 0.5,
   description = 'Charset is missing in a message',
   group = 'headers',
   mime_only = true,


More information about the Commits mailing list