Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / miscellany / scripts / make_mailrc.sh
1 #!/bin/sh
2 #
3 MHRC=$HOME/.mhrc
4 MAILRC=$HOME/.mailrc
5
6 if [ ! -f $MHRC ]
7     then
8         echo You do not have a .mhrc file.  $MAILRC not clobbered.
9         exit 1
10     else
11         echo Creating $MAILRC from $MHRC ...
12     fi
13
14 echo "set ask append dot metoo hold autoprint crt=24
15 # This file automatically generated from $MHRC
16 #       Created  by  ${USER}@`hostname`  `date`
17 " > $MAILRC
18
19 sed     -e 's/^;/# /'                           \
20         -e 's/[<>,:;]//g'                       \
21         -e 's/^[a-zA-Z]/alias   &/'             \
22             < $MHRC >> $MAILRC