diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-04 16:52:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-04 16:52:30 +0100 |
commit | c12892984a7db0f190a11a212cb0c69f273269d8 (patch) | |
tree | cd9f7bcc33a663e3d7b3e2d637a6ed0602f6b52f /rules | |
parent | 5cad32bd8ecfb1a4e0370356ca11a2a21d6c6938 (diff) | |
download | rspamd-c12892984a7db0f190a11a212cb0c69f273269d8.tar.gz rspamd-c12892984a7db0f190a11a212cb0c69f273269d8.zip |
[Minor] Forwarded: Fix initial condition
Diffstat (limited to 'rules')
-rw-r--r-- | rules/forwarding.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |