extracting attachments from unix mail files

i log some of the messages passing by Postfix-based relay using always_bcc = bcc@somewhere.com in main.cf.

Sometimes – to track spam or problems – i need to check content of the attachments.

this comes handy

munpack -f 1483066mailfile.server

if content is embedded inline i have to edit the file and replace or just add the 2nd part if it’s not present:

Content-Disposition: inline


Content-Disposition: attachment;

Leave a Reply

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)