From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2FE471F4B4; Sat, 5 Dec 2020 22:26:54 +0000 (UTC) Date: Sat, 5 Dec 2020 22:26:54 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/2] search: reinstate "uid:" internal search prefix Message-ID: <20201205222654.GA23505@dcvr> References: <20201205101138.11973-1-e@80x24.org> <20201205111045.GA27365@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201205111045.GA27365@dcvr> List-Id: User-supplied queries (via PublicInbox::IMAPsearchqp) may restrict messages to certain UID ranges in addition to the limits we impose ourselves for mailbox slices. So we'll continue to ask Xapian::QueryParser to "uid:" numeric ranges. Fixes: 4b551c884a648b45 ("imap: support isearch and reduce Xapian queries") --- lib/PublicInbox/Search.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 7785d483..803914b0 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -396,6 +396,7 @@ sub qparse_new ($) { # for IMAP, undocumented for WWW and may be split off go away $cb->($qp, $NVRP->new(BYTES, 'bytes:')); $cb->($qp, $NVRP->new(TS, 'ts:')); + $cb->($qp, $NVRP->new(UID, 'uid:')); while (my ($name, $prefix) = each %bool_pfx_external) { $qp->add_boolean_prefix($name, $_) foreach split(/ /, $prefix);