[clug] Ever received a .dat file from an <other OS> user?

Andrew Janke a.janke at gmail.com
Thu Jan 14 22:47:07 MST 2010

Or worse multiple .dat files split across a few messages?

And then went digging all over the web trying to find something that
will decode something looking like this:

MIME-Version: 1.0
Content-Type: multipart/mixed;

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Scan Date: 15.01.2010 14:55:50 (+0800)
Content-Type: application/pdf; name="20100115145550430.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;


Well I just did (and have had this issue in the past but never found a
solution as base64 and uudecode don't do what you'd think) then I
found mpack/munpack..

   $ sudo apt-get install mpack

   $ cat part\ ?_?.dat | munpack
   munpack: reading from standard input
   20100115145550430.pdf (application/pdf)


(Brought to you by the "things I didn't know but I'm sure others all
know this already" series of emails as I don't have a linux blog.)

Andrew Janke
(a.janke at gmail.com || http://a.janke.googlepages.com/)
Canberra->Australia    +61 (402) 700 883

More information about the linux mailing list