aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-12 14:36:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-12 14:36:57 +0100
commita4f1a73b13a7023fcc1019806f350c58a509d5d7 (patch)
treeb9662e5e1b5a426fb73ed58d0a8e8a0d6622c1dd /rules
parent36e8aaf4c8221a4760a72e3b86e7edee7a8595eb (diff)
downloadrspamd-a4f1a73b13a7023fcc1019806f350c58a509d5d7.tar.gz
rspamd-a4f1a73b13a7023fcc1019806f350c58a509d5d7.zip
[Minor] Fix normalization in FORWARDING rule
Diffstat (limited to 'rules')
-rw-r--r--rules/forwarding.lua2
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)