posted on Tuesday, November 29, 2005 10:06 AM by Jonathan Hodgson

Extracting base64 attachments from forwarded emails

I had a couple of email messages forwarded to me which contained Powerpoint presentations, unfortunately Hotmail stripped these into separate text attachment messages.

This meant the original message and it's attachments were in the same file, with the .ppt encoded as base64 block.

So a little search later I found this handy pop3 mail tool, getmail.

It was then a matter of running,

getmail -forceextract msg.txt

to separate the presentation out.

Comments