aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_cfg_transform.lua
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2021-03-23 16:37:02 +0100
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2021-03-23 16:37:02 +0100
commit82c887e6ec758b05effe4e113192d5bf1a7312d0 (patch)
treee15285edb564873b1b042421666e602facd4f041 /lualib/lua_cfg_transform.lua
parent61d518bf1d96f079f2eed66dd3101cac64d83e00 (diff)
downloadrspamd-82c887e6ec758b05effe4e113192d5bf1a7312d0.tar.gz
rspamd-82c887e6ec758b05effe4e113192d5bf1a7312d0.zip
[Minor] cfg_transform - fix actions sanity check
Diffstat (limited to 'lualib/lua_cfg_transform.lua')
-rw-r--r--lualib/lua_cfg_transform.lua3
1 files changed, 2 insertions, 1 deletions
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