Forwarded emails are unfortunately sometimes transmitted by Outlook as .eml files, which are unusable for normal users. In particular, extracting attachments from .eml files is a challenge.

What software can extract all attachments contained in a .eml file?


  • Free
  • Open source
  • Runs on Linux
  • Output a file per attachment, with the intended name.
  • No need to compile (binaries available, or script)
  • Reasonably fast to install, I would rather avoid having to set up a particular email client program just to process this .eml file.
  • I don't know the exact features of LookOut (Addon) for Thunderbird, but it gives in provides very good interoperability with the proprietary formats. You may try if this fixes it. – sebix Oct 27 '14 at 7:19

From the definition of munpack:

Unpack messages in MIME or split-uuencode format.
Munpack are utilities for encoding and decoding (respectively) binary files in MIME (Multipurpose Internet Mail Extensions) format mail messages.

To Install:

sudo apt-get install mpack

To extract the eml contents

munpack 1.eml
  • 1
    +1: This is awesome! – copper.hat Dec 25 '19 at 4:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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