Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

share|improve this question
add comment

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer
add comment

What email client/OS are you using?

See if you can import them as per Patches advice. If that does not work, you may end up having to do it manually.

In that case, rename one of the files and giving it an extension of .EML, then open the file. Your default email client should run and open the file, displaying the email message. Once you’ve confirmed that it works, you should be able to drag-and-drop the .EML file into your email client and view it as normal. Then you can iterate through the folders, renaming the files to give them the extension, selecting them all, and dropping them into the client. Then you can sort them, or sort them as you drop them in.

Of course you will want to help reduce the amount of manual work, but for example, using a batch renaming tool (I like Cylog’s WildRenname). Also, you could reduce the amount of manual work by using a macro tool to automate repetitive actions like key presses or mouse clicks.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.