about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-05 22:22:46 +0000
committerEric Wong <e@80x24.org>2020-12-09 09:20:46 +0000
commit7e34a2145230eb97347ee8f1e63e79eb988a1946 (patch)
tree94bb6aa87787b5da236f44b2d7dbe0f45d409d82
parent77b96aee09b2711e645ea2b04ab912b5e3285c73 (diff)
downloadpublic-inbox-7e34a2145230eb97347ee8f1e63e79eb988a1946.tar.gz
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")
-rw-r--r--lib/PublicInbox/Search.pm1
1 files changed, 1 insertions, 0 deletions
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);