aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-05-23 17:42:55 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-05-23 17:42:55 +0200
commitefd7a58f732c855e51cead1c1571ad3ddef4b987 (patch)
tree0857da5fadf03e5777677db297a07b9cdca66c45 /rules
parentfca9de7591e8a80f9df15f30f5641f5c462ef616 (diff)
downloadrspamd-efd7a58f732c855e51cead1c1571ad3ddef4b987.tar.gz
rspamd-efd7a58f732c855e51cead1c1571ad3ddef4b987.zip
[Minor] Prevent MID_CONTAINS_FROM from firing on empty address
Diffstat (limited to 'rules')
-rw-r--r--rules/mid.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/mid.lua b/rules/mid.lua
index 08ccaf04a..337fbde86 100644
--- a/rules/mid.lua
+++ b/rules/mid.lua
@@ -36,7 +36,7 @@ local function mid_check_func(task)
end
-- Check From address atrributes against MID
local from = task:get_from(2)
- if (from and from[1] and from[1].domain) then
+ if (from and from[1] and from[1].domain and from[1].domain ~= '') then
local fd = from[1].domain:lower()
local _,_,md = mid:find("@([^>]+)>?$")
-- See if all or part of the From address