From: Andrew Lewis Date: Thu, 29 Sep 2016 12:00:17 +0000 (+0200) Subject: [Minor] Set/reduce postfilter priorities X-Git-Tag: 1.4.0~356^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F985%2Fhead;p=thirdparty%2Frspamd.git [Minor] Set/reduce postfilter priorities --- diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua index 6fc0112bc7..9ddb79fc38 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 6461644243..90f6be1ea5 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 6b6ac900a6..c1489717e0 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 38ebcfa7eb..578c5cc233 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 4a3c5646f3..c3de18e8e8 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',