]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add 'no action' as available threshold
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 11 May 2018 14:18:47 +0000 (15:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 11 May 2018 14:18:47 +0000 (15:18 +0100)
lualib/lua_cfg_transform.lua

index 2fe8cb9c6272dd3c0a67da1c60c86368996f3b4d..0e6261acd4aaecdf472f756641d293d4f1f947a9 100644 (file)
@@ -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