From a4f1a73b13a7023fcc1019806f350c58a509d5d7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 12 Jun 2017 14:36:57 +0100 Subject: [Minor] Fix normalization in FORWARDING rule --- rules/forwarding.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules') 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) -- cgit v1.2.3