]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Start moving of ip reputation to the new framework
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 7 Oct 2017 21:02:28 +0000 (22:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 7 Oct 2017 21:02:28 +0000 (22:02 +0100)
src/plugins/lua/reputation.lua

index d19d0da9494323651df3f15d6e2ee0819f4f8eb5..82ee8d4d7bfa6cc6b571ba9d24902f38918a2eaf 100644 (file)
@@ -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 = {