home *** CD-ROM | disk | FTP | other *** search
- 2c2
- < RNAVERS="RNALIB 2.2 [beta-3b]"
- ---
- > RNAVERS="RNALIB 2.2 [beta-1]"
- 315,320d314
- < # You may choose to limit rna activities within certain time limits
- < # for a single host in order to avoid requests being shipped during
- < # daytime, when connection is more expensive.
- < # If you don't care about 'timelimits', leave it blank.
- < TIME_LIMITS=
- < #
- 356,357c350
- < export CREDIT SPLIT MIN_SPLIT MAX_SPLIT DEF_SPLIT MAIL_LIMIT CONFDATA
- < export TIME_LIMITS
- ---
- > export CREDIT SPLIT MIN_SPLIT MAX_SPLIT DEF_SPLIT MAIL_LIMIT
- 371c364
- < chown $LOGNAME $TMPDIR; chgrp mail $TMPDIR
- ---
- > chown rnalib $TMPDIR; chgrp mail $TMPDIR
- 402c395
- < chown $LOGNAME $CONVDIR; chgrp mail $CONVDIR
- ---
- > chown rnalib $CONVDIR; chgrp mail $CONVDIR
- 404c397
- < chown $LOGNAME $SPLITDIR; chgrp mail $SPLITDIR
- ---
- > chown rnalib $SPLITDIR; chgrp mail $SPLITDIR
- 410c403
- < UUCP_DESTIN=""; FCPRTIPE=""; REAL_TIME=""; TIME=""
- ---
- > UUCP_DESTIN=""; FCPRTIPE=""
- 479,497d471
- < ### DEBUG2 13/2/91 Paolo
- < Get_Commands() {
- < # $1 = file to examine
- < # returns: lines containing commands.
- < # %%FIX%%
- < # Some mailers, like Smail 3.1, or sendmail, may add funny sequences like
- < # /\@@/\ inside the headers THEY add to the mail passing by. This is bad!
- < # RNALIB would think these lines are actually commands sent by the
- < # original sender, while they are only junk added by a mailer somewhere!!
- < # We'll try to skip as much as possible junk headers probably added by
- < # intermediate host's mailers. You don't have to do anything special here,
- < # i just wanted to be sure that you knew about this kind of problems.
- < # A user can fix problems on HIS host with HIS mailer, he cannot fix something
- < # done by another host on HIS mail!
- < #
- < grep '@@' $1 | grep -v "Received:" | grep -v "Message-Id:" | grep -v "From:"
- <
- < }
- <
- 1356,1367d1329
- < Check_Time()
- < # $1 = path/user to check
- < # returns: null if unknown path; otherwise current time limits
- < {
- < tl_origin=$1
- < set ""
- < set -f `grep -v '#' $TIME_LIMITS`
- < while [ "$1" != "" ]; do
- < tl_path=$1; tl_start=$2; tl_stop=$3; shift; shift; shift
- < test -n "`echo $tl_origin | grep $tl_path`" && break
- < done
- < }
- 1369d1330
- <
- 1808,1813d1768
- < Copyrights_Msg() {
- < echo "\n\
- < Currently running $RNAVERS MAIL SERVER\n\
- < Public domain software written by Paolo Ventafridda and Marco Lorenzini\n\
- < venta@i2ack.sublink.org & marlor@gear.sublink.org - Sublink Network, ITALY\n\n"
- < }
- 1816,1837c1771,1777
- < echo "\nINTERNAL CONFIGURATION TABLE\n----------------------------"
- < test -n "$CONFDATA" && echo "Configured: $CONFDATA \c"
- < test -n $DEBUG && echo "[DEBUG MODE]\c"
- < echo "\nBinary handlers (\"with\"-type): \c"
- < test -n "$UUENCODE" && echo "uuencode \c"
- < test -n "$BTOA" && echo "btoa \c"
- < test -n "$COMPRESS" && echo "compress \c"
- < test -n "$LHARC" && echo "lharc \c"
- < test -n "$ZOO" && echo "zoo \c"
- < test -n "$TAR" && echo "tar \c"
- < echo "\nBinary layers (\"via\"-type) : \c"
- < test -n "$UUSEND" && echo "uusend \c"
- < test -n "$UUCP" && echo "uucp [sending inside \"$PUBDIR\"]"
- < echo "Max. file names length: $MAXLENGTH chars."
- < echo "File libraries are \c" ; test -z "$LIBIND" && echo "NOT \c"; echo "in use."
- < echo "Mailing lists (listserv) are \c" ; test -z "$LSTIND" && echo "NOT \c"; echo "in use."
- < echo "Help subsystem is \c"; test -z "$HELPDIR" && echo "NOT \c" ; echo "available."
- < echo "Splitting of files into smaller parts is \c"; test -z "$SPLIT" && echo "NOT \c"; echo "available."
- < test -n "$SPLIT" && {
- < echo " Minimum split size allowed: $MIN_SPLIT Kbytes"
- < echo " Maximum split size allowed: $MAX_SPLIT Kbytes"
- < echo " Default split size : $DEF_SPLIT Kbytes"
- ---
- > echo "\n\
- > RNALIB MAIL SERVER RELEASE 2.2 Revision A (beta)- Feb 1991 , Public Domain SW\n\
- > Developed by Paolo Ventafridda and Marco Lorenzini, Sublink Network, ITALY\n\
- > (venta@i2ack.sublink.org and marlor@gear.sublink.org) (c) 1989,1990,1991\n\n"
- > test -r $RNADIR/release && grep -v '#' $RNADIR/release
- > test -r $RNADIR/release || echo "== No system configuration available =="
- > echo
- 1839,1855d1778
- < echo "Maximum single email size: $MAIL_LIMIT Kbytes (priority limit)"
- < test -z "$PATHSIZE" && echo "Pathsizing is disabled; unlimited credits to everybody."
- < test -n "$PATHSIZE" && {
- < echo "Pathsizing is enabled; \c"
- < test -z "$CREDIT" && echo "unlimited credits to everybody, by default."
- < test -n "$CREDIT" && {
- < case $CREDIT in
- < 0)
- < echo "new users need authorization." ;;
- < *)
- < echo "new users have a $CREDIT bytes credit." ;;
- < esac
- < }
- < }
- < echo "Execution time limit is \c"; test -z "$TIME_LIMITS" && echo "NOT \c" ; echo "in use."
- < echo
- < }
- 1907,1911c1830
- < ### DEBUG2 13/2/91 Paolo
- < ### Some systems do not have 'head'. We just use it here, and we can
- < ### use sed, instead.
- < ### OLD: set `head -1 $MBOX_CUT`; UUCP_SENDER=$2
- < set `sed 1q $MBOX_CUT`; UUCP_SENDER=$2
- ---
- > set `head -1 $MBOX_CUT`; UUCP_SENDER=$2
- 1969c1888
- < touch $RNADIR/pending; echo "`cat $MBOX_CUT`\n\n" >>$RNADIR/pending
- ---
- > touch $RNADIR/pending; echo "`cat $MBOX_CUT`\n" >>$RNADIR/pending
- 1979,1983c1898
- < ### DEBUG2 13/2/91 Paolo
- < ### I changed the following line
- < ### grep '@@' $MBOX_CUT >$CMDS
- < ### using a new function, Get_Commands; see that for details.
- < Get_Commands $MBOX_CUT >$CMDS
- ---
- > grep '@@' $MBOX_CUT >$CMDS
- 2415,2437d2329
- < # If TIME_LIMITS is activated, look for limits.
- < test -n "$TIME_LIMITS" && {
- < if [ "$destination" != "DEFAULT" ]; then
- < UUCP_DESTIN=$destination
- < Check_Time $UUCP_DESTIN
- < test $DEBUG && test "$tl_path" = "$tl_origin" && echo "External destination time limits: $tl_start-$tl_stop"
- < else
- < Check_Time $UUCP_SENDER
- < test $DEBUG && test "$tl_path" = "$tl_origin" && echo "Default destination time limits: $tl_start-$tl_stop"
- < fi
- < if [ "$tl_path" = "$tl_origin" ]; then
- < set ""
- < set - `date`; REAL_TIME=$4
- < set - `echo $REAL_TIME | sed -e "s/:/ :/"`; TIME=$1
- < if [ "$TIME" -lt "$tl_start" ] || [ "$TIME" -gt "$tl_stop" ]; then
- < touch $RNADIR/pending; echo "`cat $MBOX_CUT`\n\n" >>$RNADIR/pending
- < test $DEBUG && echo "Time limits exceeded, holding message as pending job"
- < echo "HOLDON $ARPA_SENDER (TIME LIMITS)" >>$LOGFILE
- < return
- < fi
- < fi
- < }
- <
- 2923,2925d2814
- < Copyrights_Msg >>$OUTFILE
- < test -r $RNADIR/release && grep -v '#' $RNADIR/release >>$OUTFILE
- < test -r $RNADIR/release || echo "== No host description available ==" >>$OUTFILE
-