aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-28 19:16:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-28 19:16:32 +0100
commite287d09848aa47e380e94f69a11b44828e3f76f6 (patch)
tree923f4d4a073803873bec7a1ec98333a2335541dc /rules
parent2f802214ae0cce3843e988a467c48efc8e7551b1 (diff)
downloadrspamd-e287d09848aa47e380e94f69a11b44828e3f76f6.tar.gz
rspamd-e287d09848aa47e380e94f69a11b44828e3f76f6.zip
[Fix] Fix enormous scores for R_WHITE_ON_WHITE
MFH: 1.6
Diffstat (limited to 'rules')
-rw-r--r--rules/html.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules/html.lua b/rules/html.lua
index 81555839b..7cc0ccc91 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -220,6 +220,9 @@ rspamd_config.R_WHITE_ON_WHITE = {
if ret then
if transp_rate > 0.1 then
+ if transp_rate > 0.5 or transp_rate ~= transp_rate then
+ transp_rate = 0.5
+ end
return true,(transp_rate * 2.0),arg
end
end
@@ -227,8 +230,9 @@ rspamd_config.R_WHITE_ON_WHITE = {
return false
end,
- score = 6.0,
+ score = 4.0,
group = 'html',
+ one_shot = true,
description = 'Message contains low contrast text'
}