From: Andrew Lewis Date: Fri, 11 Nov 2016 06:27:18 +0000 (+0200) Subject: [Minor] Fix selective greylisting X-Git-Tag: 1.4.0~90^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1119%2Fhead;p=rspamd.git [Minor] Fix selective greylisting --- diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index 9610f81d8..c31e48927 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -275,8 +275,10 @@ local function greylist_set(task) end local action = task:get_metric_action('default') - if action == 'no action' or action == 'reject' then - if not do_greylisting_required or do_greylisting_required ~= "1" then return end + if do_greylisting_required then + if do_greylisting_required ~= "1" then return end + else + if action == 'no action' or action == 'reject' then return end end local body_key = data_key(task) local meta_key = envelope_key(task)