From fc62e40e4e3d00a00377ba26aeca010880158caa Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Fri, 16 Feb 2018 02:59:11 +0000 Subject: search: stop assuming Message-ID is unique In general, they are, but there's no way for or general purpose mail server to enforce that. This is a step in allowing us to handle more corner cases which existing lists throw at us. --- lib/PublicInbox/ExtMsg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/ExtMsg.pm') diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm index 4e31ef0f..90d68db8 100644 --- a/lib/PublicInbox/ExtMsg.pm +++ b/lib/PublicInbox/ExtMsg.pm @@ -46,7 +46,7 @@ sub ext_msg { } # try to find the URL with Xapian to avoid forking - my $doc_id = eval { $s->find_unique_doc_id('XMID' . $mid) }; + my $doc_id = eval { $s->find_first_doc_id('XMID' . $mid) }; if ($@) { # xapian not configured properly for this repo push @nox, $other; -- cgit v1.2.3-24-ge0c7