From: Vsevolod Stakhov Date: Sat, 7 Oct 2017 21:02:28 +0000 (+0100) Subject: [Minor] Start moving of ip reputation to the new framework X-Git-Tag: 1.7.0~577 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37414297fe03d16f0b3bdff174980c2984e652a3;p=thirdparty%2Frspamd.git [Minor] Start moving of ip reputation to the new framework --- diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua index d19d0da949..82ee8d4d7b 100644 --- a/src/plugins/lua/reputation.lua +++ b/src/plugins/lua/reputation.lua @@ -34,6 +34,9 @@ local default_expiry = 864000 -- 10 day by default -- IP Selector functions +local function ip_reputation_filter(task, rule) + +end -- Selectors are used to extract reputation tokens local ip_selector = { @@ -64,6 +67,8 @@ local ip_selector = { score_divisor = 1, }, --dependencies = {"ASN"}, -- ASN is a prefilter now... + filter = ip_reputation_filter, -- used to get scores + idempotent = ip_reputation_idempotent -- used to set scores } local selectors = {