]> Sergey Matveev's repositories - public-inbox.git/commitdiff
search: reinstate "uid:" internal search prefix
authorEric Wong <e@80x24.org>
Sat, 5 Dec 2020 22:22:46 +0000 (22:22 +0000)
committerEric Wong <e@80x24.org>
Wed, 9 Dec 2020 09:20:46 +0000 (09:20 +0000)
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

index 7785d48317ac9c9038d9e4ce33a3443b85179a31..803914b02f596d45b6d03087180b4afb14f3f9b3 100644 (file)
@@ -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);