diff options
author | Eric Wong <e@80x24.org> | 2020-09-28 05:15:19 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-26 19:36:03 +0000 |
commit | 59cc88bb5bc5ce3e63133d0b9d04c55c1959e6b4 (patch) | |
tree | 786739212dd3c526228fca3220c3c401c70eeee0 | |
parent | 4ccff6f9122da89c18ae3f38a130a06de5434826 (diff) | |
download | public-inbox-59cc88bb5bc5ce3e63133d0b9d04c55c1959e6b4.tar.gz |
We don't want a List-Id value being confused with a Xapian term prefix, here. Followup-to: 8b06cda3a3af3f0e ("mda: match List-Id insensitively") (cherry picked from commit 447d049b70c6723a0de8e28aa7db1a4130394c4b)
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index eb620f44..c36fc6c7 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -338,7 +338,7 @@ sub index_ids ($$$$) { $doc->add_boolean_term('Q' . $_) for @$mids; for my $l ($hdr->header_raw('List-Id')) { $l =~ /<([^>]+)>/ or next; - my $lid = $1; + my $lid = lc $1; $doc->add_boolean_term('G' . $lid); index_text($self, $lid, 1, 'XL'); # probabilistic } |