#!/bin/csh -fb
# (The "-fb" might need to be changed to "-f" on some systems)
#
# Provide VERY minimal support for mail generated by Sun's Openwindows mailtool.
# Basically, this lets you see the text part, but not much else...

if (! $?METAMAIL_TMPDIR) then
    set METAMAIL_TMPDIR=/tmp
endif

set TMPFILE=${METAMAIL_TMPDIR}/suntomime.$$
echo "Content-type: multipart/mixed; boundary=--------" > $TMPFILE
echo "" >> $TMPFILE
sed -e 's/X-Sun-Data-Type:/Content-type:/' >> $TMPFILE < $1
echo "------------" >> $TMPFILE
#metamail -d -z $TMPFILE
metamail -z $TMPFILE
