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.

LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot