From: Andrew Lewis Date: Sat, 22 Aug 2020 11:24:42 +0000 (+0200) Subject: [Fix] Fix FWD_GOOGLE rule (#1815) X-Git-Tag: 2.6~127^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3479%2Fhead;p=rspamd.git [Fix] Fix FWD_GOOGLE rule (#1815) --- diff --git a/rules/forwarding.lua b/rules/forwarding.lua index c07574c61..cbbb62c53 100644 --- a/rules/forwarding.lua +++ b/rules/forwarding.lua @@ -23,7 +23,7 @@ rspamd_config.FWD_GOOGLE = { if not (task:has_from(1) and task:has_recipients(1)) then return false end - local envfrom = task:get_from(1) + local envfrom = task:get_from{'smtp', 'orig'} local envrcpts = task:get_recipients(1) -- Forwarding will only be to a single recipient if #envrcpts > 1 then return false end