From efd7a58f732c855e51cead1c1571ad3ddef4b987 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 23 May 2017 17:42:55 +0200 Subject: [PATCH] [Minor] Prevent MID_CONTAINS_FROM from firing on empty address --- rules/mid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5