diff options
Diffstat (limited to 'rules/forwarding.lua')
-rw-r--r-- | rules/forwarding.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/forwarding.lua b/rules/forwarding.lua index 5adb562ef..c5ac81c52 100644 --- a/rules/forwarding.lua +++ b/rules/forwarding.lua @@ -108,7 +108,7 @@ rspamd_config.FWD_SRS = { rspamd_config.FORWARDED = { callback = function (task) local function normalize_addr(addr) - addr = string.match(addr, '^<?([^<]*)>?$') or addr + addr = string.match(addr, '^<?([^>]*)>?$') or addr local cap, _,domain = string.match(addr, '^([^%+][^%+]*)(%+[^@]*)@(.*)$') if cap then addr = string.format('%s@%s', cap, domain) |