]> source.dussan.org Git - rspamd.git/commitdiff
Fix lowercase for emails checked on RBLs 3363/head
authorOliver Dick <o.dick@hosting.de>
Tue, 5 May 2020 11:03:28 +0000 (13:03 +0200)
committerOliver Dick <o.dick@hosting.de>
Tue, 5 May 2020 11:03:28 +0000 (13:03 +0200)
src/plugins/lua/rbl.lua

index 73bddfdc959be89ab8f4899658382566a36222b7..bfc2dcc6b8ce3ac957bcec19fe8a55cb105cccb0 100644 (file)
@@ -589,7 +589,8 @@ local function gen_rbl_callback(rule)
 
   local function check_email_table(task, email_tbl, requests_table, whitelist, what)
     lua_util.remove_email_aliases(email_tbl)
-    email_tbl.addr = email_tbl.addr:lower()
+    email_tbl.domain = email_tbl.domain:lower()
+    email_tbl.user = email_tbl.user:lower()
 
     if rule.emails_domainonly then
       add_dns_request(task, email_tbl.domain, false, false, requests_table,