diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-04 21:11:47 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-04 21:12:55 +0000 |
commit | 2b6580afae0c0449fa536b62c8fbad4408337a3f (patch) | |
tree | 161b39df148e553e67e12303440f95c43a0114a5 /t | |
parent | b8c41362f2a5c8fcc6b1846a79c72bfa77565297 (diff) | |
download | public-inbox-2b6580afae0c0449fa536b62c8fbad4408337a3f.tar.gz |
This allows us to emulate the display of thread-aware MUAs when multiple messages share the same Message-ID. This also is a place where "public-inbox-index --reindex" is useful to fix existing messages and no schema version bump is necessary.
Diffstat (limited to 't')
-rw-r--r-- | t/psgi_v2.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t index aa3279cc..bdf23deb 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -182,6 +182,9 @@ test_psgi(sub { $www->call(@_) }, sub { $res = $cb->(GET('/v2test/reuse@mid/T/')); $raw = $res->content; like($raw, qr/\b4\+ messages\b/, 'thread overview shown with /T/'); + my @over = ($raw =~ m/^\d{4}-\d+-\d+\s+\d+:\d+ (.+)$/gm); + is_deeply(\@over, [ '<a', '` <a', '` <a', '` <a' ], + 'duplicate messages share the same root'); $res = $cb->(GET('/v2test/reuse@mid/t/')); $raw = $res->content; |