]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix FWD_GOOGLE rule (#1815) 3479/head
authorAndrew Lewis <nerf@judo.za.org>
Sat, 22 Aug 2020 11:24:42 +0000 (13:24 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sat, 22 Aug 2020 11:24:42 +0000 (13:24 +0200)
rules/forwarding.lua

index c07574c6166feabcb242ebd08fb4ca5607d34dcb..cbbb62c53ee2ec28ba9b45df111fe738a19a014a 100644 (file)
@@ -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