head 1.6; access; symbols; locks; strict; comment @# @; 1.6 date 99.04.28.11.08.50; author alexis; state Exp; branches; next 1.5; 1.5 date 99.02.20.18.09.23; author alexis; state Exp; branches; next 1.4; 1.4 date 99.01.07.13.18.23; author alexis; state Exp; branches; next 1.3; 1.3 date 98.08.28.17.40.23; author alexis; state Exp; branches; next 1.2; 1.2 date 98.08.28.13.39.21; author alexis; state Exp; branches; next ; desc @SHPP PORT OF mail-sendmail.in 1.1 @ 1.6 log @added gep.sh.shpp dependency and use @ text @#!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: /diskb/home/alexis/dev/supported/ppplc/lib/mail/RCS/mail-sendmail.shpp,v 1.5 1999/02/20 18:09:23 alexis Exp alexis $ ############################################################################### # # 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 @ 1.5 log @removed lockfile generator (not used). @ text @d34 1 a34 1 # $Header: /diskb/home/alexis/dev/supported/ppplc/lib/mail/RCS/mail-sendmail.shpp,v 1.4 1999/01/07 13:18:23 alexis Exp alexis $ d97 1 @ 1.4 log @symbol name changes @ text @d34 1 a34 1 # $Header: mail-sendmail.shpp,v 1.3 1998/08/28 17:40:23 alexis Exp alexis $ a84 5 } gen_lock_file_name() { echo MARKER_LOCK_DIR/$PROGNAME.pid @ 1.3 log @removed version number test @ text @d1 1 a1 1 #!SCRIPTSHELLCMD_MARKER d32 3 a34 2 VERSION="PATCHLEVEL_MARKER" # $Id: mail-sendmail.shpp,v 1.2 1998/08/28 13:39:21 alexis Exp alexis $ d76 1 a76 1 exec SENDMAILCMD_MARKER -q d89 1 a89 1 echo LOCK_DIR_MARKER/$PROGNAME.pid d101 1 a101 2 #shpp include utils.sh @ 1.2 log @*** empty log message *** @ text @d33 1 a33 1 # $Id: mail-sendmail.in,v 1.1 1998/08/07 11:33:43 alexis Exp alexis $ d52 2 a53 7 -V) if expr "$VERSION" : 'P.*R$' > /dev/null; then warning "this is a development version; use 'ident' for version information" exit 1 else echo "$PROGNAME version $VERSION" exit 0 fi ;; d88 1 a88 1 echo LOCKDIR_MARKER/$PROGNAME.pid @