summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-11 08:27:18 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-11 17:17:50 +0200
commite94bf87b4fb3213b554de495642cea028ebad31c (patch)
tree9ae64c6b34fbd34da61404c045767e42046da045 /src
parentef5838cf7757e2a70418d6fa4ee48b7f48f2c599 (diff)
downloadrspamd-e94bf87b4fb3213b554de495642cea028ebad31c.tar.gz
rspamd-e94bf87b4fb3213b554de495642cea028ebad31c.zip
[Minor] Fix selective greylisting
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/greylist.lua6
1 files changed, 4 insertions, 2 deletions
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)