aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-07 22:02:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-07 22:02:28 +0100
commit37414297fe03d16f0b3bdff174980c2984e652a3 (patch)
treea0f9c50a5b6e1570902769b580cb0b0ac2626f56 /src/plugins
parent94226d58fbdfb8fdacefbfa3b0f84b9e48578e34 (diff)
downloadrspamd-37414297fe03d16f0b3bdff174980c2984e652a3.tar.gz
rspamd-37414297fe03d16f0b3bdff174980c2984e652a3.zip
[Minor] Start moving of ip reputation to the new framework
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/reputation.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index d19d0da94..82ee8d4d7 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 = {