Back in July I blogged about Opening winmail.dat (TNEF) files in Thunderbird (on Ubuntu). Well a colleague at work has 'refined' my script so that rather than it create a folder on your desktop it simply opens Nautilus to display the contents of the attachment.
This is the new version of the script:
Now it's even easier to open and extract files from winmail.dat files!
I found out the reason for the
Technorati Tags: winmail.dat, TNEF, Thunderbird, Ubuntu, Andrew Beacock
This is the new version of the script:
#!/bin/bashThe interesting part of this script for me is the
LOCATION=/tmp/winmail_$$.dat
mkdir $LOCATION
/usr/bin/tnef -C $LOCATION --save-body -f $1
nautilus $LOCATION
$$
- this special script variable is the process ID (PID) of the currently running script, so it makes a temporary file called winmail_<current process id>.dat
. Other than that it's pretty similar to my original script apart from opening Nautilus at the end.Now it's even easier to open and extract files from winmail.dat files!
I found out the reason for the
$$
from here.Technorati Tags: winmail.dat, TNEF, Thunderbird, Ubuntu, Andrew Beacock
Comments
Thanks!
Pete
Thank you very much