]> Sergey Matveev's repositories - public-inbox.git/commit
imap: omit $UID_END from mailbox name, use index
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:42 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commitd67fff9abf168c7517311bdd8987ce174a60f2c4
tree462f73d4c2f6046988c5c60967eb1d8963d4c5ba
parent4d1a787a0a3c27a11c266b2f76293d09b858b38e
imap: omit $UID_END from mailbox name, use index

Having two large numbers separated by a dash can make visual
comparisons difficult when numbers are in the 3,000,000 range
for LKML.  So avoid the $UID_END value, since it can be
calculated from $UID_MIN.  And we can avoid large values of
$UID_MIN, too, by instead storing the block index and just
multiplying it by 50000 (and adding 1) on the server side.

Of course, LKML still goes up to 72, at the moment.
lib/PublicInbox/IMAP.pm
lib/PublicInbox/IMAPD.pm
t/imapd.t
xt/imapd-mbsync-oimap.t
xt/imapd-validate.t