From d5ced77fdfe4864cc189e94ba49d492f29f253e7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 3 Jul 2017 19:03:51 +0100 Subject: [PATCH] [Fix] Fix gmail dots removal --- lualib/lua_util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index c401610d5..8479d579b 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -45,7 +45,7 @@ end exports.remove_email_aliases = function(email_addr) local function check_gmail_user(addr) -- Remove all points - local no_dots_user = string.gsub(addr.user, '.', '') + local no_dots_user = string.gsub(addr.user, '%.', '') local cap, pluses = string.match(no_dots_user, '^([^%+][^%+]*)(%+.*)$') if cap then return cap, rspamd_str_split(pluses, '+'), nil -- 2.39.5