commit c128929: [Minor] Forwarded: Fix initial condition

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Aug 5 09:21:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-08-04 16:52:30 +0100
URL: https://github.com/rspamd/rspamd/commit/c12892984a7db0f190a11a212cb0c69f273269d8

[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


More information about the Commits mailing list