]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Set/reduce postfilter priorities 985/head
authorAndrew Lewis <nerf@judo.za.org>
Thu, 29 Sep 2016 12:00:17 +0000 (14:00 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 29 Sep 2016 12:00:17 +0000 (14:00 +0200)
src/plugins/lua/fann_scores.lua
src/plugins/lua/greylist.lua
src/plugins/lua/ip_score.lua
src/plugins/lua/ratelimit.lua
src/plugins/lua/replies.lua

index 6fc0112bc768354a6e2dbfe01b044ce425871511..9ddb79fc38490f9082c7be156fbce3b224766cc9 100644 (file)
@@ -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({
index 64616442436a9dcba620ff21461d0774063229bd..90f6be1ea541112053a7f6e8135b3dc1f00fabba 100644 (file)
@@ -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',
index 6b6ac900a6141f57fd028bde9eb94284e85c22f9..c1489717e0039e31459723fb5a39d091e55b2773 100644 (file)
@@ -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({
index 38ebcfa7eb192a396a1685dbad6c75f27032d362..578c5cc233e7860b8b81fed1c968da5c39f84638 100644 (file)
@@ -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
index 4a3c5646f3544c493cbaec19f23a303cb5c84fb7..c3de18e8e85f224cb2ac2699b844c962792fc5ca 100644 (file)
@@ -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',