Browse Source

[Minor] Rbl: Fix some more defects

tags/2.0
Vsevolod Stakhov 4 years ago
parent
commit
f7878b4084
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/plugins/lua/rbl.lua

+ 2
- 1
src/plugins/lua/rbl.lua View File

@@ -550,7 +550,7 @@ local function gen_rbl_callback(rule)
end
end
add_dns_request(task, string.format('%s%s%s',
email_tbl.user, delimiter, email_tbl.host), false, false,
email_tbl.user, delimiter, email_tbl.domain), false, false,
requests_table, what, whitelist)
end
end
@@ -591,6 +591,7 @@ local function gen_rbl_callback(rule)
local replyto = get_raw_header('Reply-To')
if replyto then
local rt = rspamd_util.parse_mail_address(replyto, task:get_mempool())
lua_util.debugm(N, task, 'check replyto %s', rt[1])

if rt and rt[1] and (rt[1].addr and #rt[1].addr > 0) then
check_email_table(task, rt[1], requests_table, whitelist, 'email replyto')

Loading…
Cancel
Save