diff options
author | Eric Wong <e@80x24.org> | 2019-01-29 07:44:28 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-29 20:53:46 +0000 |
commit | b8eb1f39dc9aea6ce84373c50c47c6fc4ac8c503 (patch) | |
tree | 518b8899596471e9e038a8219236f23d70accfb6 /t/mid.t | |
parent | 54be6d7a117a300e46601537b4392c0174444966 (diff) | |
download | public-inbox-b8eb1f39dc9aea6ce84373c50c47c6fc4ac8c503.tar.gz |
Looking at git@vger history, several emails had broken References/In-Reply-To pointing to <y>, <n> and email addresses as Message-IDs in References and In-Reply-To headers. This was causing too many unrelated messages to be linked together in the same thread.
Diffstat (limited to 't/mid.t')
-rw-r--r-- | t/mid.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -36,6 +36,10 @@ is(mid_escape('foo%!@(bar)'), 'foo%25!@(bar)'); $mime->header_set('Message-ID', "<hello\tworld>"); is_deeply(mids($mime->header_obj), ['helloworld'], 'drop \t in Message-ID'); + + $mime->header_set('To', 'u@example.com'); + $mime->header_set('References', '<hello> <world> <n> <u@example.com>'); + is_deeply(references($mime->header_obj), [qw(hello world)]); } done_testing(); |