From b6112ff63855bbdf07e2fa953a7ac1039085c5fd Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Sat, 22 Aug 2020 13:24:42 +0200 Subject: [Fix] Fix FWD_GOOGLE rule (#1815) --- rules/forwarding.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules') 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 -- cgit v1.2.3