From: Eric Wong (Contractor, The Linux Foundation) Date: Fri, 16 Feb 2018 00:17:16 +0000 (+0000) Subject: extmsg: fix broken Xapian MID lookup X-Git-Tag: v1.1.0-pre1~236 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=777df7d3f08de47c5b905a6ec8e7271fb2c1df9d extmsg: fix broken Xapian MID lookup This likely has no real world implications, though, as we fall back to Msgmap lookups anyways. Broken since commit 7eeadcb62729b0efbcb53cd9b7b181897c92cf9a ("search: remove unnecessary abstractions and functionality") --- diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm index ab9591f9..4e31ef0f 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('mid', $mid) }; + my $doc_id = eval { $s->find_unique_doc_id('XMID' . $mid) }; if ($@) { # xapian not configured properly for this repo push @nox, $other;