From: Vsevolod Stakhov Date: Mon, 3 Jul 2017 18:03:51 +0000 (+0100) Subject: [Fix] Fix gmail dots removal X-Git-Tag: 1.6.2~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5ced77fdfe4864cc189e94ba49d492f29f253e7;p=rspamd.git [Fix] Fix gmail dots removal --- 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