{"id":2698,"date":"2016-12-30T08:21:49","date_gmt":"2016-12-30T07:21:49","guid":{"rendered":"https:\/\/kudzia.eu\/b\/?p=2698"},"modified":"2016-12-30T08:21:49","modified_gmt":"2016-12-30T07:21:49","slug":"extracting-attachments-from-unix-mail-files","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2016\/12\/extracting-attachments-from-unix-mail-files\/","title":{"rendered":"extracting attachments from unix mail files"},"content":{"rendered":"<p>i log some of the messages passing by Postfix-based relay using <i>always_bcc = bcc@somewhere.com<\/i> in <i>main.cf<\/i>. <\/p>\n<p>Sometimes &#8211; to track spam or problems &#8211; i need to check content of the attachments. <\/p>\n<p>this comes handy<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmunpack -f 1483066mailfile.server\r\n<\/pre>\n<p>if content is embedded inline i have to edit the file and replace or just add the 2nd part if it&#8217;s not present:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nContent-Disposition: inline\r\n<\/pre>\n<p>with<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nContent-Disposition: attachment;\r\n   filename=&quot;uniquename&quot;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>i log some of the messages passing by Postfix-based relay using always_bcc = bcc@somewhere.com in main.cf. Sometimes &#8211; to track spam or problems &#8211; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,51],"tags":[],"class_list":["post-2698","post","type-post","status-publish","format-standard","hentry","category-tech","category-unimportant"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=2698"}],"version-history":[{"count":1,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2698\/revisions"}],"predecessor-version":[{"id":2699,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2698\/revisions\/2699"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=2698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=2698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=2698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}