home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume24 / elm2.3patches / part05 < prev    next >
Text File  |  1991-03-05  |  27KB  |  793 lines

  1. Subject:  v24i029:  Elm mail system, release 2.3, patches, Part05/11
  2. Newsgroups: comp.sources.unix
  3. Approved: rsalz@uunet.UU.NET
  4. X-Checksum-Snefru: a7d092d6 9012df97 528fb83f 084cf72d
  5.  
  6. Submitted-by: Syd Weinstein <syd@DSI.COM>
  7. Posting-number: Volume 24, Issue 29
  8. Archive-name: elm2.3patches/part05
  9.  
  10. Subject: elm 2.3 Patch #5
  11. Summary: This is an official patch for elm 2.3 system.  Please apply it.
  12. Priority: LOW
  13.  
  14. Be sure that output characters are not negative integers.
  15. From: tct!chip@uunet.UU.NET (Chip Salzenberg)
  16.  
  17. patch fixes some minor typing mistakes in error messages
  18. From: hz247bi@duc220.uni-duisburg.de (Bieniek)
  19.  
  20. Fix cursor getting lost on some system calls by forcing
  21. an absolute move.
  22. From: Syd, reported by Douglas Lamb
  23.  
  24. When Elm is compiled with the NO_XHEADER symbol defined, it failed
  25. to put a blank line between the message header and message body.
  26. From: mca@medicus.medicus.com (Mark Adams)
  27.  
  28. Fix MMDF case, where MSG_SEPERATOR has newline, buffer check
  29. didnt, thus it didnt detect the MSG_SEPERATOR.
  30. From: jbwaters@bsu-cs.bsu.edu (J. Brian Waters)
  31.  
  32. Make domain name checking case independent
  33. From: Syd, reported by Steven Baur
  34.  
  35.  
  36. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your elm source
  37.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  38.     If you don't have the patch program, apply the following by hand,
  39.     or get patch (version 2.0, latest patchlevel).
  40.  
  41.     After patching:
  42.         make
  43.         make install
  44.  
  45.     If patch indicates that patchlevel is the wrong version, you may need
  46.     to apply one or more previous patches, or the patch may already
  47.     have been applied.  See the patchlevel.h file to find out what has or
  48.     has not been applied.  In any event, don't continue with the patch.
  49.  
  50.     If you are missing previous patches they can be obtained from our:
  51.     archive server.
  52.  
  53.     Syd Weinstein
  54.     elm@DSI.COM
  55.  
  56.     The patches are available from the dsinc archive server
  57.     Send the following message to archive-server@DSI.COM for
  58.     a list of available patches:
  59.  
  60.     Subject: patch list
  61.     send index elm
  62.  
  63. Index: hdrs/patchlevel.h
  64. Prereq: 4
  65. *** ../elm2.3/hdrs/patchlevel.h    Tue Jun 26 21:08:57 1990
  66. --- hdrs/patchlevel.h    Thu Jul 12 23:24:03 1990
  67. ***************
  68. *** 1 ****
  69. ! #define PATCHLEVEL 4
  70. --- 1 ----
  71. ! #define PATCHLEVEL 5
  72.  
  73. Index: README
  74. *** ../elm2.3/README    Tue Jun 26 21:08:58 1990
  75. --- README    Thu Jul 12 22:15:27 1990
  76. ***************
  77. *** 84,89 ****
  78. --- 84,90 ----
  79.   > Smart mail  keith@g4lzv.co.uk            | 5b Northgate Rochester Kent UK
  80.   > Ampanet  [44.131.8.1] and [44.131.8.3]        | +44 634 811594 Voice
  81.   > Packet  G4LZV @ GB7UWS -- G4LZV USENET BB --| +44 634 401210 Data v22,v22bis
  82. + You might have to experiment and try values from 7000 to 8800.
  83.   
  84.       Also on Microport SysV/AT Machines, the C compiler produces
  85.   improper code for one of the arithmetic calls.  To fix this problem it
  86.  
  87. Index: Configure
  88. Prereq: 4.1.1.7
  89. *** ../elm2.3/Configure    Tue Jun 26 21:09:05 1990
  90. --- Configure    Thu Jul 12 23:24:58 1990
  91. ***************
  92. *** 8,14 ****
  93.   # and edit it to reflect your system.  Some packages may include samples
  94.   # of config.h for certain machines, so you might look for one of those.)
  95.   #
  96. ! # $Header: /files/home/users/syd/elm.rel/RCS/Configure,v 4.1.1.7 90/06/26 20:57:24 syd Exp $
  97.   #
  98.   # Yes, you may rip this off to use in other distribution packages.
  99.   # (Note: this Configure script was generated automatically.  Rather than
  100. --- 8,14 ----
  101.   # and edit it to reflect your system.  Some packages may include samples
  102.   # of config.h for certain machines, so you might look for one of those.)
  103.   #
  104. ! # $Header: /files/home/users/syd/elm.rel/RCS/Configure,v 4.1.1.8 90/07/12 23:24:37 syd Exp $
  105.   #
  106.   # Yes, you may rip this off to use in other distribution packages.
  107.   # (Note: this Configure script was generated automatically.  Rather than
  108. ***************
  109. *** 708,714 ****
  110.   : make some quick guesses about what we are up against
  111.   echo " "
  112.   $echo $n "Hmm...  $c"
  113. ! if $test -x "$uname"; then
  114.       uname_os=`uname -s`
  115.       uname_rel=`uname -r`
  116.       uname_rel=`expr "$uname" : "\(...\).*"`
  117. --- 708,714 ----
  118.   : make some quick guesses about what we are up against
  119.   echo " "
  120.   $echo $n "Hmm...  $c"
  121. ! if $test -f "$uname"; then
  122.       uname_os=`uname -s`
  123.       uname_rel=`uname -r`
  124.       uname_rel=`expr "$uname" : "\(...\).*"`
  125.  
  126. Index: filter/utils.c
  127. Prereq: 4.1
  128. *** ../elm2.3/filter/utils.c    Sat Apr 28 22:42:04 1990
  129. --- filter/utils.c    Thu Jul 12 20:23:21 1990
  130. ***************
  131. *** 1,8 ****
  132.   
  133. ! static char rcsid[] ="@(#)$Id: utils.c,v 4.1 90/04/28 22:42:03 syd Exp $";
  134.   
  135.   /*******************************************************************************
  136. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  137.    *
  138.    *             Copyright (c) 1986, 1987 Dave Taylor
  139.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  140. --- 1,8 ----
  141.   
  142. ! static char rcsid[] ="@(#)$Id: utils.c,v 4.1.1.1 90/07/12 20:23:19 syd Exp $";
  143.   
  144.   /*******************************************************************************
  145. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  146.    *
  147.    *             Copyright (c) 1986, 1987 Dave Taylor
  148.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  149. ***************
  150. *** 14,19 ****
  151. --- 14,23 ----
  152.    *
  153.    *******************************************************************************
  154.    * $Log:    utils.c,v $
  155. +  * Revision 4.1.1.1  90/07/12  20:23:19  syd
  156. +  * patch fixes some minor typing mistakes in error messages
  157. +  * From: hz247bi@duc220.uni-duisburg.de (Bieniek)
  158. +  * 
  159.    * Revision 4.1  90/04/28  22:42:03  syd
  160.    * checkin of Elm 2.3 as of Release PL0
  161.    * 
  162. ***************
  163. *** 54,60 ****
  164.         if ((fd = fopen(filename, "a")) == NULL) {
  165.           if (outfd != NULL)
  166.             fprintf(outfd, "filter (%s): Couldn't open log file %s\n", 
  167. !             filename);
  168.           fd = stdout;
  169.         }
  170.         fprintf(fd, "%d\n", rule_choosen);
  171. --- 58,64 ----
  172.         if ((fd = fopen(filename, "a")) == NULL) {
  173.           if (outfd != NULL)
  174.             fprintf(outfd, "filter (%s): Couldn't open log file %s\n", 
  175. !             username, filename);
  176.           fd = stdout;
  177.         }
  178.         fprintf(fd, "%d\n", rule_choosen);
  179. ***************
  180. *** 68,74 ****
  181.       else if ((fd = fopen(filename, "a")) == NULL) {
  182.         if (outfd != NULL)
  183.           fprintf(outfd, "filter (%s): Couldn't open log file %s\n", 
  184. !           filename);
  185.         fd = stdout;
  186.       }
  187.       
  188. --- 72,78 ----
  189.       else if ((fd = fopen(filename, "a")) == NULL) {
  190.         if (outfd != NULL)
  191.           fprintf(outfd, "filter (%s): Couldn't open log file %s\n", 
  192. !           username, filename);
  193.         fd = stdout;
  194.       }
  195.       
  196.  
  197. Index: src/aliaslib.c
  198. Prereq: 4.1.1.2
  199. *** ../elm2.3/src/aliaslib.c    Tue Jun  5 22:02:36 1990
  200. --- src/aliaslib.c    Thu Jul 12 23:19:13 1990
  201. ***************
  202. *** 1,8 ****
  203.   
  204. ! static char rcsid[] = "@(#)$Id: aliaslib.c,v 4.1.1.2 90/06/05 21:31:34 syd Exp $";
  205.   
  206.   /*******************************************************************************
  207. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  208.    *
  209.    *             Copyright (c) 1986, 1987 Dave Taylor
  210.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  211. --- 1,8 ----
  212.   
  213. ! static char rcsid[] = "@(#)$Id: aliaslib.c,v 4.1.1.3 90/07/12 23:18:17 syd Exp $";
  214.   
  215.   /*******************************************************************************
  216. !  *  The Elm Mail System  -  $Revision: 4.1.1.3 $   $State: Exp $
  217.    *
  218.    *             Copyright (c) 1986, 1987 Dave Taylor
  219.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  220. ***************
  221. *** 14,19 ****
  222. --- 14,23 ----
  223.    *
  224.    *******************************************************************************
  225.    * $Log:    aliaslib.c,v $
  226. +  * Revision 4.1.1.3  90/07/12  23:18:17  syd
  227. +  * Make domain name checking case independent
  228. +  * From: Syd, reported by Steven Baur
  229. +  * 
  230.    * Revision 4.1.1.2  90/06/05  21:31:34  syd
  231.    * Fix now spurious error message for alias recursive expansion
  232.    * when alias lookup is on a string over 20 chars long.  If that
  233. ***************
  234. *** 306,311 ****
  235. --- 310,333 ----
  236.         ++s2;
  237.       }
  238.       /*NOTREACHED*/
  239. + }
  240. + int
  241. + strincmp(s1,s2,n)
  242. + register char *s1, *s2;
  243. + register int n;
  244. + {
  245. +     /* case insensitive comparison */
  246. +     register int d;
  247. +     while (--n >= 0) {
  248. +       d = ( isupper(*s1) ? tolower(*s1) : *s1 )
  249. +           - ( isupper(*s2) ? tolower(*s2) : *s2 ) ;
  250. +       if ( d != 0 || *s1 == '\0' || *s2 == '\0' )
  251. +         return d;
  252. +       ++s1;
  253. +       ++s2;
  254. +     }
  255. +     return(0);
  256.   }
  257.   
  258.   int
  259.  
  260. Index: src/curses.c
  261. Prereq: 4.1.1.2
  262. *** ../elm2.3/src/curses.c    Tue Jun 26 21:09:08 1990
  263. --- src/curses.c    Thu Jul 12 20:18:06 1990
  264. ***************
  265. *** 1,8 ****
  266.   
  267. ! static char rcsid[] = "@(#)$Id: curses.c,v 4.1.1.2 90/06/26 20:09:09 syd Exp $";
  268.   
  269.   /*******************************************************************************
  270. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  271.    *
  272.    *             Copyright (c) 1986, 1987 Dave Taylor
  273.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  274. --- 1,8 ----
  275.   
  276. ! static char rcsid[] = "@(#)$Id: curses.c,v 4.1.1.3 90/07/12 20:18:02 syd Exp $";
  277.   
  278.   /*******************************************************************************
  279. !  *  The Elm Mail System  -  $Revision: 4.1.1.3 $   $State: Exp $
  280.    *
  281.    *             Copyright (c) 1986, 1987 Dave Taylor
  282.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  283. ***************
  284. *** 14,19 ****
  285. --- 14,23 ----
  286.    *
  287.    *******************************************************************************
  288.    * $Log:    curses.c,v $
  289. +  * Revision 4.1.1.3  90/07/12  20:18:02  syd
  290. +  * Be sure that output characters are not negative integers.
  291. +  * From: tct!chip@uunet.UU.NET (Chip Salzenberg)
  292. +  * 
  293.    * Revision 4.1.1.2  90/06/26  20:09:09  syd
  294.    * Add 8 bit support via ascii_ctype
  295.    * From: Robert Claeson <prc@erbe.se>
  296. ***************
  297. *** 648,653 ****
  298. --- 652,658 ----
  299.       static int wrappedlastchar = 0;
  300.       int justwrapped, nt;
  301.   
  302. +     ch &= 0xFF;
  303.       justwrapped = 0;
  304.   
  305.       /* if return, just go to left column. */
  306.  
  307. Index: src/domains.c
  308. Prereq: 4.1
  309. *** ../elm2.3/src/domains.c    Sat Apr 28 22:42:45 1990
  310. --- src/domains.c    Thu Jul 12 23:19:16 1990
  311. ***************
  312. *** 1,8 ****
  313.   
  314. ! static char rcsid[] = "@(#)$Id: domains.c,v 4.1 90/04/28 22:42:44 syd Exp $";
  315.   
  316.   /*******************************************************************************
  317. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  318.    *
  319.    *             Copyright (c) 1986, 1987 Dave Taylor
  320.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  321. --- 1,8 ----
  322.   
  323. ! static char rcsid[] = "@(#)$Id: domains.c,v 4.1.1.1 90/07/12 23:19:14 syd Exp $";
  324.   
  325.   /*******************************************************************************
  326. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  327.    *
  328.    *             Copyright (c) 1986, 1987 Dave Taylor
  329.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  330. ***************
  331. *** 14,19 ****
  332. --- 14,23 ----
  333.    *
  334.    *******************************************************************************
  335.    * $Log:    domains.c,v $
  336. +  * Revision 4.1.1.1  90/07/12  23:19:14  syd
  337. +  * Make domain name checking case independent
  338. +  * From: Syd, reported by Steven Baur
  339. +  * 
  340.    * Revision 4.1  90/04/28  22:42:44  syd
  341.    * checkin of Elm 2.3 as of Release PL0
  342.    * 
  343. ***************
  344. *** 184,190 ****
  345.       while (fgets(buffer, SLEN, domainfd) != NULL) {
  346.         if (buffer[0] == '#')                  /* skip comments */
  347.           continue;
  348. !       if (strncmp(buffer, mydomain, strlen(mydomain)) == 0) { /* match? */
  349.            matched++;    /* Gotcha!  Remember this momentous event! */
  350.            break;
  351.         }
  352. --- 188,194 ----
  353.       while (fgets(buffer, SLEN, domainfd) != NULL) {
  354.         if (buffer[0] == '#')                  /* skip comments */
  355.           continue;
  356. !       if (strincmp(buffer, mydomain, strlen(mydomain)) == 0) { /* match? */
  357.            matched++;    /* Gotcha!  Remember this momentous event! */
  358.            break;
  359.         }
  360.  
  361. Index: src/edit.c
  362. Prereq: 4.1
  363. *** ../elm2.3/src/edit.c    Sat Apr 28 22:42:47 1990
  364. --- src/edit.c    Thu Jul 12 22:43:08 1990
  365. ***************
  366. *** 1,8 ****
  367.   
  368. ! static char rcsid[] = "@(#)$Id: edit.c,v 4.1 90/04/28 22:42:46 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. ! static char rcsid[] = "@(#)$Id: edit.c,v 4.1.1.1 90/07/12 22:43:05 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,25 ----
  387.    *
  388.    *******************************************************************************
  389.    * $Log:    edit.c,v $
  390. +  * Revision 4.1.1.1  90/07/12  22:43:05  syd
  391. +  * Make it aware of the fact that we loose the cursor position on
  392. +  * some system calls, so set it far enough off an absolute move will
  393. +  * be done on the next cursor address, and then place it where we want it.
  394. +  * From: Syd, reported by Douglas Lamb
  395. +  * 
  396.    * Revision 4.1  90/04/28  22:42:46  syd
  397.    * checkin of Elm 2.3 as of Release PL0
  398.    * 
  399. ***************
  400. *** 78,83 ****
  401. --- 84,90 ----
  402.       }
  403.   
  404.       Raw(ON);
  405. +     SetXYLocation(0, 40);    /* a location not near the next request, so an absolute is used */
  406.   
  407.       if (folder_type == SPOOL) {    /* uh oh... now the toughie...  */
  408.   
  409.  
  410. Index: src/editmsg.c
  411. Prereq: 4.1.1.2
  412. *** ../elm2.3/src/editmsg.c    Fri Jun 22 00:00:01 1990
  413. --- src/editmsg.c    Thu Jul 12 22:43:12 1990
  414. ***************
  415. *** 1,8 ****
  416.   
  417. ! static char rcsid[] = "@(#)$Id: editmsg.c,v 4.1.1.2 90/06/21 21:14:09 syd Exp $";
  418.   
  419.   /*******************************************************************************
  420. !  *  The Elm Mail System  -  $Revision: 4.1.1.2 $   $State: Exp $
  421.    *
  422.    *             Copyright (c) 1986, 1987 Dave Taylor
  423.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  424. --- 1,8 ----
  425.   
  426. ! static char rcsid[] = "@(#)$Id: editmsg.c,v 4.1.1.3 90/07/12 22:43:08 syd Exp $";
  427.   
  428.   /*******************************************************************************
  429. !  *  The Elm Mail System  -  $Revision: 4.1.1.3 $   $State: Exp $
  430.    *
  431.    *             Copyright (c) 1986, 1987 Dave Taylor
  432.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  433. ***************
  434. *** 14,19 ****
  435. --- 14,25 ----
  436.    *
  437.    *******************************************************************************
  438.    * $Log:    editmsg.c,v $
  439. +  * Revision 4.1.1.3  90/07/12  22:43:08  syd
  440. +  * Make it aware of the fact that we loose the cursor position on
  441. +  * some system calls, so set it far enough off an absolute move will
  442. +  * be done on the next cursor address, and then place it where we want it.
  443. +  * From: Syd, reported by Douglas Lamb
  444. +  * 
  445.    * Revision 4.1.1.2  90/06/21  21:14:09  syd
  446.    * Force Carriage return on return from editor, as column is lost
  447.    * From: Steve Cambell
  448. ***************
  449. *** 99,105 ****
  450.       if (old_raw == ON)
  451.          Raw(ON);
  452.   
  453. !     CarriageReturn();        /* don't know where we are, force col 0 */
  454.   
  455.       if (cursor_control)
  456.         transmit_functions(ON);        /* function keys are local */
  457. --- 105,112 ----
  458.       if (old_raw == ON)
  459.          Raw(ON);
  460.   
  461. !     SetXYLocation(0, 40);    /* a location not near the next request, so an absolute is used */
  462. !     MoveCursor(LINES, 0);    /* dont know where we are, force last row, col 0 */
  463.   
  464.       if (cursor_control)
  465.         transmit_functions(ON);        /* function keys are local */
  466. ***************
  467. *** 283,288 ****
  468. --- 290,297 ----
  469.                    sprintf(buffer, "~r %s%s.%d", temp_dir, temp_edit, getpid());
  470.                              read_in_file(edit_fd, (char *) buffer + 3, 0);
  471.                    (void) unlink((char *) buffer+3);
  472. +                  SetXYLocation(0, 40);    /* a location not near the next request, so an absolute is used */
  473. +                  MoveCursor(LINES, 0);    /* and go to a known location, last row col 0 */
  474.                  }
  475.                          goto more_input; 
  476.   
  477. ***************
  478. *** 295,300 ****
  479. --- 304,311 ----
  480.                            (void) system_call((char *) buffer+2, USER_SHELL, TRUE, TRUE);
  481.                  if (old_raw == ON)
  482.                     Raw(ON);
  483. +                SetXYLocation(0, 40);    /* a location not near the next request, so an absolute is used */
  484. +                MoveCursor(LINES, 0);    /* and go to a known location, last row col 0 */
  485.                      Write_to_screen(simple_continue, 0);
  486.                  goto more_input;
  487.   
  488.  
  489. Index: src/init.c
  490. Prereq: 4.1
  491. *** ../elm2.3/src/init.c    Sat Apr 28 22:43:17 1990
  492. --- src/init.c    Thu Jul 12 23:19:19 1990
  493. ***************
  494. *** 1,8 ****
  495.   
  496. ! static char rcsid[] = "@(#)$Id: init.c,v 4.1 90/04/28 22:43:15 syd Exp $";
  497.   
  498.   /*******************************************************************************
  499. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  500.    *
  501.    *             Copyright (c) 1986, 1987 Dave Taylor
  502.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  503. --- 1,8 ----
  504.   
  505. ! static char rcsid[] = "@(#)$Id: init.c,v 4.1.1.1 90/07/12 23:19:17 syd Exp $";
  506.   
  507.   /*******************************************************************************
  508. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  509.    *
  510.    *             Copyright (c) 1986, 1987 Dave Taylor
  511.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  512. ***************
  513. *** 14,19 ****
  514. --- 14,23 ----
  515.    *
  516.    *******************************************************************************
  517.    * $Log:    init.c,v $
  518. +  * Revision 4.1.1.1  90/07/12  23:19:17  syd
  519. +  * Make domain name checking case independent
  520. +  * From: Syd, reported by Steven Baur
  521. +  * 
  522.    * Revision 4.1  90/04/28  22:43:15  syd
  523.    * checkin of Elm 2.3 as of Release PL0
  524.    * 
  525. ***************
  526. *** 263,269 ****
  527.       hostlen = strlen(hostname);
  528.       domlen = strlen(hostdomain);
  529.       if (hostlen >= domlen) {
  530. !       if (strcmp(&hostname[hostlen - domlen], hostdomain) == 0)
  531.           strcpy(hostfullname, hostname);
  532.         else {
  533.           strcpy(hostfullname, hostname);
  534. --- 267,273 ----
  535.       hostlen = strlen(hostname);
  536.       domlen = strlen(hostdomain);
  537.       if (hostlen >= domlen) {
  538. !       if (stricmp(&hostname[hostlen - domlen], hostdomain) == 0)
  539.           strcpy(hostfullname, hostname);
  540.         else {
  541.           strcpy(hostfullname, hostname);
  542. ***************
  543. *** 270,276 ****
  544.           strcat(hostfullname, hostdomain);
  545.         }
  546.       } else {
  547. !       if (strcmp(hostname, hostdomain + 1) == 0)
  548.           strcpy(hostfullname, hostname);
  549.         else {
  550.           strcpy(hostfullname, hostname);
  551. --- 274,280 ----
  552.           strcat(hostfullname, hostdomain);
  553.         }
  554.       } else {
  555. !       if (stricmp(hostname, hostdomain + 1) == 0)
  556.           strcpy(hostfullname, hostname);
  557.         else {
  558.           strcpy(hostfullname, hostname);
  559.  
  560. Index: src/mailmsg2.c
  561. Prereq: 4.1.1.4
  562. *** ../elm2.3/src/mailmsg2.c    Tue Jun 26 21:09:09 1990
  563. --- src/mailmsg2.c    Thu Jul 12 23:19:26 1990
  564. ***************
  565. *** 1,8 ****
  566.   
  567. ! static char rcsid[] = "@(#)$Id: mailmsg2.c,v 4.1.1.4 90/06/26 16:18:24 syd Exp $";
  568.   
  569.   /*******************************************************************************
  570. !  *  The Elm Mail System  -  $Revision: 4.1.1.4 $   $State: Exp $
  571.    *
  572.    *             Copyright (c) 1986, 1987 Dave Taylor
  573.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  574. --- 1,8 ----
  575.   
  576. ! static char rcsid[] = "@(#)$Id: mailmsg2.c,v 4.1.1.6 90/07/12 23:19:20 syd Exp $";
  577.   
  578.   /*******************************************************************************
  579. !  *  The Elm Mail System  -  $Revision: 4.1.1.6 $   $State: Exp $
  580.    *
  581.    *             Copyright (c) 1986, 1987 Dave Taylor
  582.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  583. ***************
  584. *** 14,19 ****
  585. --- 14,28 ----
  586.    *
  587.    *******************************************************************************
  588.    * $Log:    mailmsg2.c,v $
  589. +  * Revision 4.1.1.6  90/07/12  23:19:20  syd
  590. +  * Make domain name checking case independent
  591. +  * From: Syd, reported by Steven Baur
  592. +  * 
  593. +  * Revision 4.1.1.5  90/07/12  22:52:42  syd
  594. +  * When Elm is compiled with the NO_XHEADER symbol defined, it failed
  595. +  * to put a blank line between the message header and message body.
  596. +  * From: mca@medicus.medicus.com (Mark Adams)
  597. +  * 
  598.    * Revision 4.1.1.4  90/06/26  16:18:24  syd
  599.    * Make it encode lines that are [...] if not one of the reserved lines.
  600.    * It was messing up decoding
  601. ***************
  602. *** 780,788 ****
  603.         fprintf(filedesc, "Content-Type: mailform\n");
  604.   
  605.   #ifndef NO_XHEADER
  606. !     fprintf(filedesc, "X-Mailer: ELM [version %s]\n\n", version_buff);
  607.   #endif /* !NO_XHEADER */
  608.   
  609.       return((FILE *) filedesc);
  610.   }
  611.   
  612. --- 789,799 ----
  613.         fprintf(filedesc, "Content-Type: mailform\n");
  614.   
  615.   #ifndef NO_XHEADER
  616. !     fprintf(filedesc, "X-Mailer: ELM [version %s]\n", version_buff);
  617.   #endif /* !NO_XHEADER */
  618.   
  619. +     putc('\n', filedesc);
  620.       return((FILE *) filedesc);
  621.   }
  622.   
  623. ***************
  624. *** 920,926 ****
  625.                 sig = local_signature;
  626.                 for (ptr = index(expanded_to,'@'); ptr;  /* check To: list */
  627.                 ptr = index(ptr+1,'@')) {
  628. !         if (strncmp(ptr,sitename,len) != 0
  629.               || (*(ptr+len) != ',' && *(ptr+len) != 0
  630.               && *(ptr+len) != ' ')) {
  631.                 sig = remote_signature;
  632. --- 931,937 ----
  633.                 sig = local_signature;
  634.                 for (ptr = index(expanded_to,'@'); ptr;  /* check To: list */
  635.                 ptr = index(ptr+1,'@')) {
  636. !         if (strincmp(ptr,sitename,len) != 0
  637.               || (*(ptr+len) != ',' && *(ptr+len) != 0
  638.               && *(ptr+len) != ' ')) {
  639.                 sig = remote_signature;
  640. ***************
  641. *** 930,936 ****
  642.                 if (sig == local_signature)           /* still local? */ 
  643.                   for (ptr = index(expanded_cc,'@'); ptr;   /* check Cc: */
  644.               ptr = index(ptr+1,'@')) {
  645. !           if (strncmp(ptr,sitename,len) != 0
  646.                 || (*(ptr+len) != ',' && *(ptr+len) != 0 
  647.                 && *(ptr+len) != ' ')) {
  648.                   sig = remote_signature;
  649. --- 941,947 ----
  650.                 if (sig == local_signature)           /* still local? */ 
  651.                   for (ptr = index(expanded_cc,'@'); ptr;   /* check Cc: */
  652.               ptr = index(ptr+1,'@')) {
  653. !           if (strincmp(ptr,sitename,len) != 0
  654.                 || (*(ptr+len) != ',' && *(ptr+len) != 0 
  655.                 && *(ptr+len) != ' ')) {
  656.                   sig = remote_signature;
  657.  
  658. Index: src/showmsg.c
  659. Prereq: 4.1
  660. *** ../elm2.3/src/showmsg.c    Sat Apr 28 22:44:07 1990
  661. --- src/showmsg.c    Thu Jul 12 23:04:27 1990
  662. ***************
  663. *** 1,8 ****
  664.   
  665. ! static char rcsid[] = "@(#)$Id: showmsg.c,v 4.1 90/04/28 22:44:06 syd Exp $";
  666.   
  667.   /*******************************************************************************
  668. !  *  The Elm Mail System  -  $Revision: 4.1 $   $State: Exp $
  669.    *
  670.    *             Copyright (c) 1986, 1987 Dave Taylor
  671.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  672. --- 1,8 ----
  673.   
  674. ! static char rcsid[] = "@(#)$Id: showmsg.c,v 4.1.1.1 90/07/12 23:04:26 syd Exp $";
  675.   
  676.   /*******************************************************************************
  677. !  *  The Elm Mail System  -  $Revision: 4.1.1.1 $   $State: Exp $
  678.    *
  679.    *             Copyright (c) 1986, 1987 Dave Taylor
  680.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  681. ***************
  682. *** 14,19 ****
  683. --- 14,24 ----
  684.    *
  685.    *******************************************************************************
  686.    * $Log:    showmsg.c,v $
  687. +  * Revision 4.1.1.1  90/07/12  23:04:26  syd
  688. +  * Fix MMDF case, where MSG_SEPERATOR has newline, buffer check
  689. +  * didnt, thus it didnt detect the MSG_SEPERATOR.
  690. +  * From: jbwaters@bsu-cs.bsu.edu (J. Brian Waters)
  691. +  * 
  692.    * Revision 4.1  90/04/28  22:44:06  syd
  693.    * checkin of Elm 2.3 as of Release PL0
  694.    * 
  695. ***************
  696. *** 458,473 ****
  697.           a command other than continuing with the display (only possible
  698.           with the builtin pager), otherwise 0. **/
  699.   
  700.   #ifdef MMDF
  701.       if (strcmp(buffer, MSG_SEPERATOR) == 0)
  702. !       strcpy(buffer," ");
  703.   #endif /* MMDF */
  704.       if (builtin) {
  705. -       strcat(buffer, "\n");
  706.         return(display_line(buffer));
  707.       }
  708.       errno = 0;
  709. !     fprintf(pipe_wr_fp, "%s\n", buffer);
  710.       if (errno != 0)
  711.         dprint(1, (debugfile, "\terror %s hit!\n", error_name(errno)));
  712.       return(0);
  713. --- 463,478 ----
  714.           a command other than continuing with the display (only possible
  715.           with the builtin pager), otherwise 0. **/
  716.   
  717. +     strcat(buffer, "\n");
  718.   #ifdef MMDF
  719.       if (strcmp(buffer, MSG_SEPERATOR) == 0)
  720. !       return(0);    /* no reason to show the ending terminator */
  721.   #endif /* MMDF */
  722.       if (builtin) {
  723.         return(display_line(buffer));
  724.       }
  725.       errno = 0;
  726. !     fprintf(pipe_wr_fp, "%s", buffer);
  727.       if (errno != 0)
  728.         dprint(1, (debugfile, "\terror %s hit!\n", error_name(errno)));
  729.       return(0);
  730.  
  731. Index: src/syscall.c
  732. Prereq: 4.1.1.3
  733. *** ../elm2.3/src/syscall.c    Fri Jun 22 00:00:05 1990
  734. --- src/syscall.c    Thu Jul 12 22:43:05 1990
  735. ***************
  736. *** 1,8 ****
  737.   
  738. ! static char rcsid[] = "@(#)$Id: syscall.c,v 4.1.1.3 90/06/21 22:48:17 syd Exp $";
  739.   
  740.   /*******************************************************************************
  741. !  *  The Elm Mail System  -  $Revision: 4.1.1.3 $   $State: Exp $
  742.    *
  743.    *             Copyright (c) 1986, 1987 Dave Taylor
  744.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  745. --- 1,8 ----
  746.   
  747. ! static char rcsid[] = "@(#)$Id: syscall.c,v 4.1.1.4 90/07/12 22:41:55 syd Exp $";
  748.   
  749.   /*******************************************************************************
  750. !  *  The Elm Mail System  -  $Revision: 4.1.1.4 $   $State: Exp $
  751.    *
  752.    *             Copyright (c) 1986, 1987 Dave Taylor
  753.    *             Copyright (c) 1988, 1989, 1990 USENET Community Trust
  754. ***************
  755. *** 14,19 ****
  756. --- 14,25 ----
  757.    *
  758.    *******************************************************************************
  759.    * $Log:    syscall.c,v $
  760. +  * Revision 4.1.1.4  90/07/12  22:41:55  syd
  761. +  * Make it aware of the fact that we loose the cursor position on
  762. +  * some system calls, so set it far enough off an absolute move will
  763. +  * be done on the next cursor address, and then place it where we want it.
  764. +  * From: Syd, reported by Douglas Lamb
  765. +  * 
  766.    * Revision 4.1.1.3  90/06/21  22:48:17  syd
  767.    * patch to fix up the Log headers.
  768.    * From: pdc%lunch.wpd@sgi.com (Paul Close)
  769. ***************
  770. *** 93,98 ****
  771. --- 99,105 ----
  772.       ret = system_call(command, USER_SHELL, TRUE, TRUE);
  773.       umask(077);        /* now put it back to private for mail files */
  774.   
  775. +     SetXYLocation(0, 40);    /* a location not near the next request, so an absolute is used */
  776.       PutLine0(LINES, 0, "\n\nPress any key to return to ELM: ");
  777.       Raw(ON);
  778.       (void) getchar();
  779. ***************
  780. *** 293,298 ****
  781. --- 300,306 ----
  782.       
  783.       ret = system_call(buffer, USER_SHELL, TRUE, TRUE);
  784.   
  785. +     SetXYLocation(0, 40);    /* a location not near the next request, so an absolute is used */
  786.       PutLine0(LINES, 0, "\n\nPress any key to return to ELM.");
  787.       if (old_raw == ON)
  788.          Raw(ON);
  789.  
  790. exit 0 # Just in case...
  791.