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. --- xt/imapd-mbsync-oimap.t | 2 +- xt/imapd-validate.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xt') diff --git a/xt/imapd-mbsync-oimap.t b/xt/imapd-mbsync-oimap.t index b2cb8737..fdaa22aa 100644 --- a/xt/imapd-mbsync-oimap.t +++ b/xt/imapd-mbsync-oimap.t @@ -14,7 +14,7 @@ plan skip_all => "bad characters in $inboxdir" if $inboxdir =~ m![^\w\.\-/]!; my ($tmpdir, $for_destroy) = tmpdir(); my $cfg = "$tmpdir/cfg"; my $newsgroup = 'inbox.test'; -my $mailbox = "$newsgroup.1-50000"; +my $mailbox = "$newsgroup.0"; { open my $fh, '>', $cfg or BAIL_OUT "open: $!"; print $fh <(); - $mailbox = "$newsgroup.1-50000"; + $mailbox = "$newsgroup.0"; } my %opts = (imap => \%OPT, 'imap+compress' => { %OPT, Compress => 1 }); -- cgit v1.2.3-24-ge0c7