commit b6112ff: [Fix] Fix FWD_GOOGLE rule (#1815)

Andrew Lewis nerf at judo.za.org
Sun Aug 23 11:42:11 UTC 2020


Author: Andrew Lewis
Date: 2020-08-22 13:24:42 +0200
URL: https://github.com/rspamd/rspamd/commit/b6112ff63855bbdf07e2fa953a7ac1039085c5fd (refs/pull/3479/head)

[Fix] Fix FWD_GOOGLE rule (#1815)

---
 rules/forwarding.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the Commits mailing list