File: default.in

package info (click to toggle)
inn2 2.2.2.2000.01.31-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,424 kB
  • ctags: 5,722
  • sloc: ansic: 61,219; perl: 9,939; sh: 5,644; makefile: 1,695; awk: 1,567; yacc: 1,548; lex: 249; tcl: 3
file content (23 lines) | stat: -rwxr-xr-x 563 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!@_PATH_SH@
##  $Revision: 1.10 $
##  Default control-message handler

. @LIBDIR@/innshellvars

##  Set prog to null; that will leave the name of the message in $1
PROG=default
##  Some shells don't pass in $* unless we explicitly pass it in here.
. ${PATHBIN}/parsecontrol "$@"

case ${ACTION} in
mail)
    ${SM} ${ARTICLE} sed -e 's/^~/~~/' \
        | ${MAILCMD} -s "Unknown control message by ${FROM}" ${NEWSMASTER}
    ;;
doit|logit)
    ${SM} ${ARTICLE} | ${WRITELOG} ${LOGFILE} "Unknown control message by ${FROM}" \
	    ${NEWSMASTER} 
    ;;
esac

exit