summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-29 14:30:47 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-29 14:30:47 +0200
commitf63fa491d19cf7eb8aae12b1c0ce4f388a8b8a7d (patch)
treee6d08c4f243b573f67ab22fae2af324242f2c8bd
parent19e9e19dfd461154f7d05d8a8bf00b4ff1a4d7e1 (diff)
downloadrspamd-f63fa491d19cf7eb8aae12b1c0ce4f388a8b8a7d.tar.gz
rspamd-f63fa491d19cf7eb8aae12b1c0ce4f388a8b8a7d.zip
[Minor] Reduce scoring on some rules
-rw-r--r--rules/html.lua2
-rw-r--r--rules/regexp/headers.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/rules/html.lua b/rules/html.lua
index 25578723e..ad9bd4d42 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -59,7 +59,7 @@ rspamd_config.HTML_SHORT_LINK_IMG_1 = {
callback = function(task)
return check_html_image(task, 0, 1024)
end,
- score = 3.0,
+ score = 2.0,
group = 'html',
description = 'Short html part (0..1K) with a link to an image'
}
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 9c47eaeef..5118a5b9b 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -66,7 +66,7 @@ local r_cte_7bit = 'compare_transfer_encoding(7bit)'
local r_body_8bit = '/[^\\x01-\\x7f]/Qr'
reconf['R_BAD_CTE_7BIT'] = {
re = string.format('(%s) & (%s) & (%s)', r_ctype_text, r_cte_7bit, r_body_8bit),
- score = 3.0,
+ score = 2.0,
description = 'Detects bad content-transfer-encoding for text parts',
group = 'header'
}