about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-10 07:04:53 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:55:45 +0000
commitb782d6f9d2e7fb515b589f0343109ac8681e4e14 (patch)
treedaee611798a505f478c8b2386cbaf4e7015f7642 /lib/PublicInbox/Search.pm
parent601658e48f0e28ca178ef5c4d7eed0e50ef42167 (diff)
downloadpublic-inbox-b782d6f9d2e7fb515b589f0343109ac8681e4e14.tar.gz
We'll need to support searching UID ranges for IMAP,
so make sure it's indexed, too.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-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 f2d3b92d..c54cf7b9 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -12,6 +12,7 @@ use constant {
         YYYYMMDD => 1, # Date: header for searching in the WWW UI
         DT => 2, # Date: YYYYMMDDHHMMSS
         BYTES => 3, # IMAP RFC822.SIZE
+        UID => 4, # IMAP UID == NNTP article number == Xapian docid
         # TODO
         # REPLYCNT => 4, # IMAP ANSWERED
 };