Annotation of 43BSDReno/contrib/mh/miscellany/rcvtrip/ontrip.sh, revision 1.1.1.1

1.1       root        1: : run this script through /bin/sh
                      2: 
                      3: db=rcvtrip draftf=drafts field=advised form=tripcomps pgm=bin/rcvtrip
                      4: 
                      5: if [ -x $HOME/$pgm ];
                      6: then
                      7:     echo "This is ontrip, for MH.6"
                      8: else
                      9:     echo "Script $pgm is not present in your HOME directory" 1>&2
                     10:     exit 1
                     11: fi
                     12: 
                     13: file=`mhpath +`/$form
                     14: 
                     15: if [ -f $file ];
                     16: then
                     17:     if [ "x$EDITOR" = x ];
                     18:     then
                     19:        echo "Please edit the reply template:"
                     20:        echo "You are now in the editor 'ex'"
                     21:        ex $file        
                     22:     else
                     23:        $EDITOR $file
                     24:     fi
                     25: else
                     26:     echo "Reply template $form is not present in your MH directory" 1>&2
                     27:     exit 1
                     28: fi
                     29: 
                     30: folder=`mhpath +$db`
                     31: if [ -d $folder ];
                     32: then
                     33:     echo "Resetting database +$db"
                     34:     rmm +$db all > /dev/null 1>&2
                     35: else
                     36:     folder +$db
                     37: fi
                     38: touch $folder/1
                     39: 
                     40: echo "Now add the line
                     41: 
                     42:        addr $USER pipe R \"$pgm \\\"\$(reply-to)\\\"\"
                     43: 
                     44: to the end of the .maildelivery file in your HOME directory"
                     45: 
                     46: exit 0

unix.superglobalmegacorp.com

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