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 /t/address.t | |
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 't/address.t')
-rw-r--r-- | t/address.t | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/address.t b/t/address.t index e35e4f8b..eced5c46 100644 --- a/t/address.t +++ b/t/address.t @@ -9,8 +9,9 @@ is_deeply([qw(e@example.com e@example.org)], [PublicInbox::Address::emails('User <e@example.com>, e@example.org')], 'address extraction works as expected'); -is_deeply([PublicInbox::Address::emails('"ex@example.com" <ex@example.com>')], - [qw(ex@example.com)]); +is_deeply(['user@example.com'], + [PublicInbox::Address::emails('<user@example.com (Comment)>')], + 'comment after domain accepted before >'); my @names = PublicInbox::Address::names( 'User <e@e>, e@e, "John A. Doe" <j@d>, <x@x>'); |