Extract email attachments from winmail.dat files

tnef is a program for unpacking MIME attachments of type "application/ms-tnef". This is typically a Microsoft only attachment, named winmail.dat.
This program allows one to unpack the attachments which were encapsulated into the TNEF attachment, thus alleviating the need to use Microsoft Outlook to view the attachment.

Install instructions

sudo aptitude install tnef
or click here.


Save the winmail.dat file from the email and execute
tnef --list winmail.dat  # list containing files
tnef winmail.dat # unpack containing attachments