]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/IMAPD.pm
view: make /$INBOX/$MSGID/ permalink async
[public-inbox.git] / lib / PublicInbox / IMAPD.pm
index e4dc90e8d0e17b58a74dc5eed573ebb7863c52a7..09bedf5ca9b42c7b74129a94bab7b50b5df0acc3 100644 (file)
@@ -44,7 +44,7 @@ sub imapd_refresh_ibx { # pi_config->each_inbox cb
        # this case is a 32-bit representation of the creation
        # date/time of the mailbox"
        defined($ibx->{uidvalidity} = $mm->created_at) or return;
-       PublicInbox::IMAP::ensure_ranges_exist($imapd, $ibx, $mm->max // 0);
+       PublicInbox::IMAP::ensure_slices_exist($imapd, $ibx, $mm->max // 0);
 
        # preload to avoid fragmentation:
        $ibx->description;
@@ -74,11 +74,6 @@ sub imapd_refresh_finalize {
                        my $u = $_; # capitalize "INBOX" for user-familiarity
                        $u =~ s/\Ainbox(\.|\z)/INBOX$1/i;
                        qq[* LIST (\\Has${no}Children) "." $u\r\n]
-               } sort {
-                       # shortest names first, alphabetically if lengths match
-                       length($a) == length($b) ?
-                               ($a cmp $b) :
-                               (length($a) <=> length($b))
                } keys %$mailboxes
        ];
        $imapd->{pi_config} = $pi_config;