]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Some more missing flags
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 21 Jul 2022 20:04:20 +0000 (21:04 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 21 Jul 2022 20:04:20 +0000 (21:04 +0100)
src/plugins/lua/clustering.lua
src/plugins/lua/neural.lua
src/plugins/lua/ratelimit.lua
src/plugins/lua/replies.lua
src/plugins/lua/reputation.lua

index 45e5d4bc14ff6ff4c11020402e0d19072e4be1f4..3e546f8171ff0578fbc140df5fda25631e64fb5a 100644 (file)
@@ -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
index 5389f5ab2800428f08fa4aa9c48e0b08356614df..d5df56c2b07270803774cf52810c93f0541224c3 100644 (file)
@@ -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
 })
index c3f3c1836ff3d27a43e235ebc17df20b15fa99b6..1c19d890c62889e9740bd1e090c4709d48f617f0 100644 (file)
@@ -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
index 2602c514c089fe7f3f7ef1688e69725a19dd4448..ee2e4987f5b633852aa937e755a03ac6ac649e24 100644 (file)
@@ -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',
index ecb8bcfc44e6dd5825f25094e07aa062590ab1f1..6b7a703d6746c59e5964f45754cd069239614efd 100644 (file)
@@ -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