]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix score calculation for dcc 5600/head
authorFrancois Lesueur <flesueur@alwaysdata.com>
Wed, 3 Sep 2025 08:33:55 +0000 (10:33 +0200)
committerFrancois Lesueur <flesueur@alwaysdata.com>
Wed, 3 Sep 2025 08:33:55 +0000 (10:33 +0200)
lualib/lua_scanners/dcc.lua

index 186d1543db973d90868c3f3c857f9626bcb576e8..32936226e28114bf62bebd077cac51a437c017b6 100644 (file)
@@ -223,7 +223,7 @@ local function dcc_check(task, content, digest, rule)
 
               if rnum and rnum >= lim then
                 opts[#opts + 1] = string.format('%s=%s', what, num)
-                score = score * rep
+                score = score + (rep / 3.0)
               end
             end