The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

MIME decoder for Windows – Super User

Posted by jpluimers on 2026/04/17

More than 10 years ago, I needed a MIME decode for Windows as I was developing some software which implemented S/MIME could sign automatically generated emails and verify incoming ones.

I wrote more about the latter part in Some notes on OpenSSL, S/MIME, email, various RFC standards and their relations.

Now finally the post about what I wanted to schedule for posting back then as well: my question looking for a [Wayback/Archive] MIME decoder for Windows – Super User:

Q

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.

A

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

A

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

A

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!

A

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/

Note that MIME files themselves are usually only 7-bit ASCII I did not need the MsgTxt tool (which is aimed at .msg files produced by Output and Outlook Express) mentioned in the second answer.

Since I found UUDeview earlier than mpack, otherwise I would have used that.

Nowadays I would use ripMIME on WSL2.

Links from the above Super User entry:

I need to thank [Wayback/Archive] Brian and [Wayback/Archive] Sean Summers as well.

--jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.