about summary refs log tree commit homepage
path: root/t/mid.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-29 07:44:28 +0000
committerEric Wong <e@80x24.org>2019-01-29 20:53:46 +0000
commitb8eb1f39dc9aea6ce84373c50c47c6fc4ac8c503 (patch)
tree518b8899596471e9e038a8219236f23d70accfb6 /t/mid.t
parent54be6d7a117a300e46601537b4392c0174444966 (diff)
downloadpublic-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.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/mid.t b/t/mid.t
index 8c307c82..69a8a708 100644
--- a/t/mid.t
+++ b/t/mid.t
@@ -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();