diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-12 14:36:57 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-12 14:36:57 +0100 |
commit | a4f1a73b13a7023fcc1019806f350c58a509d5d7 (patch) | |
tree | b9662e5e1b5a426fb73ed58d0a8e8a0d6622c1dd /rules/forwarding.lua | |
parent | 36e8aaf4c8221a4760a72e3b86e7edee7a8595eb (diff) | |
download | rspamd-a4f1a73b13a7023fcc1019806f350c58a509d5d7.tar.gz rspamd-a4f1a73b13a7023fcc1019806f350c58a509d5d7.zip |
[Minor] Fix normalization in FORWARDING rule
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) |