commit b861390: [Minor] Some more missing flags

Vsevolod Stakhov vsevolod at rspamd.com
Thu Jul 21 20:07:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-07-21 21:04:20 +0100
URL: https://github.com/rspamd/rspamd/commit/b86139074fa0d7f8e940c95170bc5c750e33d942 (HEAD -> master)

[Minor] Some more missing flags

---
 src/plugins/lua/clustering.lua | 1 +
 src/plugins/lua/neural.lua     | 2 +-
 src/plugins/lua/ratelimit.lua  | 1 +
 src/plugins/lua/replies.lua    | 3 ++-
 src/plugins/lua/reputation.lua | 3 ++-
 5 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/plugins/lua/clustering.lua b/src/plugins/lua/clustering.lua
index 45e5d4bc1..3e546f817 100644
--- a/src/plugins/lua/clustering.lua
+++ b/src/plugins/lua/clustering.lua
@@ -299,6 +299,7 @@ if opts['rules'] then
       rspamd_config:register_symbol{
         name = rule.symbol .. '_STORE',
         type = 'idempotent',
+        flags = 'empty,explicit_disable,ignore_passthrough',
         callback = callback_gen(clusterting_idempotent_cb, rule),
       }
     end
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua
index 5389f5ab2..d5df56c2b 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -961,7 +961,7 @@ end
 rspamd_config:register_symbol({
   name = 'NEURAL_LEARN',
   type = 'idempotent,callback',
-  flags = 'nostat,explicit_disable',
+  flags = 'nostat,explicit_disable,ignore_passthrough',
   priority = 5,
   callback = ann_push_vector
 })
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index c3f3c1836..1c19d890c 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -912,6 +912,7 @@ if opts then
     rspamd_config:register_symbol {
       type = 'idempotent',
       name = 'RATELIMIT_UPDATE',
+      flags = 'explicit_disable,ignore_passthrough',
       callback = ratelimit_update_cb,
     }
   end
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index 2602c514c..ee2e4987f 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -303,7 +303,8 @@ if opts then
       type = 'idempotent',
       callback = replies_set,
       priority = 5,
-      group = "replies",
+      group = 'replies',
+      flags = 'explicit_disable,ignore_passthrough',
     })
     local id = rspamd_config:register_symbol({
       name = 'REPLIES_CHECK',
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index ecb8bcfc4..6b7a703d6 100644
--- a/src/plugins/lua/reputation.lua
+++ b/src/plugins/lua/reputation.lua
@@ -1328,7 +1328,7 @@ local function parse_rule(name, tbl)
     rspamd_config:register_symbol{
       name = rule.symbol .. '_POST',
       type = 'postfilter',
-      flags = 'nostat',
+      flags = 'nostat,explicit_disable,ignore_passthrough',
       callback = callback_gen(reputation_postfilter_cb, rule),
     }
   end
@@ -1338,6 +1338,7 @@ local function parse_rule(name, tbl)
     rspamd_config:register_symbol{
       name = rule.symbol .. '_IDEMPOTENT',
       type = 'idempotent',
+      flags = 'explicit_disable,ignore_passthrough',
       callback = callback_gen(reputation_idempotent_cb, rule),
     }
   end


More information about the Commits mailing list