]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix normalization in FORWARDING rule
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Jun 2017 13:36:57 +0000 (14:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Jun 2017 13:36:57 +0000 (14:36 +0100)
rules/forwarding.lua

index 5adb562ef14e8b6a46f7bcc301f23042b198e69c..c5ac81c5278c8837c7db626800d24d7ff0be255a 100644 (file)
@@ -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)