Convert Base64 text to document! (sticky?)

antic

Perch
When DSPAM mistakenly marks an email as spam, and it had contained an attachment, you often end up with something like this:

Code:
(...body of message)

------=_NextPart_000_0048_01C831CE.F20D96E0
Content-Type: application/msword;
	name="Some_Word_Document.doc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="Some_Word_Document.doc"

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAAEAAAAbwEAAAAAAAAA
EAAA9gEAAAEAAAD+////AAAAAG0BAABuAQAAcAE.....
(...large section of code representing the attached document)

The original attachment is converted to base64 text, and unviewable by the application (word, excel, whatever). So here's a great little web page which lets you simply paste your base64 code into a text box, and it spits the converted document back at you as a download!

http://www.motobit.com/util/base64-decoder-encoder.asp

1. Paste the lines of base64 code.
2. Select the option decode the data from a Base64 string.
3. Select the option export to a binary file and type in the filename (e.g. MyDoc.doc).
4. Change character set to UTF-8 (I found this works for Word docs)
5. Finally, press the button Convert the Source Data.
6. Give it a minute, and you will see your document appear as a download! Very nice.

This could come in handy fairly often. Hope they don't mind. :)
 
Or maybe just download the "Original message before spamassassin.txt" and rename it with .eml extension? :)
 
Back
Top