about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-11-30 23:37:42 +0000
committerEric Wong <e@80x24.org>2020-12-01 10:20:00 +0000
commit82ffb3c183ac20e00effa8a5a7b664eda59672de (patch)
treeef35f1a41fe3d9110fdac08730006b8bf16b3c83 /t
parentcb75a7aeb9fd530b1816b760c8c7f6cfb428c8e3 (diff)
downloadpublic-inbox-82ffb3c183ac20e00effa8a5a7b664eda59672de.tar.gz
nntp: make ->ALL Xref generation more fuzzy
For ->ALL users, this mitigates the regression introduced
by commit 811b8d3cbaa790f59b7b107140b86248da16499b
("nntp: xref: use ->ALL extindex if available"), since
it's common to cross post messages to some mailing
lists with per-list trailers for unsubscribe information.

We won't bother dealing with Bcc-ed messages since those
are nearly all spam when it comes to public mailing lists.

Fixes: 811b8d3cbaa790f5 ("nntp: xref: use ->ALL extindex if available")
Link: https://public-inbox.org/meta/20201130194201.GA6687@dcvr/
Diffstat (limited to 't')
-rw-r--r--t/extsearch.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/extsearch.t b/t/extsearch.t
index 2a1b05c7..2b8b88ea 100644
--- a/t/extsearch.t
+++ b/t/extsearch.t
@@ -72,7 +72,8 @@ EOF
         ok($pi_cfg->ALL, '->ALL');
         my $ibx = $pi_cfg->{-by_newsgroup}->{'v2.example'};
         my $ret = $pi_cfg->ALL->nntp_xref_for($ibx, $ibx->over->get_art(1));
-        is_deeply($ret, ['v1.example:1'], '->nntp_xref_for');
+        is_deeply($ret, { 'v1.example' => 1, 'v2.example' => 1 },
+                '->nntp_xref_for');
 }
 
 SKIP: {