if anyone needs to move mail storage from one IMAP server to another (eg; Purelymail) I can highly recommend https://imapsync.lamiral.info/
Not for it's website graphic design, but as a CLI tool that works perfectly. "source server -->> target server" and let it run