From c12892984a7db0f190a11a212cb0c69f273269d8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 4 Aug 2020 16:52:30 +0100 Subject: [PATCH] [Minor] Forwarded: Fix initial condition --- rules/forwarding.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/forwarding.lua b/rules/forwarding.lua index f44cfb779..c07574c61 100644 --- a/rules/forwarding.lua +++ b/rules/forwarding.lua @@ -119,7 +119,7 @@ rspamd_config.FORWARDED = { return addr end - if not task:has_recipients(1) then return false end + if not task:has_recipients(1) or not task:has_recipients(2) then return false end local envrcpts = task:get_recipients(1) -- Forwarding will only be for single recipient messages if #envrcpts > 1 then return false end -- 2.39.5