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

  1. Subject:  v24i031:  Elm mail system, release 2.3, patches, Part07/11
  2. Newsgroups: comp.sources.unix
  3. Approved: rsalz@uunet.UU.NET
  4. X-Checksum-Snefru: 0c08e644 b538a742 0ff01938 6f2f2de4
  5.  
  6. Submitted-by: Syd Weinstein <syd@DSI.COM>
  7. Posting-number: Volume 24, Issue 31
  8. Archive-name: elm2.3patches/part07
  9.  
  10. Subject: elm 2.3 Patch #7
  11. Summary: This is an official patch for elm 2.3 system.  Please apply it.
  12. Priority: LOW
  13.  
  14.  
  15. Fixes when newmail detects that the mail folder has grown in size it prints a newline, even
  16. if there were no new subjects in the folder.
  17. From: Uwe Doering <gemini%geminix.mbx.sub.org@RELAY.CS.NET>
  18.  
  19. fix the bounce problem reported earlier when using MMDF submit as the MTA.
  20. From: Jim Clausing <jac%brahms.tinton.ccur.com@RELAY.CS.NET>
  21.  
  22. fix where x.400 type mailers cause Elm to tag all messages as urgent.
  23. From: ldk@udev.cdc.com (ld kelley x-6857)
  24.  
  25. allow non-elm mailers to correctly parse filter's folders.
  26. From: sane!genmri!doug@crdgw1.ge.com (Doug Becker)
  27.  
  28. Added missing parens to an imbedded assignment.
  29. From: Phil Hochstetler <phil@sequent.com>
  30.  
  31. Add ifndef X-Mailer to fastmail
  32. From: Syd
  33.  
  34. Fix EB29 - alternate editor being used all the time
  35. From: Michael Clay
  36.  
  37. newmail did not correctly present sender name if the source
  38. of the mail is local from the system.
  39. From: JT McDuffie <guardian!jt@Sun.COM>
  40.  
  41. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your elm source
  42.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  43.     If you don't have the patch program, apply the following by hand,
  44.     or get patch (version 2.0, latest patchlevel).
  45.  
  46.     After patching:
  47.         sh Configure -d
  48.         make
  49.         make install
  50.  
  51.     If patch indicates that patchlevel is the wrong version, you may need
  52.     to apply one or more previous patches, or the patch may already
  53.     have been applied.  See the patchlevel.h file to find out what has or
  54.     has not been applied.  In any event, don't continue with the patch.
  55.  
  56.     If you are missing previous patches they can be obtained from our:
  57.     archive server.
  58.  
  59.     Syd Weinstein
  60.     elm@DSI.COM
  61.  
  62.     The patches are available from the dsinc archive server
  63.     Send the following message to archive-server@DSI.COM for
  64.     a list of available patches:
  65.  
  66.     Subject: patch list
  67.     send index elm
  68.  
  69.  
  70. Index: hdrs/patchlevel.h
  71. Prereq: 6
  72. *** ../elm2.3/hdrs/patchlevel.h    Wed Aug 15 23:51:24 1990
  73. --- hdrs/patchlevel.h    Sun Oct  7 21:24:53 1990
  74. ***************
  75. *** 1 ****
  76. ! #define PATCHLEVEL 6
  77. --- 1 ----
  78. ! #define PATCHLEVEL 7
  79.  
  80. Index: hdrs/sysdefs.SH
  81. Prereq: 4.1.1.1
  82. *** ../elm2.3/hdrs/sysdefs.SH    Sat Jun  9 23:48:19 1990
  83. --- hdrs/sysdefs.SH    Sun Oct  7 19:48:18 1990
  84. ***************
  85. *** 12,20 ****
  86.   esac
  87.   echo "Extracting hdrs/sysdefs.h (with variable substitutions)"
  88.   sed <<!GROK!THIS! >sysdefs.h -e 's!^#undef!/\*#undef!'
  89. ! /* $Id: sysdefs.SH,v 4.1.1.1 90/06/09 22:28:42 syd Exp $ */
  90.   /*******************************************************************************
  91. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  92.    *
  93.    *             Copyright (c) 1986, 1987 Dave Taylor
  94.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  95. --- 12,20 ----
  96.   esac
  97.   echo "Extracting hdrs/sysdefs.h (with variable substitutions)"
  98.   sed <<!GROK!THIS! >sysdefs.h -e 's!^#undef!/\*#undef!'
  99. ! /* $Id: sysdefs.SH,v 4.1.1.2 90/10/07 19:48:17 syd Exp $ */
  100.   /*******************************************************************************
  101. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  102.    *
  103.    *             Copyright (c) 1986, 1987 Dave Taylor
  104.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  105. ***************
  106. *** 26,31 ****
  107. --- 26,35 ----
  108.    *
  109.    *******************************************************************************
  110.    * $Log:    sysdefs.SH,v $
  111. +  * Revision 4.1.1.2  90/10/07  19:48:17  syd
  112. +  * fix the bounce problem reported earlier when using MMDF submit as the MTA.
  113. +  * From: Jim Clausing <jac%brahms.tinton.ccur.com@RELAY.CS.NET>
  114. +  * 
  115.    * Revision 4.1.1.1  90/06/09  22:28:42  syd
  116.    * Allow use of submit with mmdf instead of sendmail stub
  117.    * From: martin <martin@hppcmart.grenoble.hp.com>
  118. ***************
  119. *** 105,110 ****
  120. --- 109,115 ----
  121.   #define smflagsv          "-oi -oem -v"   /* Verbose voyuer mode */
  122.   #define submitmail         "$submit"
  123.   #define submitflags     "-mlrnxto,cc*"
  124. + #define submitflagss    "-mlrn"
  125.   #define mailer        "$mailer"
  126.   
  127.   #define mailx        "$mailx"
  128.  
  129. Index: Configure
  130. Prereq: 4.1.1.9
  131. *** ../elm2.3/Configure    Wed Aug 15 23:51:26 1990
  132. --- Configure    Sun Oct  7 21:32:02 1990
  133. ***************
  134. *** 8,14 ****
  135.   # and edit it to reflect your system.  Some packages may include samples
  136.   # of config.h for certain machines, so you might look for one of those.)
  137.   #
  138. ! # $Header: /files/home/users/syd/elm.rel/RCS/Configure,v 4.1.1.9 90/08/15 22:42:11 syd Exp $
  139.   #
  140.   # Yes, you may rip this off to use in other distribution packages.
  141.   # (Note: this Configure script was generated automatically.  Rather than
  142. --- 8,14 ----
  143.   # and edit it to reflect your system.  Some packages may include samples
  144.   # of config.h for certain machines, so you might look for one of those.)
  145.   #
  146. ! # $Header: /files/home/users/syd/elm.rel/RCS/Configure,v 4.1.1.10 90/10/07 21:31:35 syd Exp $
  147.   #
  148.   # Yes, you may rip this off to use in other distribution packages.
  149.   # (Note: this Configure script was generated automatically.  Rather than
  150. ***************
  151. *** 800,806 ****
  152.   
  153.   The Elm manuals are set up for troff.  If you only have nroff, it can
  154.   be used, but the manuals will not be as readable.  If you use an alternate
  155. ! processor for troff/nroff documents it can be specified here.
  156.   
  157.   EOM
  158.   cont=true
  159. --- 800,810 ----
  160.   
  161.   The Elm manuals are set up for troff.  If you only have nroff, it can
  162.   be used, but the manuals will not be as readable.  If you use an alternate
  163. ! processor for troff/nroff documents it can be specified here.  Elm expects
  164. ! the text processor to write to standard out.   Some old troff programs require
  165. ! the -t flag to send the output to standard out.  If yours does, use the -t flag
  166. ! as part of the executable name and ignore the not found error message,
  167. ! as in: troff -t
  168.   
  169.   EOM
  170.   cont=true
  171. ***************
  172. *** 3250,3256 ****
  173.   elif $contains 'void.*signal' $$.tmp >/dev/null 2>&1 ; then
  174.       echo "You have void (*signal())() instead of int."
  175.       d_voidsig="$define"
  176. ! elif $contains 'extern[     ]*signal' $$.tmp >/dev/null 2>&1 ; then
  177.       echo "You have int (*signal())() instead of void."
  178.       d_voidsig="$undef"
  179.   elif $test -n "$d_voidsig"; then
  180. --- 3254,3260 ----
  181.   elif $contains 'void.*signal' $$.tmp >/dev/null 2>&1 ; then
  182.       echo "You have void (*signal())() instead of int."
  183.       d_voidsig="$define"
  184. ! elif $contains 'extern[     ]*[(\*]*signal' $$.tmp >/dev/null 2>&1 ; then
  185.       echo "You have int (*signal())() instead of void."
  186.       d_voidsig="$undef"
  187.   elif $test -n "$d_voidsig"; then
  188.  
  189. Index: filter/actions.c
  190. Prereq: 4.1.1.1
  191. *** ../elm2.3/filter/actions.c    Tue Jun  5 22:02:34 1990
  192. --- filter/actions.c    Sun Oct  7 20:36:42 1990
  193. ***************
  194. *** 1,8 ****
  195.   
  196. ! static char rcsid[] ="@(#)$Id: actions.c,v 4.1.1.1 90/06/05 20:28:51 syd Exp $";
  197.   
  198.   /*******************************************************************************
  199. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  200.    *
  201.    *             Copyright (c) 1986, 1987 Dave Taylor
  202.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  203. --- 1,8 ----
  204.   
  205. ! static char rcsid[] ="@(#)$Id: actions.c,v 4.1.1.2 90/10/07 20:36:41 syd Exp $";
  206.   
  207.   /*******************************************************************************
  208. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  209.    *
  210.    *             Copyright (c) 1986, 1987 Dave Taylor
  211.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  212. ***************
  213. *** 14,19 ****
  214. --- 14,23 ----
  215.    *
  216.    *******************************************************************************
  217.    * $Log:    actions.c,v $
  218. +  * Revision 4.1.1.2  90/10/07  20:36:41  syd
  219. +  * allow non-elm mailers to correctly parse filter's folders.
  220. +  * From: sane!genmri!doug@crdgw1.ge.com (Doug Becker)
  221. +  * 
  222.    * Revision 4.1.1.1  90/06/05  20:28:51  syd
  223.    * The open system call in actions.c for EMERGENCY_MAILBOX and EMER_MBOX
  224.    * were tested with the inequality >= 0 exactly backwards.
  225. ***************
  226. *** 194,200 ****
  227.   
  228.         while (fgets(buffer, sizeof(buffer), tempfd) != NULL)
  229.           fputs(buffer, fd);
  230. !     
  231.         fclose(fd);
  232.         fclose(tempfd);
  233.       }
  234. --- 198,211 ----
  235.   
  236.         while (fgets(buffer, sizeof(buffer), tempfd) != NULL)
  237.           fputs(buffer, fd);
  238. !       /*
  239. !        * Add two newlines, to ensure that other mailers (which, unlike
  240. !        * elm, may only look for \n\nFrom_ as the start-of-message
  241. !        * indicator).
  242. !        */
  243. !       fprintf(fd, "%s", "\n\n");
  244.         fclose(fd);
  245.         fclose(tempfd);
  246.       }
  247.  
  248. Index: src/addr_util.c
  249. Prereq: 4.1
  250. *** ../elm2.3/src/addr_util.c    Sat Apr 28 22:42:24 1990
  251. --- src/addr_util.c    Sun Oct  7 20:45:09 1990
  252. ***************
  253. *** 1,8 ****
  254.   
  255. ! static char rcsid[] = "@(#)$Id: addr_util.c,v 4.1 90/04/28 22:42:21 syd Exp $";
  256.   
  257.   /*******************************************************************************
  258. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  259.    *
  260.    *             Copyright (c) 1986, 1987 Dave Taylor
  261.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  262. --- 1,8 ----
  263.   
  264. ! static char rcsid[] = "@(#)$Id: addr_util.c,v 4.1.1.1 90/10/07 20:44:56 syd Exp $";
  265.   
  266.   /*******************************************************************************
  267. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  268.    *
  269.    *             Copyright (c) 1986, 1987 Dave Taylor
  270.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  271. ***************
  272. *** 14,19 ****
  273. --- 14,23 ----
  274.    *
  275.    *******************************************************************************
  276.    * $Log:    addr_util.c,v $
  277. +  * Revision 4.1.1.1  90/10/07  20:44:56  syd
  278. +  * Make time to seconds
  279. +  * From: rhg@cpscom
  280. +  * 
  281.    * Revision 4.1  90/04/28  22:42:21  syd
  282.    * checkin of Elm 2.3 as of Release PL0
  283.    * 
  284. ***************
  285. *** 604,610 ****
  286.           gmttime += mday - 1;        /* and now to the day */
  287.           gmttime *= 24 * 60;            /* convert to minutes */
  288.           gmttime += minutes;
  289. !         rec_ptr->time_sent = gmttime * 60;    /* now unix seconds since 1/1/70 00:00 GMT */
  290.   
  291.       return(rec_ptr->year[0] != '\0');
  292.   }
  293. --- 608,614 ----
  294.           gmttime += mday - 1;        /* and now to the day */
  295.           gmttime *= 24 * 60;            /* convert to minutes */
  296.           gmttime += minutes;
  297. !         rec_ptr->time_sent = gmttime * 60 + seconds;    /* now unix seconds since 1/1/70 00:00 GMT */
  298.   
  299.       return(rec_ptr->year[0] != '\0');
  300.   }
  301.  
  302. Index: src/edit.c
  303. Prereq: 4.1.1.1
  304. *** ../elm2.3/src/edit.c    Thu Jul 12 23:35:20 1990
  305. --- src/edit.c    Sun Oct  7 21:03:03 1990
  306. ***************
  307. *** 1,8 ****
  308.   
  309. ! static char rcsid[] = "@(#)$Id: edit.c,v 4.1.1.1 90/07/12 22:43:05 syd Exp $";
  310.   
  311.   /*******************************************************************************
  312. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  313.    *
  314.    *             Copyright (c) 1986, 1987 Dave Taylor
  315.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  316. --- 1,8 ----
  317.   
  318. ! static char rcsid[] = "@(#)$Id: edit.c,v 4.1.1.2 90/10/07 21:02:42 syd Exp $";
  319.   
  320.   /*******************************************************************************
  321. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  322.    *
  323.    *             Copyright (c) 1986, 1987 Dave Taylor
  324.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  325. ***************
  326. *** 14,19 ****
  327. --- 14,23 ----
  328.    *
  329.    *******************************************************************************
  330.    * $Log:    edit.c,v $
  331. +  * Revision 4.1.1.2  90/10/07  21:02:42  syd
  332. +  * Fix EB29 using alternate editor all the time
  333. +  * From: Michael Clay
  334. +  * 
  335.    * Revision 4.1.1.1  90/07/12  22:43:05  syd
  336.    * Make it aware of the fact that we loose the cursor position on
  337.    * some system calls, so set it far enough off an absolute move will
  338. ***************
  339. *** 72,78 ****
  340.       PutLine0(LINES-1,0,"Invoking editor...");
  341.   
  342.       strcpy(edited_file, (folder_type == NON_SPOOL ? cur_folder : cur_tempfolder));
  343. !     sprintf(buffer, "%s %s", alternative_editor, edited_file);
  344.   
  345.       Raw(OFF);
  346.   
  347. --- 76,85 ----
  348.       PutLine0(LINES-1,0,"Invoking editor...");
  349.   
  350.       strcpy(edited_file, (folder_type == NON_SPOOL ? cur_folder : cur_tempfolder));
  351. !     if (strcmp(editor, "builtin") == 0 || strcmp(editor, "none") == 0)
  352. !       sprintf(buffer, "%s %s", alternative_editor, edited_file);
  353. !     else
  354. !       sprintf(buffer, "%s %s", editor, edited_file);
  355.   
  356.       Raw(OFF);
  357.   
  358.  
  359. Index: src/file.c
  360. Prereq: 4.1
  361. *** ../elm2.3/src/file.c    Sat Apr 28 22:43:04 1990
  362. --- src/file.c    Sun Oct  7 19:48:07 1990
  363. ***************
  364. *** 1,8 ****
  365.   
  366. ! static char rcsid[] = "@(#)$Id: file.c,v 4.1 90/04/28 22:43:02 syd Exp $";
  367.   
  368.   /*******************************************************************************
  369. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  370.    *
  371.    *             Copyright (c) 1986, 1987 Dave Taylor
  372.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  373. --- 1,8 ----
  374.   
  375. ! static char rcsid[] = "@(#)$Id: file.c,v 4.1.1.1 90/10/07 19:48:05 syd Exp $";
  376.   
  377.   /*******************************************************************************
  378. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  379.    *
  380.    *             Copyright (c) 1986, 1987 Dave Taylor
  381.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  382. ***************
  383. *** 14,19 ****
  384. --- 14,23 ----
  385.    *
  386.    *******************************************************************************
  387.    * $Log:    file.c,v $
  388. +  * Revision 4.1.1.1  90/10/07  19:48:05  syd
  389. +  * fix the bounce problem reported earlier when using MMDF submit as the MTA.
  390. +  * From: Jim Clausing <jac%brahms.tinton.ccur.com@RELAY.CS.NET>
  391. +  * 
  392.    * Revision 4.1  90/04/28  22:43:02  syd
  393.    * checkin of Elm 2.3 as of Release PL0
  394.    * 
  395. ***************
  396. *** 221,227 ****
  397.        */
  398.       if(is_new = ison(headers[number]->status, NEW))
  399.         clearit(headers[number]->status, NEW);
  400. !     copy_message("", fd, FALSE, FALSE, TRUE, FALSE);
  401.       if(is_new)
  402.         setit(headers[number]->status, NEW);
  403.       current = save_current;
  404. --- 225,231 ----
  405.        */
  406.       if(is_new = ison(headers[number]->status, NEW))
  407.         clearit(headers[number]->status, NEW);
  408. !     copy_message("", fd, FALSE, FALSE, TRUE, FALSE, FALSE);
  409.       if(is_new)
  410.         setit(headers[number]->status, NEW);
  411.       current = save_current;
  412.  
  413. Index: src/fileio.c
  414. Prereq: 4.1
  415. *** ../elm2.3/src/fileio.c    Sat Apr 28 22:43:07 1990
  416. --- src/fileio.c    Sun Oct  7 19:48:09 1990
  417. ***************
  418. *** 1,8 ****
  419.   
  420. ! static char rcsid[] = "@(#)$Id: fileio.c,v 4.1 90/04/28 22:43:06 syd Exp $";
  421.   
  422.   /*******************************************************************************
  423. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  424.    *
  425.    *             Copyright (c) 1986, 1987 Dave Taylor
  426.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  427. --- 1,8 ----
  428.   
  429. ! static char rcsid[] = "@(#)$Id: fileio.c,v 4.1.1.1 90/10/07 19:48:08 syd Exp $";
  430.   
  431.   /*******************************************************************************
  432. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  433.    *
  434.    *             Copyright (c) 1986, 1987 Dave Taylor
  435.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  436. ***************
  437. *** 14,19 ****
  438. --- 14,23 ----
  439.    *
  440.    *******************************************************************************
  441.    * $Log:    fileio.c,v $
  442. +  * Revision 4.1.1.1  90/10/07  19:48:08  syd
  443. +  * fix the bounce problem reported earlier when using MMDF submit as the MTA.
  444. +  * From: Jim Clausing <jac%brahms.tinton.ccur.com@RELAY.CS.NET>
  445. +  * 
  446.    * Revision 4.1  90/04/28  22:43:06  syd
  447.    * checkin of Elm 2.3 as of Release PL0
  448.    * 
  449. ***************
  450. *** 38,47 ****
  451.   
  452.   char *error_name(), *index();
  453.   
  454. ! copy_message(prefix, dest_file, remove_header, remote, update_status, mmdf_head)
  455.   char *prefix;
  456.   FILE *dest_file;
  457. ! int  remove_header, remote, update_status, mmdf_head;
  458.   {
  459.       /** Copy current message to destination file, with optional 'prefix' 
  460.           as the prefix for each line.  If remove_header is true, it will 
  461. --- 42,57 ----
  462.   
  463.   char *error_name(), *index();
  464.   
  465. ! copy_message(prefix, 
  466. !          dest_file, 
  467. !          remove_header, 
  468. !          remote, 
  469. !          update_status, 
  470. !          mmdf_head,
  471. !          remail)
  472.   char *prefix;
  473.   FILE *dest_file;
  474. ! int  remove_header, remote, update_status, mmdf_head, remail;
  475.   {
  476.       /** Copy current message to destination file, with optional 'prefix' 
  477.           as the prefix for each line.  If remove_header is true, it will 
  478. ***************
  479. *** 63,68 ****
  480. --- 73,79 ----
  481.       register int  lines, front_line, next_front,
  482.             in_header = 1, first_line = TRUE, ignoring = FALSE;
  483.       int    end_header = 0;
  484. +     int sender_added = 0;
  485.   
  486.         /** get to the first line of the message desired **/
  487.   
  488. ***************
  489. *** 118,123 ****
  490. --- 129,141 ----
  491.       if (strlen(buffer) < 2) {
  492.         in_header = 0;
  493.         end_header = -1;
  494. +       if (remail && !sender_added) {
  495. +         if (fprintf(dest_file, "%sSender: %s\n", prefix, username) == EOF) {
  496. +           Write_to_screen("\n\rWrite in copy_message failed\n\r", 0);
  497. +           dprint(1, (debugfile,"\n*** Fprint failed on copy_message;\n"));
  498. +           rm_temps_exit();
  499. +         }
  500. +       }
  501.       }
  502.       else if (!isspace(*buffer)
  503.             && index(buffer, ':') == NULL
  504. ***************
  505. *** 127,133 ****
  506. --- 145,165 ----
  507.           ) {
  508.         in_header = 0;
  509.         end_header = 1;
  510. +       if (remail && !sender_added) {
  511. +         if (fprintf(dest_file, "%sSender: %s\n", prefix, username) == EOF) {
  512. +           Write_to_screen("\n\rWrite in copy_message failed\n\r", 0);
  513. +           dprint(1, (debugfile,"\n*** Fprint failed on copy_message;\n"));
  514. +           rm_temps_exit();
  515. +         }
  516. +       }
  517.       } else if (in_header && remote && first_word(buffer, "Sender:")) {
  518. +       if (remail)
  519. +         if (fprintf(dest_file, "%sSender: %s\n", prefix, username) == EOF) {
  520. +           Write_to_screen("\n\rWrite in copy_message failed\n\r", 0);
  521. +           dprint(1, (debugfile,"\n*** Fprint failed on copy_message;\n"));
  522. +           rm_temps_exit();
  523. +         }
  524. +       sender_added = TRUE;
  525.         continue;
  526.       }
  527.       if (end_header) {
  528. ***************
  529. *** 231,240 ****
  530.             first_word(buffer, "Return-Path:"))
  531.             ignoring = TRUE;
  532.         else
  533. !         if (fprintf(dest_file, "%s%s", prefix, buffer) == EOF) {
  534. !               dprint(1, (debugfile,"\n*** Fprint failed on copy_message;\n"));
  535. !           rm_temps_exit();
  536.             }
  537.       }
  538.         }
  539.         else { /* not in header */
  540. --- 263,279 ----
  541.             first_word(buffer, "Return-Path:"))
  542.             ignoring = TRUE;
  543.         else
  544. !         if (remail && first_word(buffer, "To:")) {
  545. !           if (fprintf(dest_file, "%sOrig-%s", prefix, buffer) == EOF) {
  546. !                 dprint(1, (debugfile,"\n*** Fprint failed on copy_message;\n"));
  547. !             rm_temps_exit();
  548.             }
  549. +         } else {
  550. +           if (fprintf(dest_file, "%s%s", prefix, buffer) == EOF) {
  551. +                 dprint(1, (debugfile,"\n*** Fprint failed on copy_message;\n"));
  552. +             rm_temps_exit();
  553. +           }
  554. +         }
  555.       }
  556.         }
  557.         else { /* not in header */
  558.  
  559. Index: src/mailmsg2.c
  560. Prereq: 4.1.1.7
  561. *** ../elm2.3/src/mailmsg2.c    Wed Aug 15 23:51:36 1990
  562. --- src/mailmsg2.c    Sun Oct  7 19:48:14 1990
  563. ***************
  564. *** 1,8 ****
  565.   
  566. ! static char rcsid[] = "@(#)$Id: mailmsg2.c,v 4.1.1.7 90/08/15 22:02:36 syd Exp $";
  567.   
  568.   /*******************************************************************************
  569. !  *  The Elm Mail System  -  $Revision: 4.1.1.7 $   $State: Exp $
  570.    *
  571.    *             Copyright (c) 1986, 1987 Dave Taylor
  572.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  573. --- 1,8 ----
  574.   
  575. ! static char rcsid[] = "@(#)$Id: mailmsg2.c,v 4.1.1.8 90/10/07 19:48:10 syd Exp $";
  576.   
  577.   /*******************************************************************************
  578. !  *  The Elm Mail System  -  $Revision: 4.1.1.8 $   $State: Exp $
  579.    *
  580.    *             Copyright (c) 1986, 1987 Dave Taylor
  581.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  582. ***************
  583. *** 14,19 ****
  584. --- 14,23 ----
  585.    *
  586.    *******************************************************************************
  587.    * $Log:    mailmsg2.c,v $
  588. +  * Revision 4.1.1.8  90/10/07  19:48:10  syd
  589. +  * fix the bounce problem reported earlier when using MMDF submit as the MTA.
  590. +  * From: Jim Clausing <jac%brahms.tinton.ccur.com@RELAY.CS.NET>
  591. +  * 
  592.    * Revision 4.1.1.7  90/08/15  22:02:36  syd
  593.    * deal with several of the problems that have come up trying to use the MMDF
  594.    * submit program directly rather than going through the sendmail stub
  595. ***************
  596. *** 180,190 ****
  597.           fputs("Forwarded message:\n", reply);
  598.         }
  599.         if (edit_message) {
  600. !         copy_message(prefixchars, reply, noheader, FALSE, FALSE, TRUE);
  601.           already_has_text = TRUE;    /* we just added it, right? */
  602.         }
  603.         else
  604. !         copy_message("", reply, noheader, FALSE, FALSE, TRUE);
  605.       }
  606.   
  607.           /* append signature now if we are going to use an external editor */
  608. --- 184,194 ----
  609.           fputs("Forwarded message:\n", reply);
  610.         }
  611.         if (edit_message) {
  612. !         copy_message(prefixchars, reply, noheader,FALSE,FALSE,TRUE,FALSE);
  613.           already_has_text = TRUE;    /* we just added it, right? */
  614.         }
  615.         else
  616. !         copy_message("", reply, noheader, FALSE, FALSE, TRUE, FALSE);
  617.       }
  618.   
  619.           /* append signature now if we are going to use an external editor */
  620.  
  621. Index: src/newmbox.c
  622. Prereq: 4.1.1.2
  623. *** ../elm2.3/src/newmbox.c    Tue Jun 26 21:09:10 1990
  624. --- src/newmbox.c    Sun Oct  7 19:54:59 1990
  625. ***************
  626. *** 1,8 ****
  627.   
  628. ! static char rcsid[] = "@(#)$Id: newmbox.c,v 4.1.1.2 90/06/26 20:18:06 syd Exp $";
  629.   
  630.   /*******************************************************************************
  631. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  632.    *
  633.    *             Copyright (c) 1988, USENET Community Trust
  634.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  635. --- 1,8 ----
  636.   
  637. ! static char rcsid[] = "@(#)$Id: newmbox.c,v 4.1.1.3 90/10/07 19:54:56 syd Exp $";
  638.   
  639.   /*******************************************************************************
  640. !  *  The Elm Mail System  -  $Revision: 4.1.1.3 $   $State: Exp $
  641.    *
  642.    *             Copyright (c) 1988, USENET Community Trust
  643.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  644. ***************
  645. *** 14,19 ****
  646. --- 14,23 ----
  647.    *
  648.    *******************************************************************************
  649.    * $Log:    newmbox.c,v $
  650. +  * Revision 4.1.1.3  90/10/07  19:54:56  syd
  651. +  * fix where x.400 type mailers cause Elm to tag all messages as urgent.
  652. +  * From: ldk@udev.cdc.com (ld kelley x-6857)
  653. +  * 
  654.    * Revision 4.1.1.2  90/06/26  20:18:06  syd
  655.    * Fix double word
  656.    * From: Peter Kendell <pete@tcom.stc.co.uk>
  657. ***************
  658. *** 607,614 ****
  659.   
  660.           /** some status things about the message... **/
  661.   
  662. !         else if (first_word(buffer, "Priority:") || 
  663. !              first_word(buffer, "Importance: 2"))
  664.             current_header->status |= URGENT;
  665.           else if (first_word(buffer, "Sensitivity: 2"))
  666.             current_header->status |= PRIVATE;
  667. --- 611,620 ----
  668.   
  669.           /** some status things about the message... **/
  670.   
  671. !         else if ((first_word(buffer, "Priority:") ||
  672. !              first_word(buffer, "Importance: 2")) &&
  673. !            !(first_word(buffer, "Priority: normal") ||
  674. !              first_word(buffer, "Priority: non-urgent")))
  675.             current_header->status |= URGENT;
  676.           else if (first_word(buffer, "Sensitivity: 2"))
  677.             current_header->status |= PRIVATE;
  678.  
  679. Index: src/remail.c
  680. Prereq: 4.1
  681. *** ../elm2.3/src/remail.c    Sat Apr 28 22:43:51 1990
  682. --- src/remail.c    Sun Oct  7 19:48:16 1990
  683. ***************
  684. *** 1,8 ****
  685.   
  686. ! static char rcsid[] = "@(#)$Id: remail.c,v 4.1 90/04/28 22:43:50 syd Exp $";
  687.   
  688.   /*******************************************************************************
  689. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  690.    *
  691.    *             Copyright (c) 1986, 1987 Dave Taylor
  692.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  693. --- 1,8 ----
  694.   
  695. ! static char rcsid[] = "@(#)$Id: remail.c,v 4.1.1.1 90/10/07 19:48:15 syd Exp $";
  696.   
  697.   /*******************************************************************************
  698. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  699.    *
  700.    *             Copyright (c) 1986, 1987 Dave Taylor
  701.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  702. ***************
  703. *** 14,19 ****
  704. --- 14,23 ----
  705.    *
  706.    *******************************************************************************
  707.    * $Log:    remail.c,v $
  708. +  * Revision 4.1.1.1  90/10/07  19:48:15  syd
  709. +  * fix the bounce problem reported earlier when using MMDF submit as the MTA.
  710. +  * From: Jim Clausing <jac%brahms.tinton.ccur.com@RELAY.CS.NET>
  711. +  * 
  712.    * Revision 4.1  90/04/28  22:43:50  syd
  713.    * checkin of Elm 2.3 as of Release PL0
  714.    * 
  715. ***************
  716. *** 42,47 ****
  717. --- 46,52 ----
  718.       FILE *mailfd;
  719.       char entered[VERY_LONG_STRING], expanded[VERY_LONG_STRING];
  720.       char *filename, buffer[VERY_LONG_STRING], ch;
  721. +     char mailerflags[NLEN];
  722.       extern char *tempnam();
  723.   
  724.       entered[0] = '\0';
  725. ***************
  726. *** 75,82 ****
  727.   
  728.       chown (filename, userid, groupid);
  729.   
  730. !     copy_message("", mailfd, FALSE, TRUE, FALSE, TRUE);  
  731.   
  732.       fclose(mailfd);
  733.   
  734.       /** Got the messsage, now let's ensure the person really wants to 
  735. --- 80,92 ----
  736.   
  737.       chown (filename, userid, groupid);
  738.   
  739. ! #ifdef MMDF
  740. !     if (strcmp(submitmail, mailer) == 0)
  741. !       do_mmdf_addresses(mailfd, strip_parens(strip_commas(expanded)));
  742. ! #endif /* MMDF */
  743.   
  744. +     copy_message("", mailfd, FALSE, TRUE, FALSE, TRUE, TRUE);  
  745.       fclose(mailfd);
  746.   
  747.       /** Got the messsage, now let's ensure the person really wants to 
  748. ***************
  749. *** 98,105 ****
  750.       }
  751.       Write_to_screen("Yes.", 0);
  752.   
  753. !     sprintf(buffer,"( (%s %s ; %s %s) & ) < %s", 
  754. !           mailer, strip_parens(strip_commas(expanded)), 
  755.             remove_cmd, filename, filename);
  756.   
  757.       PutLine0(LINES,0,"Resending mail...");
  758. --- 108,128 ----
  759.       }
  760.       Write_to_screen("Yes.", 0);
  761.   
  762. !     if (strcmp(sendmail, mailer) == 0
  763. ! #ifdef SITE_HIDING
  764. !         && ! is_a_hidden_user(username))
  765. ! #else
  766. !                      )
  767. ! #endif
  768. !       strcpy(mailerflags, (sendmail_verbose ? smflagsv : smflags));
  769. !     else if (strcmp(submitmail, mailer) == 0) {
  770. !       strcpy(mailerflags, submitflagss);
  771. !       strcpy(expanded, " ");
  772. !     } else
  773. !       mailerflags[0] = '\0';
  774. !     
  775. !     sprintf(buffer,"( (%s %s %s ; %s %s) & ) < %s", 
  776. !           mailer, mailerflags, strip_parens(strip_commas(expanded)), 
  777.             remove_cmd, filename, filename);
  778.   
  779.       PutLine0(LINES,0,"Resending mail...");
  780. ***************
  781. *** 108,110 ****
  782. --- 131,151 ----
  783.   
  784.       return(1);
  785.   }
  786. + #ifdef MMDF
  787. + do_mmdf_addresses(dest_file,buffer)
  788. + FILE *dest_file;
  789. + char *buffer;
  790. + {
  791. +     char old[VERY_LONG_STRING], first[VERY_LONG_STRING], 
  792. +         rest[VERY_LONG_STRING];
  793. +     strcpy(old,buffer);
  794. +     split_word(old, first, rest);
  795. +     while (strcmp(first, "") != 0) {
  796. +       fprintf(dest_file, "%s\n", first);
  797. +       strcpy(old, rest);
  798. +       split_word(old, first, rest);
  799. +     }
  800. +     fprintf(dest_file, "\n");
  801. + }
  802. + #endif /* MMDF */
  803.  
  804. Index: utils/arepdaem.c
  805. Prereq: 4.1.1.2
  806. *** ../elm2.3/utils/arepdaem.c    Wed Aug 15 23:51:38 1990
  807. --- utils/arepdaem.c    Sun Oct  7 20:39:34 1990
  808. ***************
  809. *** 1,8 ****
  810.   
  811. ! static char rcsid[] = "@(#)$Id: arepdaem.c,v 4.1.1.2 90/08/15 22:50:14 syd Exp $";
  812.   
  813.   /*******************************************************************************
  814. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  815.    *
  816.    *             Copyright (c) 1986, 1987 Dave Taylor
  817.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  818. --- 1,8 ----
  819.   
  820. ! static char rcsid[] = "@(#)$Id: arepdaem.c,v 4.1.1.3 90/10/07 20:39:31 syd Exp $";
  821.   
  822.   /*******************************************************************************
  823. !  *  The Elm Mail System  -  $Revision: 4.1.1.3 $   $State: Exp $
  824.    *
  825.    *             Copyright (c) 1986, 1987 Dave Taylor
  826.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  827. ***************
  828. *** 14,19 ****
  829. --- 14,23 ----
  830.    *
  831.    *******************************************************************************
  832.    * $Log:    arepdaem.c,v $
  833. +  * Revision 4.1.1.3  90/10/07  20:39:31  syd
  834. +  * Added missing parens to an imbedded assignment.
  835. +  * From: Phil Hochstetler <phil@sequent.com>
  836. +  * 
  837.    * Revision 4.1.1.2  90/08/15  22:50:14  syd
  838.    * Fix last size to time call
  839.    * From: Syd
  840. ***************
  841. *** 632,638 ****
  842.         return(0);    /* file already exists */
  843.   #endif
  844.   
  845. !     if (create_fd=creat(lock_name, O_RDONLY) == -1)
  846.         return(0);    /* can't create file!!   */
  847.   
  848.       sprintf(pid_buffer,"%d\n", getpid() );        /* write the current pid to the file */
  849. --- 636,642 ----
  850.         return(0);    /* file already exists */
  851.   #endif
  852.   
  853. !     if ((create_fd=creat(lock_name, O_RDONLY)) == -1)
  854.         return(0);    /* can't create file!!   */
  855.   
  856.       sprintf(pid_buffer,"%d\n", getpid() );        /* write the current pid to the file */
  857.  
  858. Index: utils/fastmail.c
  859. Prereq: 4.1.1.1
  860. *** ../elm2.3/utils/fastmail.c    Tue Jun 26 21:09:11 1990
  861. --- utils/fastmail.c    Sun Oct  7 20:56:50 1990
  862. ***************
  863. *** 1,8 ****
  864.   
  865. ! static char rcsid[] = "@(#)$Id: fastmail.c,v 4.1.1.1 90/06/26 20:30:22 syd Exp $";
  866.   
  867.   /*******************************************************************************
  868. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  869.    *
  870.    *             Copyright (c) 1986, 1987 Dave Taylor
  871.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  872. --- 1,8 ----
  873.   
  874. ! static char rcsid[] = "@(#)$Id: fastmail.c,v 4.1.1.2 90/10/07 20:56:25 syd Exp $";
  875.   
  876.   /*******************************************************************************
  877. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  878.    *
  879.    *             Copyright (c) 1986, 1987 Dave Taylor
  880.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  881. ***************
  882. *** 14,19 ****
  883. --- 14,23 ----
  884.    *
  885.    *******************************************************************************
  886.    * $Log:    fastmail.c,v $
  887. +  * Revision 4.1.1.2  90/10/07  20:56:25  syd
  888. +  * Add ifndef NO_XHEADER to X-Mailer
  889. +  * From: syd via request of Frank Elsner
  890. +  * 
  891.    * Revision 4.1.1.1  90/06/26  20:30:22  syd
  892.    * Fix boundary check on argument count
  893.    * From: Syd
  894. ***************
  895. *** 212,219 ****
  896. --- 216,225 ----
  897.       if (strlen(cc_list) > 0)
  898.         fprintf(tempfile, "Cc: %s\n", cc_list);
  899.   
  900. + #ifndef NO_XHEADER
  901.       fprintf(tempfile, "X-Mailer: fastmail [version %s PL%d]\n",
  902.         VERSION, PATCHLEVEL);
  903. + #endif /* !NO_XHEADER */
  904.       fprintf(tempfile, "\n");
  905.   
  906.       fclose(tempfile);
  907.  
  908. Index: utils/newmail.c
  909. Prereq: 4.1
  910. *** ../elm2.3/utils/newmail.c    Sat Apr 28 22:44:50 1990
  911. --- utils/newmail.c    Sun Oct  7 21:10:37 1990
  912. ***************
  913. *** 1,8 ****
  914.   
  915. ! static char rcsid[] = "@(#)$Id: newmail.c,v 4.1 90/04/28 22:44:48 syd Exp $";
  916.   
  917.   /*******************************************************************************
  918. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  919.    *
  920.    *             Copyright (c) 1986, 1987 Dave Taylor
  921.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  922. --- 1,8 ----
  923.   
  924. ! static char rcsid[] = "@(#)$Id: newmail.c,v 4.1.1.2 90/10/07 21:10:35 syd Exp $";
  925.   
  926.   /*******************************************************************************
  927. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  928.    *
  929.    *             Copyright (c) 1986, 1987 Dave Taylor
  930.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  931. ***************
  932. *** 14,19 ****
  933. --- 14,29 ----
  934.    *
  935.    *******************************************************************************
  936.    * $Log:    newmail.c,v $
  937. +  * Revision 4.1.1.2  90/10/07  21:10:35  syd
  938. +  * newmail did not correctly present sender name if the source
  939. +  * of the mail is local from the system.
  940. +  * From: JT McDuffie <guardian!jt@Sun.COM>
  941. +  * 
  942. +  * Revision 4.1.1.1  90/10/07  19:43:44  syd
  943. +  * Fixes when newmail detects that the mail folder has grown in size it prints a newline, even
  944. +  * if there were no new subjects in the folder.
  945. +  * From: Uwe Doering <gemini%geminix.mbx.sub.org@RELAY.CS.NET>
  946. +  * 
  947.    * Revision 4.1  90/04/28  22:44:48  syd
  948.    * checkin of Elm 2.3 as of Release PL0
  949.    * 
  950. ***************
  951. *** 240,248 ****
  952.   
  953.             folders[i].filesize = newsize;
  954.   
  955. !           read_headers(i);        /* read and display new mail! */
  956. !           if (! in_window)
  957.               printf("\n\r");
  958.           }
  959.           else if (newsize != folders[i].filesize) {    /* file SHRUNK! */
  960. --- 250,257 ----
  961.   
  962.             folders[i].filesize = newsize;
  963.   
  964. !           /* read and display new mail! */
  965. !           if (read_headers(i) && ! in_window)
  966.               printf("\n\r");
  967.           }
  968.           else if (newsize != folders[i].filesize) {    /* file SHRUNK! */
  969. ***************
  970. *** 471,477 ****
  971.       who_tmp[0] = '\0';
  972.   
  973.       sscanf(buffer, "%*s %s %*s %*s %*s %*s %s",
  974. !                 who, junk);
  975.   
  976.       if (junk[0] != '\0')
  977.           strcpy(who, who_tmp);
  978. --- 480,486 ----
  979.       who_tmp[0] = '\0';
  980.   
  981.       sscanf(buffer, "%*s %s %*s %*s %*s %*s %s",
  982. !             who_tmp, junk);
  983.   
  984.       if (junk[0] != '\0')
  985.           strcpy(who, who_tmp);
  986.  
  987. Index: Patchlist
  988. *** ../elm2.3/Patchlist    Wed Aug 15 23:51:27 1990
  989. --- Patchlist    Sun Oct  7 21:34:28 1990
  990. ***************
  991. *** 1,3 ****
  992. --- 1,31 ----
  993. +     Elm 2.3 Patch 7 - Misc bug fixes
  994. +     Sun Oct  7 21:33:58 EDT 1990 (Creation date, not posting date)
  995. + Fixes when newmail detects that the mail folder has grown in size it prints a newline, even
  996. + if there were no new subjects in the folder.
  997. + From: Uwe Doering <gemini%geminix.mbx.sub.org@RELAY.CS.NET>
  998. + fix the bounce problem reported earlier when using MMDF submit as the MTA.
  999. + From: Jim Clausing <jac%brahms.tinton.ccur.com@RELAY.CS.NET>
  1000. + fix where x.400 type mailers cause Elm to tag all messages as urgent.
  1001. + From: ldk@udev.cdc.com (ld kelley x-6857)
  1002. + allow non-elm mailers to correctly parse filter's folders.
  1003. + From: sane!genmri!doug@crdgw1.ge.com (Doug Becker)
  1004. + Added missing parens to an imbedded assignment.
  1005. + From: Phil Hochstetler <phil@sequent.com>
  1006. + Add ifndef X-Mailer to fastmail
  1007. + From: Syd
  1008. + Fix EB29 - alternate editor being used all the time
  1009. + From: Michael Clay
  1010. + newmail did not correctly present sender name if the source
  1011. + of the mail is local from the system.
  1012. + From: JT McDuffie <guardian!jt@Sun.COM>
  1013.       Elm 2.3 Patch 6 - Misc bug fixes
  1014.       Wed Aug 15 22:43:46 EDT 1990 (Creation date, not posting date)
  1015.   The newly introduced function 'stricmp' has a name conflict with a libc
  1016.  
  1017. exit 0 # Just in case...
  1018.