diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-15 00:25:53 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-15 01:08:15 +0000 |
commit | f46019039da6ac1596a4aef64b7bf394c743c1b1 (patch) | |
tree | 772f755511937a7b8fb50d80689e58484282abff /lib/PublicInbox/Address.pm | |
parent | 9b7617b25f58a731bc1ffc6087faed46301e2c26 (diff) | |
download | public-inbox-f46019039da6ac1596a4aef64b7bf394c743c1b1.tar.gz |
There's a lot of weird characters which show up in LKML archives which we did not support before. Furthermore, allow spaces before the '>' in the From: line as at least some non-spam poster used it.
Diffstat (limited to 'lib/PublicInbox/Address.pm')
-rw-r--r-- | lib/PublicInbox/Address.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Address.pm b/lib/PublicInbox/Address.pm index f334adea..548f417c 100644 --- a/lib/PublicInbox/Address.pm +++ b/lib/PublicInbox/Address.pm @@ -8,7 +8,8 @@ use warnings; # just enough to make thing sanely displayable and pass to git sub emails { - ($_[0] =~ /([\w\.\+=\-]+\@[\w\.\-]+)>?\s*(?:\(.*?\))?(?:,\s*|\z)/g) + ($_[0] =~ /([\w\.\+=\?"\(\)\-!#\$%&'\*\/\^\`\|\{\}~]+\@[\w\.\-\(\)]+) + (?:\s[^>]*)?>?\s*(?:\(.*?\))?(?:,\s*|\z)/gx) } sub names { |