home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sources / reviewed / 111 next >
Encoding:
Text File  |  1992-07-28  |  7.7 KB  |  306 lines

  1. Newsgroups: comp.sources.reviewed
  2. Path: sparky!uunet!cs.utexas.edu!torn!cunews!nrcnet0!dgbt!rick.dgbt.doc.ca!calvin.dgbt.doc.ca!csr
  3. From: Chip Salzenberg <chip@tct.com>
  4. Subject: v02i020: deliver - (Ver. 2.1) flexible E-Mail delivery, Patch10
  5. Message-ID: <1992Jul20.154238.10007@rick.dgbt.doc.ca>
  6. Originator: csr@calvin.dgbt.doc.ca
  7. Sender: news@rick.dgbt.doc.ca
  8. Nntp-Posting-Host: calvin.dgbt.doc.ca
  9. Organization: Communications Research Centre, Ottawa
  10. Date: Mon, 20 Jul 1992 15:42:38 GMT
  11. Approved: csr@calvin.dgbt.doc.ca
  12. Lines: 292
  13.  
  14. Submitted-by: Chip Salzenberg <chip@tct.com>
  15. Posting-number: Volume 2, Issue 20
  16. Archive-name: deliver/patch10
  17. Patch-To: deliver: Volume 1, Issue 9-14
  18.  
  19. NOTE:  This patch contains changes for files in subdirectories.
  20.        When you apply it, be sure to use the "-p" option of patch.
  21.  
  22.  
  23. Changes in patch #10 to Deliver 2.1:
  24.  
  25. 1.  Two new configurations: Risc OS, in both BSD and SysV flavors.
  26.  
  27. 2.  Configuration adjustment: NextOS 2.x has vprintf().
  28.  
  29. 3.  If the original sender (as derived from a "-r" option, "From "
  30.     line, or "SENDER" environment variable) is unsafe -- i.e. it
  31.     contains shell metacharacters -- Deliver now uses the local
  32.     sender's name instead and proceeds with delivery.
  33.  
  34.     This change prevents invalid sender addresses, which are beyond
  35.     local control, from causing delivery failure.
  36.  
  37. 4.  The "make install" actions now work even on systems where the
  38.     shell is so badly broken that "set --" doesn't work.
  39.  
  40. 5.  The "make install" actions now save the already-installed
  41.     "deliver" and "header" binaries (if any) under the names
  42.     "deliver.O" and "header.O", respectively.
  43.  
  44. 6.  The MMDF document now recommends editing "alias.user" instead of
  45.     "alias.list".
  46.  
  47. Shar and enjoy.
  48.  
  49. This patch contains changes to the following files:
  50.     patchlevel.h
  51.     MMDF
  52.     Makefile
  53.     README
  54.     deliver.8
  55.     main.c
  56.     conf/os-next2.h
  57.     conf/os-risc-b.h
  58.     conf/os-risc-v.h
  59.  
  60. Index: patchlevel.h
  61. Prereq: 9
  62. ***************
  63. *** 1 ****
  64. ! #define PATCHLEVEL 9
  65. --- 1 ----
  66. ! #define PATCHLEVEL 10
  67.  
  68. Index: MMDF
  69. Prereq: 1.3
  70. ***************
  71. *** 1,3 ****
  72. ! $Id: MMDF,v 1.3 1992/01/20 20:37:06 chip Exp $
  73.   
  74.   
  75. --- 1,3 ----
  76. ! $Id: MMDF,v 1.4 1992/02/05 21:36:56 chip Exp $
  77.   
  78.   
  79. ***************
  80. *** 11,15 ****
  81.   
  82.   To use the administrator alias approach, log in as `mmdf' and edit the
  83. ! file `table/alias.list'.  For each user, add a line like
  84.   
  85.       user    "user|/usr/bin/deliver user"
  86. --- 11,15 ----
  87.   
  88.   To use the administrator alias approach, log in as `mmdf' and edit the
  89. ! file `table/alias.user'.  For each user, add a line like
  90.   
  91.       user    "user|/usr/bin/deliver user"
  92.  
  93. Index: Makefile
  94. Prereq: 1.12
  95. ***************
  96. *** 1,3 ****
  97. ! # $Id: Makefile,v 1.12 1991/12/25 22:03:19 chip Exp $
  98.   #
  99.   # Makefile for deliver
  100. --- 1,3 ----
  101. ! # $Id: Makefile,v 1.14 1992/05/12 21:03:03 chip Exp $
  102.   #
  103.   # Makefile for deliver
  104. ***************
  105. *** 151,156 ****
  106.   
  107.   install: deliver header uid
  108. !     @set -- `./uid -uU | fgrep '(root)' | wc -l`; \
  109. !     case "$$1" in \
  110.         2) ;; \
  111.         *)  echo "Sorry!  You must be root to install deliver."; exit 1 ;; \
  112. --- 151,156 ----
  113.   
  114.   install: deliver header uid
  115. !     @set X `./uid -uU | fgrep '(root)' | wc -l`; \
  116. !     case "$$2" in \
  117.         2) ;; \
  118.         *)  echo "Sorry!  You must be root to install deliver."; exit 1 ;; \
  119. ***************
  120. *** 167,170 ****
  121. --- 167,172 ----
  122.           done ;; \
  123.        esac
  124. +     rm -f $(BIN)/deliver.O
  125. +     -mv $(BIN)/deliver $(BIN)/deliver.O
  126.       $(COPY) deliver $(BIN)/deliver
  127.       chgrp $(GROUP) $(BIN)/deliver
  128. ***************
  129. *** 171,174 ****
  130. --- 173,178 ----
  131.       chown root $(BIN)/deliver
  132.       chmod 4711 $(BIN)/deliver
  133. +     rm -f $(BIN)/header.O
  134. +     -mv $(BIN)/header $(BIN)/header.O
  135.       $(COPY) header $(BIN)/header
  136.       chmod 755 $(BIN)/header
  137.  
  138. Index: README
  139. Prereq: 1.10
  140. ***************
  141. *** 1,4 ****
  142. ! $Id: README,v 1.10 1991/11/21 15:34:13 chip Exp $
  143. ! This is the README file for Deliver 2.1.09.
  144.   
  145.   
  146. --- 1,4 ----
  147. ! $Id: README,v 1.11 1992/07/02 17:57:59 chip Exp $
  148. ! This is the README file for Deliver 2.1.10.
  149.   
  150.   
  151.  
  152. Index: deliver.8
  153. Prereq: 1.7
  154. ***************
  155. *** 1,7 ****
  156. ! .\" $Id: deliver.8,v 1.7 1991/11/21 15:34:45 chip Exp $
  157.   .\"
  158.   .\" Man page for deliver.
  159.   .\"
  160. ! .TH DELIVER 8 "Deliver 2.1.09"
  161.   .SH NAME
  162.   deliver \- deliver mail
  163. --- 1,7 ----
  164. ! .\" $Id: deliver.8,v 1.8 1992/07/02 17:58:44 chip Exp $
  165.   .\"
  166.   .\" Man page for deliver.
  167.   .\"
  168. ! .TH DELIVER 8 "Deliver 2.1.10"
  169.   .SH NAME
  170.   deliver \- deliver mail
  171.  
  172. Index: main.c
  173. Prereq: 1.8
  174. ***************
  175. *** 1,3 ****
  176. ! /* $Id: main.c,v 1.8 1992/01/20 20:35:14 chip Exp $
  177.    *
  178.    * A program to deliver local mail with some flexibility.
  179. --- 1,3 ----
  180. ! /* $Id: main.c,v 1.9 1992/05/12 21:02:17 chip Exp $
  181.    *
  182.    * A program to deliver local mail with some flexibility.
  183. ***************
  184. *** 4,7 ****
  185. --- 4,11 ----
  186.    *
  187.    * $Log: main.c,v $
  188. +  * Revision 1.9  1992/05/12  21:02:17  chip
  189. +  * No diagnostic message when sender address is unsafe;
  190. +  * it's not the local system's fault, and delivery proceeds.
  191. +  *
  192.    * Revision 1.8  1992/01/20  20:35:14  chip
  193.    * Eliminate GCC2 warnings about unparenthesized || and &&.
  194. ***************
  195. *** 513,521 ****
  196.   
  197.       if (!addr_clean(orig_sender))
  198. -     {
  199. -     error("sender address \"%s\" unsafe; using \"%s\"",
  200. -           orig_sender, local_sender);
  201.       orig_sender = local_sender;
  202. -     }
  203.   
  204.       /*
  205. --- 517,521 ----
  206.  
  207. Index: conf/os-next2.h
  208. Prereq: 1.2
  209. ***************
  210. *** 1,3 ****
  211. ! /* $Id: os-next2.h,v 1.2 1991/08/05 18:18:05 chip Exp $
  212.    *
  213.    * Deliver configuration for NextOS 2.x.
  214. --- 1,3 ----
  215. ! /* $Id: os-next2.h,v 1.3 1992/07/15 14:01:30 chip Exp $
  216.    *
  217.    * Deliver configuration for NextOS 2.x.
  218. ***************
  219. *** 4,7 ****
  220. --- 4,10 ----
  221.    *
  222.    * $Log: os-next2.h,v $
  223. +  * Revision 1.3  1992/07/15  14:01:30  chip
  224. +  * Next OS has vprintf().
  225. +  *
  226.    * Revision 1.2  1991/08/05  18:18:05  chip
  227.    * As per experience of c.s.r reviewer.
  228. ***************
  229. *** 17,20 ****
  230. --- 20,24 ----
  231.   #define ML_DOTLOCK        /* Create <mailbox>.lock        */
  232.   
  233. + #define HAS_VPRINTF        /* Has vprintf()            */
  234.   #define HAS_GETOPT        /* Has getopt()                */
  235.   #define HAS_VOIDSIG        /* Signal handlers return void        */
  236.  
  237. Index: conf/os-risc-b.h
  238. ***************
  239. *** 0 ****
  240. --- 1,29 ----
  241. + /* $Id: os-risc-b.h,v 1.1 1992/07/15 13:59:22 chip Exp $
  242. +  *
  243. +  * Deliver configuration for MIPS risc/os 4.x (bsd universe)
  244. +  *
  245. +  * $Log: os-risc-b.h,v $
  246. +  * Revision 1.1  1992/07/15  13:59:22  chip
  247. +  * Initial revision
  248. +  *
  249. +  */
  250. + /* Mostly it's BSD. */
  251. + #include <os-bsd.h>
  252. + /* Then again... */
  253. + #define HH_STDARG        /* Has <stdarg.h>            */
  254. + #define HH_STRING        /* Has <string.h>            */
  255. + #undef  SAFEPATH
  256. + #define SAFEPATH "/bsd43/bin:/usr/ucb:/bin:/usr/bin"  /* Safe dirs for PATH */
  257. + #define ML_DOTLOCK        /* Create <mailbox>.lock        */
  258. + #undef  ML_KERNEL        /* Use kernel locking as defined above    */
  259. + #define HAS_STRCHR        /* Has strchr() and strrchr()        */
  260. + #define HAS_MEMFUNCS        /* Has memcpy() and memset()        */
  261. + #define HAS_VPRINTF        /* Has vprintf()            */
  262. + #define HAS_GETOPT        /* Has getopt()                */
  263.  
  264. Index: conf/os-risc-v.h
  265. ***************
  266. *** 0 ****
  267. --- 1,22 ----
  268. + /* $Id: os-risc-v.h,v 1.1 1992/07/15 13:59:22 chip Exp $
  269. +  *
  270. +  * Deliver configuration for MIPS risc/os 4.x (sysv universe)
  271. +  *
  272. +  * $Log: os-risc-v.h,v $
  273. +  * Revision 1.1  1992/07/15  13:59:22  chip
  274. +  * Initial revision
  275. +  *
  276. +  */
  277. + /* Mostly it's System V. */
  278. + #include <os-sysv.h>
  279. + /* Then again... */
  280. + #define HH_UNISTD        /* Has <unistd.h>            */
  281. + #define HH_STDARG        /* Has <stdarg.h>            */
  282. + #undef  ML_KERNEL        /* Use kernel locking as defined above    */
  283. + #define HAS_LONGNAMES        /* Long filenames (>14) supported    */
  284.  
  285. -- 
  286. Chip Salzenberg at Teltronics/TCT  <chip@tct.com>, <73717.366@compuserve.com>
  287.  
  288. exit 0 # Just in case...
  289. -- 
  290.         Andrew Patrick acting as Comp.Sources.Reviewed Moderator
  291.               Department of Communications, Ottawa, CANADA
  292.                          csr@calvin.dgbt.doc.CA
  293.