summaryrefslogtreecommitdiffstats
path: root/rules/forwarding.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2020-08-22 13:24:42 +0200
committerAndrew Lewis <nerf@judo.za.org>2020-08-22 13:24:42 +0200
commitb6112ff63855bbdf07e2fa953a7ac1039085c5fd (patch)
tree855d8fae25d7e0f1e8fd4d5ac7221b25c5a493ba /rules/forwarding.lua
parentd1cab3edeef224d8d2611087d4fa12623e68165d (diff)
downloadrspamd-b6112ff63855bbdf07e2fa953a7ac1039085c5fd.tar.gz
rspamd-b6112ff63855bbdf07e2fa953a7ac1039085c5fd.zip
[Fix] Fix FWD_GOOGLE rule (#1815)
Diffstat (limited to 'rules/forwarding.lua')
-rw-r--r--rules/forwarding.lua2
1 files changed, 1 insertions, 1 deletions
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