From: Vsevolod Stakhov Date: Thu, 28 Apr 2016 11:13:41 +0000 (+0100) Subject: [Fix] Fix dynamic scoring of subject symbols X-Git-Tag: 1.3.0~604 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cff60f6a8f600351364b1260ae7bedee0678fd01;p=thirdparty%2Frspamd.git [Fix] Fix dynamic scoring of subject symbols Reported by: @moisseev --- diff --git a/rules/misc.lua b/rules/misc.lua index 048bae149b..01fe3f5aa0 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')