bc21cc81de5a9f4ea74a9c0a05c529b42da7544a
[mmh] / rnmail
1 #! /bin/sh
2
3 export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myse
4 lf to sh."; sh $0; kill $$)
5
6 cat=/bin/cat
7 echo=/bin/echo
8 test=/bin/test
9 defeditor=prompter
10
11 draftfile=`mhpath +`/rndraft
12 dotdir=${DOTDIR-${HOME-$LOGDIR}}
13
14 $cat $1 > $draftfile
15 if $test -f $dotdir/.signature; then
16         $echo "--" >> $draftfile
17         $cat $dotdir/.signature >> $draftfile
18 fi
19 exec comp -use -editor ${VISUAL-${EDITOR-$defeditor}} -file $draftfile