Skip to content

Commit

Permalink
[Fix] RBL: Fix behaviour of emails_domainonly
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 30, 2019
1 parent fe69a42 commit 2aaf45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/lua/rbl.lua
Expand Up @@ -589,7 +589,7 @@ local function gen_rbl_callback(rule)

for _,email in ipairs(emails) do
local email_tbl = {
domain = email:get_tld(),
domain = (rule.emails_domainonly and email:get_tld()) or email:get_host(),
user = email:get_user(),
addr = tostring(email),
}
Expand Down

0 comments on commit 2aaf45f

Please sign in to comment.