aboutsummaryrefslogtreecommitdiffstats
path: root/rules/misc.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-03-23 10:28:03 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-03-23 10:28:03 +0200
commitab60a0e3fa931d7df2c9a80e711e86c7162042c5 (patch)
tree7eff717465ce87bba20def9d2bb46c89a58ab8f3 /rules/misc.lua
parent2198052a5516cb5f8e27cfd16c3dc87271c184ee (diff)
downloadrspamd-ab60a0e3fa931d7df2c9a80e711e86c7162042c5.tar.gz
rspamd-ab60a0e3fa931d7df2c9a80e711e86c7162042c5.zip
[Minor] Fix changes to SPOOF_REPLYTO
Diffstat (limited to 'rules/misc.lua')
-rw-r--r--rules/misc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index 78acdf910..e289215c9 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -442,6 +442,7 @@ rspamd_config.SPOOF_REPLYTO = {
if not fromdom then return false end
-- SMTP recipients must contain From domain
local to = task:get_recipients(1)
+ if not to then return false end
local found_fromdom = false
for _, t in ipairs(to) do
if util.strequal_caseless(t.domain, fromdom) then