aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_cfg_transform.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-11 15:18:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-11 15:18:47 +0100
commitfb466004e675ffd30c438ce5e3fc37c9a686eeaa (patch)
tree3349ad0d794ba2b97b424b2330025d36b29ef46f /lualib/lua_cfg_transform.lua
parentbc2287c953cc472a2df720ce26d7d86ab886652c (diff)
downloadrspamd-fb466004e675ffd30c438ce5e3fc37c9a686eeaa.tar.gz
rspamd-fb466004e675ffd30c438ce5e3fc37c9a686eeaa.zip
[Minor] Add 'no action' as available threshold
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 2fe8cb9c6..0e6261acd 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -241,7 +241,8 @@ return function(cfg)
logger.errx('no actions defined')
else
-- Perform sanity check for actions
- local actions_defs = {'greylist', 'add header', 'add_header',
+ local actions_defs = {'no action', 'no_action', -- In case if that's added
+ 'greylist', 'add header', 'add_header',
'rewrite subject', 'rewrite_subject', 'reject'}
if not cfg.actions['no action'] and not cfg.actions['no_action'] and