aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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