aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-28 12:13:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-28 12:13:41 +0100
commitcff60f6a8f600351364b1260ae7bedee0678fd01 (patch)
treeb0bb640c2d9faa53b67cf8b2519719c4c8c14923 /rules
parent0a154408b697eb326ba9ce7ef6b0197cd75404f2 (diff)
downloadrspamd-cff60f6a8f600351364b1260ae7bedee0678fd01.tar.gz
rspamd-cff60f6a8f600351364b1260ae7bedee0678fd01.zip
[Fix] Fix dynamic scoring of subject symbols
Reported by: @moisseev
Diffstat (limited to 'rules')
-rw-r--r--rules/misc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index 048bae149..01fe3f5aa 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -38,7 +38,7 @@ reconf['R_FLASH_REDIR_IMGSHACK'] = '/^(?:http:\\/\\/)?img\\d{1,5}\\.imageshack\\
local function test_subject(task, check_function, rate)
local function normalize_linear(a, x)
local f = a * x
- return (( f < 1 ) and f or 1), tostring(x)
+ return true, (( f < 1 ) and f or 1), tostring(x)
end
local sbj = task:get_header('Subject')