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: #!/bin/bash LOCATION=/tmp/winmail_$$.dat mkdir $LOCATION /usr/bin/tnef -C $LOCATION --save-body -f $1 nautilus $LOCATION The interesting part of this script for me is the $$ - 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
eng mgr / leader / full stack / java / agile / tdd / security / aws / go