Home > bash > Extract e-mail attachments

Extract e-mail attachments


You have a file that contains not only the e-mail text but the attachments too in encoded form. How to extract those attachments easily?


One way is to use mpack:

$ sudo apt-get install mpack
$ munpack email.eml

Or, you can also use uudeview:

$ sudo apt-get install uudeview
$ uudeview email.eml
Categories: bash Tags: , , , ,
  1. Paulus
    April 29, 2011 at 04:22

    Thanks, that was very useful and worked like a charm.

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: