]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Force_actions: Fix logic of the module with the modified symcache
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 14 May 2022 12:47:55 +0000 (13:47 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 14 May 2022 12:47:55 +0000 (13:47 +0100)
src/plugins/lua/force_actions.lua

index ecdd3aeeec02b7a53e571269d7838b9aaa633d1c..78676484a9586553aff234dc6044e59cc63b5ea6 100644 (file)
@@ -195,10 +195,13 @@ local function configure_module()
             t.priority = 10
           else
             t.type = 'normal'
+            if not sett.least then
+              t.augmentations = {'passthrough', 'important'}
+            end
           end
           t.name = 'FORCE_ACTION_' .. name
           t.callback = cb
-          t.flags = 'empty'
+          t.flags = 'empty, ignore_passthrough'
           rspamd_config:register_symbol(t)
           if t.type == 'normal' then
             for _, a in ipairs(atoms) do
@@ -215,4 +218,4 @@ local function configure_module()
   end
 end
 
-configure_module()
+configure_module()
\ No newline at end of file