From ab60a0e3fa931d7df2c9a80e711e86c7162042c5 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 23 Mar 2017 10:28:03 +0200 Subject: [Minor] Fix changes to SPOOF_REPLYTO --- rules/misc.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'rules/misc.lua') 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 -- cgit v1.2.3