Way to import email from the raw email files

backupemail

I have a client who recently switched hosts. When they switched hosts they didn't backup their email and updated their configuration settings so they lost everything. However, I was able to log in to their old hosting control panel and download their mail folder. I am wondering if there is a way to extract their emails and/or contacts from the files.

I'm not sure what type of files they are, there is no extension, but the folder directory is structured like this:

  • mail/
    • .Drafts/
    • .Sent/
    • .Trash/
    • cur/
    • new/
    • theirdomain.com/
    • tmp/
    • .theiremail@theirdomain.com
    • maildir

Inside of the theirdomain.com folder, there is a folder for each account and inside of that is a folder called "cur" which has a whole bunch of files with names like 1292945327.H169813P25958.uscentral21.myserverhosts.com,S=10117/2,S and if I preview those files I can see the actual email messages inside of them but I have no idea how to get that information from those files to an email client.

Anyone know of a way to work with these files?

Thanks in advance for any insight you can share!

Best Answer

Those folders contain e-mail stored in Maildir format. Wikipedia has a list of e-mail readers that can directly read e-mail in that format, which include the popular KMail and Evolution mail clients.

Most open-source mail server software also supports that format so it should be easy for your current e-mail system to import them. The folks over at Server Fault can help you with that if you give them specifics.

Related Question