Useful if you've just received an email that says it has attachments but you can't get them out (as I just did!). View the raw source of the email, copy the Base64 encoded text, drop in to a file, and run through this. The output will be the binary (or ascii) attachment.

perl -MMIME::Base64 -ne 'print decode_base64($_)' < file.txt > out
Proudly sponsored by
CodeSponsor.io- get paid by adding one line of code to your README

Want more?

Posts, web development learnings & insights, exclusive workshop and training discounts and more, direct to your inbox.

I won't send you any spam, and you can unsubscribe at any time. Powered by ConvertKit