]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Forwarded: Fix initial condition
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Aug 2020 15:52:30 +0000 (16:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Aug 2020 15:52:30 +0000 (16:52 +0100)
rules/forwarding.lua

index f44cfb779fd474091cf4473c91f4261e6a56cf58..c07574c6166feabcb242ebd08fb4ca5607d34dcb 100644 (file)
@@ -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