From 7e34a2145230eb97347ee8f1e63e79eb988a1946 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Dec 2020 22:22:46 +0000 Subject: [PATCH] search: reinstate "uid:" internal search prefix 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); -- 2.44.0