From: Vsevolod Stakhov Date: Tue, 4 Aug 2020 15:52:30 +0000 (+0100) Subject: [Minor] Forwarded: Fix initial condition X-Git-Tag: 2.6~178 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c12892984a7db0f190a11a212cb0c69f273269d8;p=rspamd.git [Minor] Forwarded: Fix initial condition --- 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