#!MARKER_SHELL_CMD PATH=/bin:/usr/bin PROGNAME=`basename $0` ############################################################################### # # # MAIL TRANSFER PROGRAM - USES SENDMAIL # # # ############################################################################### ############################################################################### # # Things you should know about this script: # # It is stored under RCS! Keep it that way! If you want a history of # changes made to this script then refer to rlog(1) - don't look here! # ############################################################################### ############################################################################### # # CONFIGURABLE STUFF STARTS HERE # ############################################################################### ############################################################################### # # CONFIGURABLE STUFF ENDS HERE # ############################################################################### FACILITY=mail VERSION="MARKER_PATCHLEVEL" # $Header: /home/ahuxley/dev/arc/ppplc/lib/mail/RCS/mail-sendmail.shpp,v 1.6 1999/04/28 11:08:50 alexis Exp $ ############################################################################### # # MAIN FUNCTION (called from very bottom of script) # ############################################################################### main() { ########################################################################### # # PROCESS OPTIONS # ########################################################################### while [ "X$1" != X ]; do case "$1" in -V) echo "$PROGNAME version $VERSION" exit 0 ;; -d) [ "X$2" = X ] && usage VERBOSE_LEVEL=$2 shift ;; -v) VERBOSE_LEVEL=3 ;; -*) usage ;; *) break ;; esac shift done # No other commandline arguments should be specified [ "X$1" != X ] && usage # Are locks required? No. Sendmail does it's own locking. ########################################################################### # # SEND MAIL # ########################################################################### exec MARKER_SENDMAIL_CMD -q ########################################################################### # # GET MAIL # ########################################################################### # Nothing to do! } usage() { { echo "Usage: $PROGNAME [ -d | -v" echo " $PROGNAME -V" } >&2 exit 1 } #shpp include utils.sh.shpp #shpp include gep.sh.shpp