diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-22 10:59:31 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-22 10:59:31 +0000 |
commit | b3e4fdec18a66450aca807656ee0b60e27b6f2e7 (patch) | |
tree | cec15a655b7f1d3ad68768291f531433c58977fc /src/plugins/lua/greylist.lua | |
parent | 6c82b33813c0704e30902ef316236889cfc1f1a6 (diff) | |
download | rspamd-b3e4fdec18a66450aca807656ee0b60e27b6f2e7.tar.gz rspamd-b3e4fdec18a66450aca807656ee0b60e27b6f2e7.zip |
[Fix] Rework logic of actions setting
Diffstat (limited to 'src/plugins/lua/greylist.lua')
-rw-r--r-- | src/plugins/lua/greylist.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index a555fcfc8..8de4f69c8 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -256,7 +256,7 @@ local function greylist_set(task) if action == 'greylist' then -- We are going to accept message rspamd_logger.infox(task, 'Downgrading metric action from "greylist" to "no action"') - task:set_metric_action('default', 'no action') + task:disable_action('greylist') end return end @@ -266,7 +266,7 @@ local function greylist_set(task) if action == 'greylist' then -- We are going to accept message rspamd_logger.infox(task, 'Downgrading metric action from "greylist" to "no action"') - task:set_metric_action('default', 'no action') + task:disable_action('greylist') end return end @@ -276,7 +276,7 @@ local function greylist_set(task) if action == 'greylist' then -- We are going to accept message rspamd_logger.infox(task, 'Downgrading metric action from "greylist" to "no action"') - task:set_metric_action('default', 'no action') + task:disable_action('greylist') end return end @@ -320,7 +320,7 @@ local function greylist_set(task) if action == 'greylist' then -- We are going to accept message rspamd_logger.infox(task, 'Downgrading metric action from "greylist" to "no action"') - task:set_metric_action('default', 'no action') + task:disable_action('greylist') end task:insert_result(settings['symbol'], 0.0, 'pass', is_whitelisted) |