home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume24 / elm2.3patches / part09 < prev    next >
Encoding:
Internet Message Format  |  1991-03-05  |  24.7 KB

  1. Subject:  v24i033:  Elm mail system, release 2.3, patches, Part09/11
  2. Newsgroups: comp.sources.unix
  3. Approved: rsalz@uunet.UU.NET
  4. X-Checksum-Snefru: 02792314 6ea6f81f 6b04b6b7 8b121359
  5.  
  6. Submitted-by: Syd Weinstein <syd@DSI.COM>
  7. Posting-number: Volume 24, Issue 33
  8. Archive-name: elm2.3patches/part09
  9.  
  10. Subject: elm 2.3 Patch #9
  11. Summary: This is an official patch for elm 2.3 system.  Please apply it.
  12. Priority: Medium
  13.  
  14. Add yp search to /etc/yp as well as /usr/etc/yp
  15. From: Lee Ziegenhals
  16.  
  17. Remove start_highlight and end_highlight, no longer used
  18. From: W. David Higgins
  19.  
  20. Add uninstall target to doc Makefile.SH
  21. From: Rusty Haddock
  22.  
  23. Init time zone header to avoid garbage strings
  24. From: Norman J. Meluch
  25.  
  26. Added FAILED_SAVE log case to filter utils.
  27. Fixed out of order lines.
  28. From: Steve Campbell
  29.  
  30. Remove opterr from newmail, unused and some getopts
  31. dont define it.
  32. From: Syd via Peter King
  33.  
  34. Fix arepdaem lock file creation flags, wrong modes left over
  35. from open call
  36. From: Syd via Terry Furman
  37.  
  38. Fix header end on reply due to white space continuation allowing
  39. it to go too far.
  40. From: Syd via report from Tom Davis <tdd@endure.cl.msu.edu>
  41.  
  42. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your elm source
  43.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  44.     If you don't have the patch program, apply the following by hand,
  45.     or get patch (version 2.0, latest patchlevel).
  46.  
  47.     After patching:
  48.         sh Configure -d
  49.         make
  50.         make install
  51.  
  52.     If patch indicates that patchlevel is the wrong version, you may need
  53.     to apply one or more previous patches, or the patch may already
  54.     have been applied.  See the patchlevel.h file to find out what has or
  55.     has not been applied.  In any event, don't continue with the patch.
  56.  
  57.     If you are missing previous patches they can be obtained from our:
  58.     archive server.
  59.  
  60.     Syd Weinstein
  61.     elm@DSI.COM
  62.  
  63.     The patches are available from the dsinc archive server
  64.     Send the following message to archive-server@DSI.COM for
  65.     a list of available patches:
  66.  
  67.     Subject: patch list
  68.     send index elm
  69.  
  70. Index: hdrs/patchlevel.h
  71. Prereq: 8
  72. *** ../elm2.3/hdrs/patchlevel.h    Wed Oct 10 13:11:12 1990
  73. --- hdrs/patchlevel.h    Wed Oct 24 15:34:56 1990
  74. ***************
  75. *** 1 ****
  76. ! #define PATCHLEVEL 8
  77. --- 1 ----
  78. ! #define PATCHLEVEL 9
  79.  
  80. Index: Configure
  81. Prereq: 4.1.1.10
  82. *** ../elm2.3/Configure    Sun Oct  7 21:54:51 1990
  83. --- Configure    Wed Oct 24 16:37:22 1990
  84. ***************
  85. *** 8,14 ****
  86.   # and edit it to reflect your system.  Some packages may include samples
  87.   # of config.h for certain machines, so you might look for one of those.)
  88.   #
  89. ! # $Header: /files/home/users/syd/elm.rel/RCS/Configure,v 4.1.1.10 90/10/07 21:31:35 syd Exp $
  90.   #
  91.   # Yes, you may rip this off to use in other distribution packages.
  92.   # (Note: this Configure script was generated automatically.  Rather than
  93. --- 8,14 ----
  94.   # and edit it to reflect your system.  Some packages may include samples
  95.   # of config.h for certain machines, so you might look for one of those.)
  96.   #
  97. ! # $Header: /files/home/users/syd/elm.rel/RCS/Configure,v 4.1.1.11 90/10/24 16:37:01 syd Exp $
  98.   #
  99.   # Yes, you may rip this off to use in other distribution packages.
  100.   # (Note: this Configure script was generated automatically.  Rather than
  101. ***************
  102. *** 1689,1695 ****
  103.   esac
  104.   
  105.   : see if we have to deal with yellow pages
  106. ! if $test -d /usr/etc/yp; then
  107.       if $test "$passcat" = "ypcat passwd"; then
  108.       dflt=y
  109.       elif $contains '^\+:' /etc/passwd; then
  110. --- 1689,1695 ----
  111.   esac
  112.   
  113.   : see if we have to deal with yellow pages
  114. ! if $test -d /usr/etc/yp || $test -d /etc/yp; then
  115.       if $test "$passcat" = "ypcat passwd"; then
  116.       dflt=y
  117.       elif $contains '^\+:' /etc/passwd; then
  118.  
  119. Index: Patchlist
  120. *** ../elm2.3/Patchlist    Sun Oct  7 21:55:02 1990
  121. --- Patchlist    Wed Dec  5 22:10:47 1990
  122. ***************
  123. *** 1,3 ****
  124. --- 1,51 ----
  125. +     Elm 2.3 Patch 9 - More bug/portability fixes
  126. +     Wed Dec  5 22:10:09 EST 1990 (Creation date, not posting date)
  127. + Add yp search to /etc/yp as well as /usr/etc/yp
  128. + From: Lee Ziegenhals
  129. + Remove start_highlight and end_highlight, no longer used
  130. + From: W. David Higgins
  131. + Add uninstall target to doc Makefile.SH
  132. + From: Rusty Haddock
  133. + Init time zone header to avoid garbage strings
  134. + From: Norman J. Meluch
  135. + Added FAILED_SAVE log case to filter utils.
  136. + Fixed out of order lines.
  137. + From: Steve Campbell
  138. + Remove opterr from newmail, unused and some getopts
  139. + dont define it.
  140. + From: Syd via Peter King
  141. + Fix arepdaem lock file creation flags, wrong modes left over
  142. + from open call
  143. + From: Syd via Terry Furman
  144. + Fix header end on reply due to white space continuation allowing
  145. + it to go too far.
  146. + From: Syd via report from Tom Davis <tdd@endure.cl.msu.edu>
  147. +     Elm 2.3 Patch 8 - Important fix to Patch 7
  148. +     Oct 10 13:02 EDT 1990 (Creation date, not posting date)
  149. + Please FOLKS, follow the 'After Patching Instructions', it'll save
  150. + us all alot of e-mail.....
  151. + This is the quickie patch to fix up a few things that PL7 didn't
  152. + do as cleanly as it should have.
  153. + Make the symbol submitflagss look less like a type, it is real.
  154. + From: Syd
  155. + Fix calling sequence to copy_message for new MMDF argument
  156. + From: Syd
  157. + Allow Priority: normal is upper or lower N (quickie fix)
  158. + From: Syd
  159.       Elm 2.3 Patch 7 - Misc bug fixes
  160.       Sun Oct  7 21:33:58 EDT 1990 (Creation date, not posting date)
  161.   Fixes when newmail detects that the mail folder has grown in size it prints a newline, even
  162.  
  163. Index: doc/Makefile.SH
  164. Prereq: 4.1
  165. *** ../elm2.3/doc/Makefile.SH    Sat Apr 28 22:41:08 1990
  166. --- doc/Makefile.SH    Wed Oct 24 15:42:58 1990
  167. ***************
  168. *** 16,22 ****
  169.   echo "Extracting doc/Makefile (with variable substitutions)"
  170.   cat >Makefile <<!GROK!THIS!
  171.   #
  172. ! # $Id: Makefile.SH,v 4.1 90/04/28 22:41:07 syd Exp $
  173.   #
  174.   #  Makefile for the documentation of the ELM mail system
  175.   #
  176. --- 16,22 ----
  177.   echo "Extracting doc/Makefile (with variable substitutions)"
  178.   cat >Makefile <<!GROK!THIS!
  179.   #
  180. ! # $Id: Makefile.SH,v 4.1.1.1 90/10/24 15:42:13 syd Exp $
  181.   #
  182.   #  Makefile for the documentation of the ELM mail system
  183.   #
  184. ***************
  185. *** 23,28 ****
  186. --- 23,32 ----
  187.   #         (C) Copyright 1989, 1990, USENET Community Trust
  188.   #
  189.   #  $Log:    Makefile.SH,v $
  190. + # Revision 4.1.1.1  90/10/24  15:42:13  syd
  191. + # Add uninstall target
  192. + # From: Rusty Haddock
  193. + # 
  194.   # Revision 4.1  90/04/28  22:41:07  syd
  195.   # checkin of Elm 2.3 as of Release PL0
  196.   # 
  197. ***************
  198. *** 108,113 ****
  199. --- 112,120 ----
  200.   clean:    
  201.   
  202.   install:    $(LIB_LIST) $(MAN_LIST) $(MAN)/wnewmail.$(MANEXT)
  203. + uninstall:
  204. +         $(RM) $(LIB_LIST) $(MAN_LIST) $(MAN)/wnewmail.$(MANEXT)
  205.   
  206.   #    Dependencies and rules for installing man pages and lib files
  207.   #    taken from a remote system
  208.  
  209. Index: filter/filter.c
  210. Prereq: 4.1
  211. *** ../elm2.3/filter/filter.c    Sat Apr 28 22:41:56 1990
  212. --- filter/filter.c    Wed Oct 24 16:11:54 1990
  213. ***************
  214. *** 1,8 ****
  215.   
  216. ! static char rcsid[] ="@(#)$Id: filter.c,v 4.1 90/04/28 22:41:55 syd Exp $";
  217.   
  218.   /*******************************************************************************
  219. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  220.    *
  221.    *             Copyright (c) 1986, 1987 Dave Taylor
  222.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  223. --- 1,8 ----
  224.   
  225. ! static char rcsid[] ="@(#)$Id: filter.c,v 4.1.1.1 90/10/24 16:11:44 syd Exp $";
  226.   
  227.   /*******************************************************************************
  228. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  229.    *
  230.    *             Copyright (c) 1986, 1987 Dave Taylor
  231.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  232. ***************
  233. *** 14,19 ****
  234. --- 14,23 ----
  235.    *
  236.    *******************************************************************************
  237.    * $Log:    filter.c,v $
  238. +  * Revision 4.1.1.1  90/10/24  16:11:44  syd
  239. +  * Fix out of order lines
  240. +  * From: Steve Campbell
  241. +  * 
  242.    * Revision 4.1  90/04/28  22:41:55  syd
  243.    * checkin of Elm 2.3 as of Release PL0
  244.    * 
  245. ***************
  246. *** 123,130 ****
  247.   
  248.       if (summary || long_summary) {
  249.             if (get_filter_rules() == -1) {
  250. -         exit(1);
  251.           if (outfd != NULL) fclose(outfd);
  252.         }
  253.         show_summary();
  254.         if (outfd != NULL) fclose(outfd);
  255. --- 127,134 ----
  256.   
  257.       if (summary || long_summary) {
  258.             if (get_filter_rules() == -1) {
  259.           if (outfd != NULL) fclose(outfd);
  260. +         exit(1);
  261.         }
  262.         show_summary();
  263.         if (outfd != NULL) fclose(outfd);
  264.  
  265. Index: filter/utils.c
  266. Prereq: 4.1.1.1
  267. *** ../elm2.3/filter/utils.c    Thu Jul 12 23:35:17 1990
  268. --- filter/utils.c    Wed Oct 24 16:08:46 1990
  269. ***************
  270. *** 1,8 ****
  271.   
  272. ! static char rcsid[] ="@(#)$Id: utils.c,v 4.1.1.1 90/07/12 20:23:19 syd Exp $";
  273.   
  274.   /*******************************************************************************
  275. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  276.    *
  277.    *             Copyright (c) 1986, 1987 Dave Taylor
  278.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  279. --- 1,8 ----
  280.   
  281. ! static char rcsid[] ="@(#)$Id: utils.c,v 4.1.1.2 90/10/24 16:08:29 syd Exp $";
  282.   
  283.   /*******************************************************************************
  284. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  285.    *
  286.    *             Copyright (c) 1986, 1987 Dave Taylor
  287.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  288. ***************
  289. *** 14,19 ****
  290. --- 14,23 ----
  291.    *
  292.    *******************************************************************************
  293.    * $Log:    utils.c,v $
  294. +  * Revision 4.1.1.2  90/10/24  16:08:29  syd
  295. +  * Add FAILED_SAVE case to log
  296. +  * From: Steve Cambell
  297. +  * 
  298.    * Revision 4.1.1.1  90/07/12  20:23:19  syd
  299.    * patch fixes some minor typing mistakes in error messages
  300.    * From: hz247bi@duc220.uni-duisburg.de (Bieniek)
  301. ***************
  302. *** 91,96 ****
  303. --- 95,102 ----
  304.   
  305.       switch (what) {
  306.         case DELETE_MSG : fprintf(fd, "\tDELETED");            break;
  307. +       case FAILED_SAVE: fprintf(fd, "\tSAVE FAILED for file \"%s\"", 
  308. +                 rules[rule_choosen].argument2);        break;
  309.         case SAVE       : fprintf(fd, "\tSAVED in file \"%s\"", 
  310.                   rules[rule_choosen].argument2);        break;
  311.         case SAVECC     : fprintf(fd,"\tSAVED in file \"%s\" AND PUT in mailbox", 
  312.  
  313. Index: hdrs/elm.h
  314. Prereq: 4.1
  315. *** ../elm2.3/hdrs/elm.h    Sat Apr 28 22:42:09 1990
  316. --- hdrs/elm.h    Wed Oct 24 15:33:06 1990
  317. ***************
  318. *** 1,8 ****
  319.   
  320. ! /* $Id: elm.h,v 4.1 90/04/28 22:42:08 syd Exp $ */
  321.   
  322.   /*******************************************************************************
  323. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  324.    *
  325.    *             Copyright (c) 1986, 1987 Dave Taylor
  326.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  327. --- 1,8 ----
  328.   
  329. ! /* $Id: elm.h,v 4.1.1.1 90/10/24 15:31:24 syd Exp $ */
  330.   
  331.   /*******************************************************************************
  332. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  333.    *
  334.    *             Copyright (c) 1986, 1987 Dave Taylor
  335.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  336. ***************
  337. *** 14,19 ****
  338. --- 14,23 ----
  339.    *
  340.    *******************************************************************************
  341.    * $Log:    elm.h,v $
  342. +  * Revision 4.1.1.1  90/10/24  15:31:24  syd
  343. +  * Remove variables no longer used
  344. +  * From: W. David Higgins
  345. +  * 
  346.    * Revision 4.1  90/04/28  22:42:08  syd
  347.    * checkin of Elm 2.3 as of Release PL0
  348.    * 
  349. ***************
  350. *** 96,104 ****
  351.   char up[SHORT], down[SHORT],    /* cursor control seq's    */
  352.        left[SHORT], right[SHORT];
  353.   int  cursor_control = FALSE;    /* cursor control avail?   */
  354. - char start_highlight[SHORT],
  355. -      end_highlight[SHORT];    /* stand out mode...       */
  356.   
  357.   int  has_highlighting = FALSE;    /* highlighting available? */
  358.   
  359. --- 100,105 ----
  360.  
  361. Index: hdrs/headers.h
  362. Prereq: 4.1
  363. *** ../elm2.3/hdrs/headers.h    Sat Apr 28 22:42:12 1990
  364. --- hdrs/headers.h    Wed Oct 24 15:33:10 1990
  365. ***************
  366. *** 1,8 ****
  367.   
  368. ! /* $Id: headers.h,v 4.1 90/04/28 22:42:11 syd Exp $ */
  369.   
  370.   /*******************************************************************************
  371. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  372.    *
  373.    *             Copyright (c) 1986, 1987 Dave Taylor
  374.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  375. --- 1,8 ----
  376.   
  377. ! /* $Id: headers.h,v 4.1.1.1 90/10/24 15:33:07 syd Exp $ */
  378.   
  379.   /*******************************************************************************
  380. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  381.    *
  382.    *             Copyright (c) 1986, 1987 Dave Taylor
  383.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  384. ***************
  385. *** 14,19 ****
  386. --- 14,23 ----
  387.    *
  388.    *******************************************************************************
  389.    * $Log:    headers.h,v $
  390. +  * Revision 4.1.1.1  90/10/24  15:33:07  syd
  391. +  * Remove variables no longer used
  392. +  * From: W. David Higgins
  393. +  * 
  394.    * Revision 4.1  90/04/28  22:42:11  syd
  395.    * checkin of Elm 2.3 as of Release PL0
  396.    * 
  397. ***************
  398. *** 91,99 ****
  399.           left[SHORT],
  400.           right[SHORT];    /* cursor control seq's    */
  401.   extern int  cursor_control;    /* cursor control avail?   */
  402. - extern char start_highlight[SHORT],
  403. -         end_highlight[SHORT];  /* standout mode... */
  404.   
  405.   extern int  has_highlighting;    /* highlighting available? */
  406.   
  407. --- 95,100 ----
  408.  
  409. Index: src/init.c
  410. Prereq: 4.1.1.2
  411. *** ../elm2.3/src/init.c    Wed Aug 15 23:51:32 1990
  412. --- src/init.c    Wed Dec  5 14:34:20 1990
  413. ***************
  414. *** 1,8 ****
  415.   
  416. ! static char rcsid[] = "@(#)$Id: init.c,v 4.1.1.2 90/08/02 21:57:56 syd Exp $";
  417.   
  418.   /*******************************************************************************
  419. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  420.    *
  421.    *             Copyright (c) 1986, 1987 Dave Taylor
  422.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  423. --- 1,8 ----
  424.   
  425. ! static char rcsid[] = "@(#)$Id: init.c,v 4.1.1.4 90/12/05 14:34:08 syd Exp $";
  426.   
  427.   /*******************************************************************************
  428. !  *  The Elm Mail System  -  $Revision: 4.1.1.4 $   $State: Exp $
  429.    *
  430.    *             Copyright (c) 1986, 1987 Dave Taylor
  431.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  432. ***************
  433. *** 14,19 ****
  434. --- 14,27 ----
  435.    *
  436.    *******************************************************************************
  437.    * $Log:    init.c,v $
  438. +  * Revision 4.1.1.4  90/12/05  14:34:08  syd
  439. +  * fix dropping of unused vars, dropped to much
  440. +  * From: Syd
  441. +  * 
  442. +  * Revision 4.1.1.3  90/10/24  15:33:11  syd
  443. +  * Remove variables no longer used
  444. +  * From: W. David Higgins
  445. +  * 
  446.    * Revision 4.1.1.2  90/08/02  21:57:56  syd
  447.    * The newly introduced function 'stricmp' has a name conflict with a libc
  448.    * function under SunOS 4.1.  Changed name to istrcmp.
  449. ***************
  450. *** 369,389 ****
  451.             }
  452.           }
  453.         }
  454. !       strcpy(start_highlight, "->");
  455. !       end_highlight[0] = '\0';
  456. !       if (!arrow_cursor) {    /* try to use inverse bar instead */
  457. !         if ((cp = return_value_of("so")) != NULL) {
  458. !           strcpy(start_highlight, cp);
  459. !           if ((cp = return_value_of("se")) == NULL)
  460. !             strcpy(start_highlight, "->");
  461. !           else {
  462. !             strcpy(end_highlight, cp);
  463.               has_highlighting = TRUE;
  464. -           }
  465. -         }
  466. -       }
  467.       }
  468.   
  469.       /** clear the screen **/
  470. --- 377,385 ----
  471.             }
  472.           }
  473.         }
  474. !       if (!arrow_cursor)     /* try to use inverse bar instead */
  475. !         if (return_value_of("so") != NULL && return_value_of("se") != NULL)
  476.               has_highlighting = TRUE;
  477.       }
  478.   
  479.       /** clear the screen **/
  480.  
  481. Index: src/newmbox.c
  482. Prereq: 4.1.1.4
  483. *** ../elm2.3/src/newmbox.c    Wed Oct 10 13:11:14 1990
  484. --- src/newmbox.c    Wed Dec  5 15:08:51 1990
  485. ***************
  486. *** 1,8 ****
  487.   
  488. ! static char rcsid[] = "@(#)$Id: newmbox.c,v 4.1.1.4 90/10/10 12:53:42 syd Exp $";
  489.   
  490.   /*******************************************************************************
  491. !  *  The Elm Mail System  -  $Revision: 4.1.1.4 $   $State: Exp $
  492.    *
  493.    *             Copyright (c) 1988, USENET Community Trust
  494.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  495. --- 1,8 ----
  496.   
  497. ! static char rcsid[] = "@(#)$Id: newmbox.c,v 4.1.1.5 90/10/24 15:46:47 syd Exp $";
  498.   
  499.   /*******************************************************************************
  500. !  *  The Elm Mail System  -  $Revision: 4.1.1.5 $   $State: Exp $
  501.    *
  502.    *             Copyright (c) 1988, USENET Community Trust
  503.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  504. ***************
  505. *** 14,19 ****
  506. --- 14,23 ----
  507.    *
  508.    *******************************************************************************
  509.    * $Log:    newmbox.c,v $
  510. +  * Revision 4.1.1.5  90/10/24  15:46:47  syd
  511. +  * Init time zone variable to avoid garbage strings
  512. +  * From: Norman J. Meluch
  513. +  * 
  514.    * Revision 4.1.1.4  90/10/10  12:53:42  syd
  515.    * allow words in either case
  516.    * quickie fix
  517. ***************
  518. *** 480,485 ****
  519. --- 484,490 ----
  520.             strcpy(current_header->subject, "");    /* clear subj    */
  521.             strcpy(current_header->to, "");        /* clear to    */
  522.             strcpy(current_header->mailx_status, "");    /* clear status flags */
  523. +           strcpy(current_header->time_zone, "");    /* clear time zone name */
  524.             strcpy(current_header->messageid, "<no.id>"); /* set no id into message id */
  525.             current_header->encrypted = 0;        /* clear encrypted */
  526.             current_header->exit_disposition = UNSET;
  527.  
  528. Index: src/returnadd.c
  529. Prereq: 4.1
  530. *** ../elm2.3/src/returnadd.c    Sat Apr 28 22:43:55 1990
  531. --- src/returnadd.c    Wed Dec  5 22:34:13 1990
  532. ***************
  533. *** 1,8 ****
  534.   
  535. ! static char rcsid[] = "@(#)$Id: returnadd.c,v 4.1 90/04/28 22:43:54 syd Exp $";
  536.   
  537.   /*******************************************************************************
  538. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  539.    *
  540.    *             Copyright (c) 1986, 1987 Dave Taylor
  541.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  542. --- 1,8 ----
  543.   
  544. ! static char rcsid[] = "@(#)$Id: returnadd.c,v 4.1.1.2 90/12/05 22:33:58 syd Exp $";
  545.   
  546.   /*******************************************************************************
  547. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  548.    *
  549.    *             Copyright (c) 1986, 1987 Dave Taylor
  550.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  551. ***************
  552. *** 14,19 ****
  553. --- 14,28 ----
  554.    *
  555.    *******************************************************************************
  556.    * $Log:    returnadd.c,v $
  557. +  * Revision 4.1.1.2  90/12/05  22:33:58  syd
  558. +  * Fix missing close brace due to indention error
  559. +  * From: Syd
  560. +  * 
  561. +  * Revision 4.1.1.1  90/12/05  21:59:41  syd
  562. +  * Fix where header could be going past end on return due to line
  563. +  * combination on header continuation.
  564. +  * From: Syd via report from Tom Davis
  565. +  * 
  566.    * Revision 4.1  90/04/28  22:43:54  syd
  567.    * checkin of Elm 2.3 as of Release PL0
  568.    * 
  569. ***************
  570. *** 231,237 ****
  571.   
  572.       char buf[SLEN], name1[SLEN], name2[SLEN], lastname[SLEN];
  573.       char hold_return[SLEN], alt_name2[SLEN], buf2[SLEN];
  574. !     int ok = 1, lines;
  575.       int using_to = FALSE;
  576.   
  577.       /* now initialize all the char buffers [thanks Keith!] */
  578. --- 240,246 ----
  579.   
  580.       char buf[SLEN], name1[SLEN], name2[SLEN], lastname[SLEN];
  581.       char hold_return[SLEN], alt_name2[SLEN], buf2[SLEN];
  582. !     int ok = 1, lines, len_buf, len_buf2;
  583.       int using_to = FALSE;
  584.   
  585.       /* now initialize all the char buffers [thanks Keith!] */
  586. ***************
  587. *** 266,288 ****
  588.       buffer[0] = '\0';
  589.   
  590.       ok = (int) (fgets(buf2, SLEN, mailfile) != NULL);
  591. !     if (ok)
  592. !       if(buf2[strlen(buf2)-1] == '\n') lines--; /* got a full line */
  593.   
  594.       while (ok && lines) {
  595.         buf[0] = '\0';
  596.         strncat(buf, buf2, SLEN);
  597.         ok = (int) (fgets(buf2, SLEN, mailfile) != NULL);
  598. !       if (ok)
  599. !         if(buf2[strlen(buf2)-1] == '\n') lines--; /* got a full line */
  600. !       while (ok && lines && whitespace(buf2[0])) {
  601. !         if (buf[strlen(buf)-1] == '\n')
  602. !           buf[strlen(buf)-1] = '\0';
  603. !         strncat(buf, buf2, (SLEN-strlen(buf)-1));
  604.           ok = (int) (fgets(buf2, SLEN, mailfile) != NULL);
  605. !         if (ok)
  606. !           if(buf2[strlen(buf2)-1] == '\n') lines--; /* got a full line */
  607.           }
  608.   
  609.   /* At this point, "buf" contains the unfolded header line, while "buf2" contains
  610.      the next single line of text from the mail file */
  611. --- 275,306 ----
  612.       buffer[0] = '\0';
  613.   
  614.       ok = (int) (fgets(buf2, SLEN, mailfile) != NULL);
  615. !     if (ok) {
  616. !       len_buf2 = strlen(buf2);
  617. !       if(buf2[len_buf2-1] == '\n') lines--; /* got a full line */
  618. !     }
  619.   
  620.       while (ok && lines) {
  621.         buf[0] = '\0';
  622.         strncat(buf, buf2, SLEN);
  623. +       len_buf = strlen(buf);
  624.         ok = (int) (fgets(buf2, SLEN, mailfile) != NULL);
  625. !       if (ok) {
  626. !         len_buf2 = strlen(buf2);
  627. !         if(buf2[len_buf2-1] == '\n') lines--; /* got a full line */
  628. !       }
  629. !       while (ok && lines && whitespace(buf2[0]) && len_buf >= 2) {
  630. !         if (buf[len_buf-1] == '\n') {
  631. !           len_buf--;
  632. !           buf[len_buf] = '\0';
  633. !         }
  634. !         strncat(buf, buf2, (SLEN-len_buf-1));
  635.           ok = (int) (fgets(buf2, SLEN, mailfile) != NULL);
  636. !         if (ok) {
  637. !           len_buf2 = strlen(buf2);
  638. !           if(buf2[len_buf2-1] == '\n') lines--; /* got a full line */
  639.           }
  640. +       }
  641.   
  642.   /* At this point, "buf" contains the unfolded header line, while "buf2" contains
  643.      the next single line of text from the mail file */
  644. ***************
  645. *** 312,318 ****
  646.   
  647.   #endif
  648.   
  649. !       else if (strlen(buf) < 2)    /* done with header */
  650.               lines = 0; /* let's get outta here!  We're done!!! */
  651.       }
  652.   
  653. --- 330,336 ----
  654.   
  655.   #endif
  656.   
  657. !       else if (len_buf < 2)    /* done with header */
  658.               lines = 0; /* let's get outta here!  We're done!!! */
  659.       }
  660.   
  661.  
  662. Index: utils/arepdaem.c
  663. Prereq: 4.1.1.3
  664. *** ../elm2.3/utils/arepdaem.c    Sun Oct  7 21:55:00 1990
  665. --- utils/arepdaem.c    Wed Dec  5 15:13:06 1990
  666. ***************
  667. *** 1,8 ****
  668.   
  669. ! static char rcsid[] = "@(#)$Id: arepdaem.c,v 4.1.1.3 90/10/07 20:39:31 syd Exp $";
  670.   
  671.   /*******************************************************************************
  672. !  *  The Elm Mail System  -  $Revision: 4.1.1.3 $   $State: Exp $
  673.    *
  674.    *             Copyright (c) 1986, 1987 Dave Taylor
  675.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  676. --- 1,8 ----
  677.   
  678. ! static char rcsid[] = "@(#)$Id: arepdaem.c,v 4.1.1.4 90/12/05 15:12:52 syd Exp $";
  679.   
  680.   /*******************************************************************************
  681. !  *  The Elm Mail System  -  $Revision: 4.1.1.4 $   $State: Exp $
  682.    *
  683.    *             Copyright (c) 1986, 1987 Dave Taylor
  684.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  685. ***************
  686. *** 14,19 ****
  687. --- 14,23 ----
  688.    *
  689.    *******************************************************************************
  690.    * $Log:    arepdaem.c,v $
  691. +  * Revision 4.1.1.4  90/12/05  15:12:52  syd
  692. +  * Fix lock file flags, wrong mode flag used
  693. +  * From: Syd via Terry Furman
  694. +  * 
  695.    * Revision 4.1.1.3  90/10/07  20:39:31  syd
  696.    * Added missing parens to an imbedded assignment.
  697.    * From: Phil Hochstetler <phil@sequent.com>
  698. ***************
  699. *** 636,642 ****
  700.         return(0);    /* file already exists */
  701.   #endif
  702.   
  703. !     if ((create_fd=creat(lock_name, O_RDONLY)) == -1)
  704.         return(0);    /* can't create file!!   */
  705.   
  706.       sprintf(pid_buffer,"%d\n", getpid() );        /* write the current pid to the file */
  707. --- 640,646 ----
  708.         return(0);    /* file already exists */
  709.   #endif
  710.   
  711. !     if ((create_fd=creat(lock_name, 0444)) == -1)
  712.         return(0);    /* can't create file!!   */
  713.   
  714.       sprintf(pid_buffer,"%d\n", getpid() );        /* write the current pid to the file */
  715.  
  716. Index: utils/newmail.c
  717. Prereq: 4.1.1.2
  718. *** ../elm2.3/utils/newmail.c    Sun Oct  7 21:55:01 1990
  719. --- utils/newmail.c    Wed Dec  5 15:05:57 1990
  720. ***************
  721. *** 1,8 ****
  722.   
  723. ! static char rcsid[] = "@(#)$Id: newmail.c,v 4.1.1.2 90/10/07 21:10:35 syd Exp $";
  724.   
  725.   /*******************************************************************************
  726. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  727.    *
  728.    *             Copyright (c) 1986, 1987 Dave Taylor
  729.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  730. --- 1,8 ----
  731.   
  732. ! static char rcsid[] = "@(#)$Id: newmail.c,v 4.1.1.3 90/12/05 15:05:39 syd Exp $";
  733.   
  734.   /*******************************************************************************
  735. !  *  The Elm Mail System  -  $Revision: 4.1.1.3 $   $State: Exp $
  736.    *
  737.    *             Copyright (c) 1986, 1987 Dave Taylor
  738.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  739. ***************
  740. *** 14,19 ****
  741. --- 14,23 ----
  742.    *
  743.    *******************************************************************************
  744.    * $Log:    newmail.c,v $
  745. +  * Revision 4.1.1.3  90/12/05  15:05:39  syd
  746. +  * Remove unused opterr variable, some getopts dont define it
  747. +  * From: Syd via Peter King
  748. +  * 
  749.    * Revision 4.1.1.2  90/10/07  21:10:35  syd
  750.    * newmail did not correctly present sender name if the source
  751.    * of the mail is local from the system.
  752. ***************
  753. *** 128,134 ****
  754.   char *argv[];
  755.   {
  756.       extern char *optarg;
  757. !     extern int   optind, opterr;
  758.       char *ptr;
  759.       int c, i, done;
  760.       long lastsize,
  761. --- 132,138 ----
  762.   char *argv[];
  763.   {
  764.       extern char *optarg;
  765. !     extern int   optind;
  766.       char *ptr;
  767.       int c, i, done;
  768.       long lastsize,
  769. ***************
  770. *** 147,153 ****
  771.   #endif /* PIDCHECK */            /* Then exit the program if PIDCHECK  */
  772.   
  773.       interval_time = DEFAULT_INTERVAL;
  774. -     opterr = 0;
  775.   
  776.       /** let's see if the first character of the basename of the
  777.           command invoked is a 'w' (e.g. have we been called as
  778. --- 151,156 ----
  779.  
  780. exit 0 # Just in case...
  781.