Browse Source

[Fix] Fix emails filtering in emails module

tags/1.9.0
Vsevolod Stakhov 5 years ago
parent
commit
b9384315ad
1 changed files with 9 additions and 8 deletions
  1. 9
    8
      src/plugins/lua/emails.lua

+ 9
- 8
src/plugins/lua/emails.lua View File

@@ -185,14 +185,15 @@ local function gen_check_emails(rule)
end

local replyto = get_raw_header('Reply-To')
if not replyto then return false end
local rt = util.parse_mail_address(replyto, task:get_mempool())

if rt and rt[1] then
rspamd_lua_utils.remove_email_aliases(rt[1])
if not checked[rt[1].addr] then
check_email_rule(task, rule, rt[1])
checked[rt[1].addr] = true
if replyto then
local rt = util.parse_mail_address(replyto, task:get_mempool())

if rt and rt[1] then
rspamd_lua_utils.remove_email_aliases(rt[1])
if not checked[rt[1].addr] then
check_email_rule(task, rule, rt[1])
checked[rt[1].addr] = true
end
end
end
end

Loading…
Cancel
Save