From daeb042141ce15a6f8b46da9d600ab4b417c93a1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Sep 2015 08:56:54 +0000 Subject: extmsg: fall back to partial Message-ID matching In case a URL gets truncated (as is common with long URLs), we can rely on Xapian for partial matches and bring the user to their destination. --- lib/PublicInbox/WWW.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/WWW.pm') diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 2718854c..8f155063 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -79,6 +79,7 @@ sub r404 { my ($ctx) = @_; if ($ctx && $ctx->{mid}) { require PublicInbox::ExtMsg; + searcher($ctx); return PublicInbox::ExtMsg::ext_msg($ctx); } r(404, 'Not Found'); -- cgit v1.2.3-24-ge0c7