aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-09-29 14:00:17 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-09-29 14:00:17 +0200
commite4e309f367e06385d47c9cd71ef02dbbd52698d7 (patch)
tree577f2043c7bd43c9141c52514d7fffa2b316a5fb /src/plugins
parent337ca0640698f11ca8ff5cbaa023b73f610315f4 (diff)
downloadrspamd-e4e309f367e06385d47c9cd71ef02dbbd52698d7.tar.gz
rspamd-e4e309f367e06385d47c9cd71ef02dbbd52698d7.zip
[Minor] Set/reduce postfilter priorities
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/fann_scores.lua1
-rw-r--r--src/plugins/lua/greylist.lua2
-rw-r--r--src/plugins/lua/ip_score.lua1
-rw-r--r--src/plugins/lua/ratelimit.lua1
-rw-r--r--src/plugins/lua/replies.lua2
5 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua
index 6fc0112bc..9ddb79fc3 100644
--- a/src/plugins/lua/fann_scores.lua
+++ b/src/plugins/lua/fann_scores.lua
@@ -514,6 +514,7 @@ else
local id = rspamd_config:register_symbol({
name = fann_symbol_spam,
type = 'postfilter',
+ priority = 5,
callback = fann_scores_filter
})
rspamd_config:set_metric_symbol({
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua
index 646164424..90f6be1ea 100644
--- a/src/plugins/lua/greylist.lua
+++ b/src/plugins/lua/greylist.lua
@@ -348,7 +348,7 @@ if opts then
name = 'GREYLIST_SAVE',
type = 'postfilter',
callback = greylist_set,
- priority = 10
+ priority = 5
})
rspamd_config:register_symbol({
name = 'GREYLIST_CHECK',
diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua
index 6b6ac900a..c1489717e 100644
--- a/src/plugins/lua/ip_score.lua
+++ b/src/plugins/lua/ip_score.lua
@@ -340,6 +340,7 @@ if redis_params then
rspamd_config:register_symbol({
name = 'IPSCORE_SAVE',
type = 'postfilter',
+ priority = 5,
callback = ip_score_set,
})
rspamd_config:register_symbol({
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index 38ebcfa7e..578c5cc23 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -594,6 +594,7 @@ if opts then
rspamd_config:register_symbol({
name = 'RATELIMIT_SET',
type = 'postfilter',
+ priority = 5,
callback = rate_set,
})
for _, v in pairs(custom_keywords) do
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index 4a3c5646f..c3de18e8e 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -125,7 +125,7 @@ if opts then
name = 'REPLIES_SET',
type = 'postfilter',
callback = replies_set,
- priority = 10
+ priority = 5
})
rspamd_config:register_symbol({
name = 'REPLIES_CHECK',