File:  [CSRG BSD Unix] / 43BSD / contrib / mh / miscellany / scripts / make_mailrc.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:54 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

#!/bin/sh
#
MHRC=$HOME/.mhrc
MAILRC=$HOME/.mailrc

if [ ! -f $MHRC ]
    then
	echo You do not have a .mhrc file.  $MAILRC not clobbered.
	exit 1
    else
	echo Creating $MAILRC from $MHRC ...
    fi

echo "set ask append dot metoo hold autoprint crt=24
# This file automatically generated from $MHRC
#	Created  by  ${USER}@`hostname`  `date`
" > $MAILRC

sed	-e 's/^;/# /'				\
	-e 's/[<>,:;]//g'			\
	-e 's/^[a-zA-Z]/alias	&/'		\
	    < $MHRC >> $MAILRC

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.