From: Francois Lesueur Date: Thu, 4 Sep 2025 08:35:03 +0000 (+0200) Subject: output rep if present X-Git-Tag: 3.13.0~4^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=363a79b7d9d578cc917eb64e694f7667f01d5a5b;p=thirdparty%2Frspamd.git output rep if present --- diff --git a/lualib/lua_scanners/dcc.lua b/lualib/lua_scanners/dcc.lua index 84b82cccd0..0fd7eacb11 100644 --- a/lualib/lua_scanners/dcc.lua +++ b/lualib/lua_scanners/dcc.lua @@ -188,9 +188,11 @@ local function dcc_check(task, content, digest, rule) -- Accept decision, only expected decision since query is with grey-off no-reject local opts = {} local score = 0.0 + local rep_orig = nil if info then info = info:lower() local rep = info:match('rep=(%d+)') + rep_orig = rep -- Adjust reputation if available if rep then @@ -239,6 +241,9 @@ local function dcc_check(task, content, digest, rule) end if #opts > 0 and score > 0 then + if rep_orig then + opts[#opts + 1] = string.format('%s=%s', "rep", rep_orig .. "%") + end task:insert_result(rule.symbol_bulk, score, opts)