commit 82c887e: [Minor] cfg_transform - fix actions sanity check
Carsten Rosenberg
c.rosenberg at heinlein-support.de
Wed Mar 31 19:14:05 UTC 2021
Author: Carsten Rosenberg
Date: 2021-03-23 16:37:02 +0100
URL: https://github.com/rspamd/rspamd/commit/82c887e6ec758b05effe4e113192d5bf1a7312d0 (refs/pull/3693/head)
[Minor] cfg_transform - fix actions sanity check
---
lualib/lua_cfg_transform.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index ae0f5eac1..fca4c72c2 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -367,7 +367,8 @@ return function(cfg)
-- Perform sanity check for actions
local actions_defs = {'no action', 'no_action', -- In case if that's added
'greylist', 'add header', 'add_header',
- 'rewrite subject', 'rewrite_subject', 'reject'}
+ 'rewrite subject', 'rewrite_subject', 'quarantine',
+ 'reject', 'discard'}
if not cfg.actions['no action'] and not cfg.actions['no_action'] and
not cfg.actions['accept'] then
More information about the Commits
mailing list