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 hundreds of EML files which are single emails with attachments.

I would like to use scripting to get the attachments, that's why I'm looking for a way to extract any attachment from a single EML file in a command line.

I could parse each file to look for the attachment and use a base64 decoder on that, but I hope that someone has already written this.

Any recommendation?

share|improve this question
    
Tool requests are considered off-topic: meta.superuser.com/questions/5845/are-tool-requests-on-topic –  Ƭᴇcʜιᴇ007 Aug 7 '13 at 16:28
    

2 Answers 2

up vote 2 down vote accepted

You can try use:

  1. mpack(Windows version of mpack/munpack using the version 1.6 source obtained from http://ftp.andrew.cmu.edu/pub/mpack/).

  2. B64Dec tool(command line supports).

share|improve this answer

Bit of a plug, https://bitbucket.org/malleblas/email-extractor It take input of .eml files in a directory, then it will iterate over these and output them to a destination folder.

It runs on Java.

share|improve this answer

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.