From d67fff9abf168c7517311bdd8987ce174a60f2c4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 10 Jun 2020 07:04:42 +0000 Subject: 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. --- t/imapd.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/imapd.t b/t/imapd.t index 5d9a7d11..45ee401a 100644 --- a/t/imapd.t +++ b/t/imapd.t @@ -17,7 +17,7 @@ if ($can_compress) { # hope this gets fixed upstream, soon } require_ok 'PublicInbox::IMAP'; -my $first_range = '1-'.PublicInbox::IMAP::UID_BLOCK(); +my $first_range = '0'; my $level = '-Lbasic'; SKIP: { -- cgit v1.2.3-24-ge0c7