aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-29 19:13:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-29 19:13:36 +0100
commit3019adc5713d89bc4f953cd9af0afc48a484f322 (patch)
tree6f75e418e90630b6008cdf57f8653f6f21aaeeb7 /src/plugins
parent752043f91cad4b664e2eaca507f77247a110d9da (diff)
downloadrspamd-3019adc5713d89bc4f953cd9af0afc48a484f322.tar.gz
rspamd-3019adc5713d89bc4f953cd9af0afc48a484f322.zip
[Minor] Lowercase email addresses
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/emails.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua
index 41b65f2ff..ba390383c 100644
--- a/src/plugins/lua/emails.lua
+++ b/src/plugins/lua/emails.lua
@@ -116,9 +116,9 @@ local function gen_check_emails(rule)
for _,addr in ipairs(emails) do
local to_check = string.format('%s@%s', addr:get_user(), addr:get_host())
local naddr = {
- user = addr:get_user(),
- domain = addr:get_host(),
- addr = to_check
+ user = (addr:get_user() or ''):lower(),
+ domain = (addr:get_host() or ''):lower(),
+ addr = to_check:lower()
}
rspamd_lua_utils.remove_email_aliases(naddr)