We aren't pleased with our current shared hosting account and we will change our hosting company to AWS (if this matter). The main problem which I see now is that we have two email accounts (let's say a1@example.com and a2@example.com) which have a lot of messages on the old IMAP server.
How can we save the messages from there? Ideally how can we have the messages on the new server? (There is an \email folder in \public_html but I don't know how to use it).
Yes, I read this question but the answer imply a manual download of each message which isn't suitable in our case due of the number of messages.
Edit:
Old Host> Linux cloud shared hosting + cPanel (we use there RoudCube/Horde/Squiremail)
New Host> AWS Linux hosting
We are ok with any webmail interface (prefered RoundCube). We try to avoid a local client (Outlook/Thunderbird etc.) because we want to have the emails accessible from everywhere.