Useful email filters

Two scripts I use to view M$ documents using Pine (or any other mail viewer). They are a bit rough and ready, and may not always work

msdoc

View M$ Word documents
tempfile="/tmp/tdoc$$.ps"
FHTML =  location of wvHtml on your system 
HTMLPS=  location of html2ps on your system 
GV=      location of your postscript viewer. eg gv or ghostview
$FHTML $1 2>/dev/null | $HTMLPS > $tempfile
$GV $tempfile
/usr/bin/rm $tempfile
exit

msxls

View M$ Excel documents. You may not have xlhtml, but it can be downloaded...or if you're in the department you could link to my copy.
tempfile="/tmp/tdoc$$.ps"
FHTML =  location of xlhtml on your system
HTMLPS=  location of html2ps on your system
GV=      location of your postscript viewer. eg gv or ghostview
$FHTML $1 2>/dev/null | $HTMLPS > $tempfile
$GV $tempfile
/usr/bin/rm $tempfile
exit
Steve George | steve.george@canterbury.ac.nz
Last Updated : Wed Nov 8 15:44:06 NZDT 2006