Friday, August 7, 2009

EnScript to convert individual OSX .emlx files into MBOX format so EnCase can parse it.

On a request from a person I consider a friend and whom I have learned a lot from, Pat Lim, I created this EnScript to help parse OSX email messages.

EnCase can parse many different types of emails, but unfortunately emails in the native "mail" application in OSX is not supported. Pat did some research and figured out the structure of the individual email files typically stored in the /[user]/Library/Mail/POP/Inbox folder. Each email is stored with a .emlx extension.

This EnScript will process selected (blue checked) .emlx files. The individual .emlx files will be reformatted and concatenated into one single file and placed in your default export folder for the case. This single file will be in the MBOX format and can then be added into EnCase and parsed. The emails will show up in the records tab if you select the email parse option from the search dialog, or you can simply right-click on the exported MBOX file and choose "view file structure".









Download Here

10 comments:

Dave K Monday, 31 August, 2009  

Hey, this is a great EnScript.... thanks for creating it. It makes parsing Apple Mail much much easier.

Anonymous Tuesday, 06 October, 2009  

Hey Lance, thanks for that fantastic enscript. I'm having an issue with those multipart EMLX files. It seems all that needs to be done is to paste the EMLXPART data into the relevant NEXTPART field in the relevant EMLX file. The problem is that there are around 15000 EMLXPART files to convert. I'm really stumped for resources. I would be grateful is you could you help with an amended enscript?

Thanks in advance,

Jase

Lance Mueller Tuesday, 06 October, 2009  

Jase,

Can you email me an example.

Anonymous Tuesday, 06 October, 2009  

Thanks for the reply lance. Unfortunately, I cannot supply any examples because it's all client data. Nor do I have a mac to create examples with. Hopefully this might help. The emlx filename would take the following convention "filename.partial.emlx". This indicates that it is a multipart emlx. The other multipart files are base64 encoded email attachments. These attachments have the following naming convention "samefilename.[sequenece number starting from 2].emlxpart. They just need to be pasted into the correct area within the emlx file under the NEXTPART header. Not sure how to handle multiple attachements though. Thanks in advance for any assistance.

Jase

Anonymous Saturday, 17 October, 2009  

Lance, this is a very helpful enscript. However I am having problem exporting emails after I view structure and parse emails. It is not able to export the messages along with the body and attachments. When I export message it just shows header and is missing body sometimes. Thank you.
-Tan

Anonymous Saturday, 07 November, 2009  

Awesome! Thanks for creating and sharing. :)

Maritza.

Anonymous Monday, 16 November, 2009  

Hi Lance,
kind regards from Germany.
That is a very fine script and also usefull for my work. At know I have a similar problem on an linux image. There I found the mail-client "kmail" and saw, that all mails were stored the mail direkt on file system. After file signatur-analysis the mails get the "alias-pointer" .eml and can be looked at the "doc" tab. I do not test the script for this case, but I believe, that there is no big difference ... . Is there a posibility to get an updated script?

Arndt

Anonymous Friday, 01 January, 2010  

Hi Lance,

Have you been able to work on adding the ability to reassemble the emlxpart back with its associated emlx file?

Thanks
JC

research help Thursday, 17 June, 2010  

Many institutions limit access to their online information. Making this information available will be an asset to all.

Remon Verkerk Friday, 20 July, 2012  

It took me a few years to put your enscript to use, but the time has come. Thanks Lance, really helpful!

Post a Comment

Computer Forensics, Malware Analysis & Digital Investigations

Random Articles