home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2852 / patch-3b < prev    next >
Encoding:
Text File  |  1991-02-24  |  6.3 KB  |  172 lines

  1. 2c2
  2. < RNAVERS="RNALIB 2.2 [beta-3b]"
  3. ---
  4. > RNAVERS="RNALIB 2.2 [beta-1]"
  5. 315,320d314
  6. < # You may choose to limit rna activities within certain time limits
  7. < # for a single host in order to avoid  requests being shipped during
  8. < # daytime, when connection is more expensive.
  9. < # If you don't care about 'timelimits', leave it blank.
  10. < TIME_LIMITS=
  11. < #
  12. 356,357c350
  13. < export CREDIT SPLIT MIN_SPLIT MAX_SPLIT DEF_SPLIT MAIL_LIMIT CONFDATA
  14. < export TIME_LIMITS
  15. ---
  16. > export CREDIT SPLIT MIN_SPLIT MAX_SPLIT DEF_SPLIT MAIL_LIMIT 
  17. 371c364
  18. <     chown $LOGNAME $TMPDIR; chgrp mail $TMPDIR
  19. ---
  20. >     chown rnalib $TMPDIR; chgrp mail $TMPDIR
  21. 402c395
  22. <     chown $LOGNAME $CONVDIR; chgrp mail $CONVDIR
  23. ---
  24. >     chown rnalib $CONVDIR; chgrp mail $CONVDIR
  25. 404c397
  26. <     chown $LOGNAME $SPLITDIR; chgrp mail $SPLITDIR
  27. ---
  28. >     chown rnalib $SPLITDIR; chgrp mail $SPLITDIR
  29. 410c403
  30. <     UUCP_DESTIN=""; FCPRTIPE=""; REAL_TIME=""; TIME=""
  31. ---
  32. >     UUCP_DESTIN=""; FCPRTIPE=""
  33. 479,497d471
  34. < ### DEBUG2 13/2/91 Paolo
  35. < Get_Commands() {
  36. < # $1 = file to examine
  37. < # returns: lines containing commands. 
  38. < # %%FIX%%
  39. < # Some mailers, like Smail 3.1, or sendmail, may add funny sequences like
  40. < # /\@@/\ inside the headers THEY add to the mail passing by. This is bad!
  41. < # RNALIB would think these lines are actually commands sent by the
  42. < # original sender, while they are only junk added by a mailer somewhere!!
  43. < # We'll try to skip as much as possible junk headers probably added by
  44. < # intermediate host's mailers. You don't have to do anything special here,
  45. < # i just wanted to be sure that you knew about this kind of problems.
  46. < # A user can fix problems on HIS host with HIS mailer, he cannot fix something
  47. < # done by another host on HIS mail! 
  48. < #
  49. < grep '@@' $1 | grep -v "Received:" | grep -v "Message-Id:" | grep -v "From:"
  50. < }
  51. 1356,1367d1329
  52. < Check_Time()
  53. < # $1 = path/user to check
  54. < # returns: null if unknown path; otherwise current time limits
  55. < {
  56. < tl_origin=$1
  57. < set ""
  58. < set -f `grep -v '#' $TIME_LIMITS`
  59. < while [ "$1" != "" ]; do
  60. <     tl_path=$1; tl_start=$2; tl_stop=$3; shift; shift; shift
  61. <      test -n "`echo $tl_origin | grep $tl_path`" && break
  62. < done
  63. < }
  64. 1369d1330
  65. 1808,1813d1768
  66. < Copyrights_Msg() {
  67. <     echo "\n\
  68. < Currently running $RNAVERS MAIL SERVER\n\
  69. < Public domain software  written by  Paolo Ventafridda and  Marco Lorenzini\n\
  70. < venta@i2ack.sublink.org & marlor@gear.sublink.org - Sublink Network, ITALY\n\n"
  71. < }
  72. 1816,1837c1771,1777
  73. < echo "\nINTERNAL CONFIGURATION TABLE\n----------------------------"
  74. < test -n "$CONFDATA" && echo "Configured: $CONFDATA \c"
  75. < test -n $DEBUG && echo "[DEBUG MODE]\c"
  76. < echo "\nBinary handlers (\"with\"-type): \c"
  77. < test -n "$UUENCODE" && echo "uuencode \c"
  78. < test -n "$BTOA" && echo "btoa \c"
  79. < test -n "$COMPRESS" && echo "compress \c"
  80. < test -n "$LHARC" && echo "lharc \c"
  81. < test -n "$ZOO" && echo "zoo \c"
  82. < test -n "$TAR" && echo "tar \c"
  83. < echo "\nBinary layers   (\"via\"-type) : \c"
  84. < test -n "$UUSEND" && echo "uusend \c"
  85. < test -n "$UUCP" && echo "uucp [sending inside \"$PUBDIR\"]"
  86. < echo "Max. file names length: $MAXLENGTH chars."
  87. < echo "File libraries are \c" ; test -z "$LIBIND" && echo "NOT \c"; echo "in use."
  88. < echo "Mailing lists (listserv) are \c" ; test -z "$LSTIND" && echo "NOT \c"; echo "in use."
  89. < echo "Help subsystem is \c"; test -z "$HELPDIR" && echo "NOT \c" ; echo "available."
  90. < echo "Splitting of files into smaller parts is \c"; test -z "$SPLIT" && echo "NOT \c"; echo "available."
  91. < test -n "$SPLIT" && {
  92. <     echo "   Minimum split size allowed: $MIN_SPLIT Kbytes"
  93. <     echo "   Maximum split size allowed: $MAX_SPLIT Kbytes"
  94. <     echo "   Default split size : $DEF_SPLIT Kbytes"
  95. ---
  96. >     echo "\n\
  97. > RNALIB MAIL SERVER RELEASE 2.2 Revision A (beta)- Feb 1991 , Public Domain SW\n\
  98. > Developed by  Paolo Ventafridda and Marco Lorenzini,  Sublink Network,  ITALY\n\
  99. > (venta@i2ack.sublink.org and marlor@gear.sublink.org) (c) 1989,1990,1991\n\n"
  100. > test -r $RNADIR/release && grep -v '#' $RNADIR/release
  101. > test -r $RNADIR/release || echo "== No system configuration available =="
  102. > echo
  103. 1839,1855d1778
  104. < echo "Maximum single email size: $MAIL_LIMIT Kbytes (priority limit)"
  105. < test -z "$PATHSIZE" && echo "Pathsizing is disabled; unlimited credits to everybody."
  106. < test -n "$PATHSIZE" && {
  107. <     echo "Pathsizing is enabled; \c"
  108. <     test -z "$CREDIT" && echo "unlimited credits to everybody, by default."
  109. <     test -n "$CREDIT" && {
  110. <         case $CREDIT in
  111. <             0)
  112. <                 echo "new users need authorization." ;;
  113. <             *)
  114. <                 echo "new users have a $CREDIT bytes credit." ;;
  115. <         esac
  116. <     }
  117. < }
  118. < echo "Execution time limit is \c"; test -z "$TIME_LIMITS" && echo "NOT \c" ; echo "in use."
  119. < echo 
  120. < }
  121. 1907,1911c1830
  122. < ### DEBUG2 13/2/91 Paolo
  123. < ### Some systems do not have 'head'. We just use it here, and we can
  124. < ### use sed, instead.
  125. < ### OLD: set `head -1 $MBOX_CUT`; UUCP_SENDER=$2
  126. < set `sed 1q $MBOX_CUT`; UUCP_SENDER=$2
  127. ---
  128. > set `head -1 $MBOX_CUT`; UUCP_SENDER=$2
  129. 1969c1888
  130. <     touch $RNADIR/pending; echo "`cat $MBOX_CUT`\n\n" >>$RNADIR/pending
  131. ---
  132. >     touch $RNADIR/pending; echo "`cat $MBOX_CUT`\n" >>$RNADIR/pending
  133. 1979,1983c1898
  134. < ### DEBUG2 13/2/91 Paolo
  135. < ### I changed the following line
  136. < ###    grep '@@' $MBOX_CUT >$CMDS
  137. < ### using a new function, Get_Commands; see that for details.
  138. < Get_Commands $MBOX_CUT >$CMDS
  139. ---
  140. > grep '@@' $MBOX_CUT >$CMDS
  141. 2415,2437d2329
  142. < # If TIME_LIMITS is activated, look for limits.
  143. < test -n "$TIME_LIMITS" && {
  144. <     if [ "$destination" != "DEFAULT" ]; then
  145. <         UUCP_DESTIN=$destination
  146. <         Check_Time $UUCP_DESTIN
  147. <         test $DEBUG && test "$tl_path" = "$tl_origin" && echo "External destination time limits: $tl_start-$tl_stop"
  148. <     else
  149. <         Check_Time $UUCP_SENDER
  150. <         test $DEBUG && test "$tl_path" = "$tl_origin" && echo "Default destination time limits: $tl_start-$tl_stop"
  151. <     fi
  152. < if [ "$tl_path" = "$tl_origin" ]; then
  153. <     set ""
  154. <     set - `date`; REAL_TIME=$4
  155. <     set - `echo $REAL_TIME | sed -e "s/:/ :/"`; TIME=$1
  156. <     if [ "$TIME" -lt "$tl_start" ] || [ "$TIME" -gt "$tl_stop" ]; then
  157. <     touch $RNADIR/pending; echo "`cat $MBOX_CUT`\n\n" >>$RNADIR/pending
  158. <     test $DEBUG && echo "Time limits exceeded, holding message as pending job"
  159. <     echo "HOLDON $ARPA_SENDER (TIME LIMITS)" >>$LOGFILE
  160. <     return
  161. <     fi
  162. < fi
  163. < }
  164. 2923,2925d2814
  165. <     Copyrights_Msg >>$OUTFILE
  166. <     test -r $RNADIR/release && grep -v '#' $RNADIR/release >>$OUTFILE
  167. <     test -r $RNADIR/release || echo "== No host description available ==" >>$OUTFILE
  168.