When renaming a mailbox's subfolders, read the list of them first into memory to avoid the possibility of readdir() skipping some of the mailboxes.
When renaming a mailbox's subfolders, read the list of them first into
memory to avoid the possibility of readdir() skipping some of the mailboxes.

--HG--
branch : HEAD

jwm/dovecot-notmuch,dscho/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,dscho/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch