commit 5103fd0: [Minor] Force_actions: Fix logic of the module with the modified symcache

Vsevolod Stakhov vsevolod at rspamd.com
Sat May 14 12:49:12 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-05-14 13:47:55 +0100
URL: https://github.com/rspamd/rspamd/commit/5103fd021c61b860cc2bf6e6872d1456819627c3 (HEAD -> master)

[Minor] Force_actions: Fix logic of the module with the modified symcache

---
 src/plugins/lua/force_actions.lua | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua
index ecdd3aeee..78676484a 100644
--- a/src/plugins/lua/force_actions.lua
+++ b/src/plugins/lua/force_actions.lua
@@ -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


More information about the Commits mailing list