Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a (preferably command-line) MIME decoder available for Windows (like ripMIME for *nix)?

Someone sent me a MIME encoded message (this one with multiple MIME parts) that Google mail nor Outlook can decode.

PS: I don't mean a base64 decoder like MimeDeEnCode by Werner Rumpeltesz (unlike the name it only decodes single base64 files, not single or multi-part MIME messages having MIME headers)

There are plenty other commandline base64 encoders I could use for that (and split the MIME file by hand into multiple base64 files first).

A good command-line base64 decoder is base64 by John Walker.

share|improve this question
    
MIME-encoded? As in multipart messages? Or did you mean uuencoded or quoted printable? – Ignacio Vazquez-Abrams Apr 13 '10 at 16:54

I have had success using munpack on Linux systems. This will go through an email message saved as a text file and extract embedded images into separate files that can then be renamed as desired.

ftp://ftp.andrew.cmu.edu/pub/mpack/

http://sourceforge.net/projects/mpack-win/

share|improve this answer
up vote 3 down vote accepted

Ignacio Vazquez-Abrams got me in the right direction.

Searching for winzip+mime, I found their knowledge base article, which had a link to UUDeview by Frank Pilhofer.

UUDeview is a tool for decoding all sorts of encoding, including MIME (and multi-part MIME too).
Even better: UUDeview 0.5.20 for Windows (Console) contains command-line Win32 executables for decoding and encoding.

This is the command I executed to extract all attachments from the MIME file:

uudeview -i inputfile.mime

share|improve this answer

I seem to recall that WinZip of all things can read and extract parts from a multipart message saved on disk.

share|improve this answer
    
WinZIP is not command-line, and I think it doesn't do multi-part MIME. But: your answer put me on the right track (see my own answer). +1 for getting me there. – Jeroen Wiert Pluimers Apr 13 '10 at 17:10

UUDeview didn't work for me, as there is no apparent support of the unicode .msg files my Outlook generates.

I did manage to find MsgText from the Enter AG guys, and it works almost exactly like ripMIME's defaults!

share|improve this answer

After alot of trial and error I just managed to reconstruct the pdf that was mailed to me by our Ricoh Copier/scanner, split into 5 multipart mime encode emails (part 1/5 > part5/5).

Here's what I did:

  1. saved all the messages as seperate .eml files (I did this in mozilla thunderbird)
  2. loaded these .eml files in UUDeview and decoded them into a txt file
  3. used munpack to get the original attachment from the txt file. (in a dos prompt: "munpack.exe 001.txt")

Maybe this will help someone else too

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .