From 82ffb3c183ac20e00effa8a5a7b664eda59672de Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Nov 2020 23:37:42 +0000 Subject: 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/ --- t/extsearch.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't') 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: { -- cgit v1.2.3-24-ge0c7