]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] No greylist rejected messages
authorAL <AlexeySa@users.noreply.github.com>
Sat, 12 Nov 2016 22:54:40 +0000 (01:54 +0300)
committerGitHub <noreply@github.com>
Sat, 12 Nov 2016 22:54:40 +0000 (01:54 +0300)
src/plugins/lua/greylist.lua

index c31e489273c923de6a8d6fe27efe644cef86894b..d32f411d85a2cf2b470fe936623e3b411a7d747d 100644 (file)
@@ -276,7 +276,7 @@ local function greylist_set(task)
 
   local action = task:get_metric_action('default')
   if do_greylisting_required then
-    if do_greylisting_required ~= "1" then return end
+    if do_greylisting_required ~= "1" or action == 'reject' then return end
   else
     if action == 'no action' or action == 'reject' then return end
   end