diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-05-23 17:42:55 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-05-23 17:45:49 +0200 |
commit | 0be0301fe90a1f9720ccefd94378219531ccfc1d (patch) | |
tree | 627792c80fdfa057c5dde71d2139b0431dfea3a5 | |
parent | 485134e78ab625ade8b54f47b70779c49cba2811 (diff) | |
download | rspamd-0be0301fe90a1f9720ccefd94378219531ccfc1d.tar.gz rspamd-0be0301fe90a1f9720ccefd94378219531ccfc1d.zip |
[Minor] Prevent MID_CONTAINS_FROM from firing on empty address
-rw-r--r-- | rules/mid.lua | 2 |
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 |