download/export emails from webmail

I'm just switching my hosts and I want to move the emails from my accounts too. In order to have my current emails on the new host I want to download/export them and to import at the other host. In order to do this I use one of the webmail (squirrelmail, roundcube, horde) clients available on my current host.

The problem is that except for roundcube, I don't see any download/export option available. And in roundcube I can only select one email at a time and download it as eml.

My question is how do I export/download all the emails from one account and import them at the new host? I know this is possible because I remember doing this some time ago using squirrelmail, but I can't find anything related to this now.

Thank you.


Solution 1:

You'll need to be able to access your email through an IMAP connection in order to do this. Unless there is a specific archival download option offered from the webmail clients (and I'm not familiar with any but squirrelmail), that's your only option AFAIK. If the provider only offers POP, then at least you can archive your messages, but you won't be able to import them to the new server unless it supports IMAP.

Find out the connection settings from your provider and set up Thunderbird or the client of your choice. (I do this in Apple Mail routinely.) With IMAP, just copy the messages from the folder on your server to a local one on the client, then reconfigure the client for the new server and then copy them back.

With POP it's a little weirder since that protocol is only one-way. You may need to do some tweaking on the client to get it to download all of your old messages, but once you do you'll at least have a local archive.