Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!bbn.com!papaya.bbn.com!rsalz From: rsalz@uunet.uu.net (Rich Salz) Newsgroups: comp.sources.unix Subject: v24i028: Elm mail system, release 2.3, patches, Part04/11 Message-ID: <3335@litchi.bbn.com> Date: 5 Mar 91 22:07:30 GMT Lines: 876 Approved: rsalz@uunet.UU.NET X-Checksum-Snefru: 2c00ac49 1260b968 c102eeaf d77c179d Submitted-by: Syd Weinstein Posting-number: Volume 24, Issue 28 Archive-name: elm2.3patches/part04 Subject: elm 2.3 Patch #4 Summary: This is an official patch for elm 2.3 system. Please apply it. Priority: MEDIUM Some bug fixes plus the 8 bit support code and configuration support: Fix encoding to encode lines that start with [ and are not valid Elm keywords. It was confusing decode. ~From: Syd via a report from Lenny Tropiano Add a new configuration internal variable to support remembering correctly hostcomp for Configure -d ~From: Chip Salzenberg Make 8 bit work and add some better defaults to the configure script. ~From: Syd via patch idea from Robert Claeson Fix typo in Instruct and Configure ~From: David Kozinn Fix boundry check on argument count in fastmail ~From: Syd reported by Eric J. Peterson Fix: From rn, say "| patch -p -N -d DIR", where DIR is your elm source directory. Outside of rn, say "cd DIR; patch -p -N + + Fix typo in Instruct and Configure + From: David Kozinn + + Fix boundry check on argument count in fastmail + From: Syd reported by Eric J. Peterson + Elm 2.3 Patch 3 - Release cleanup - Part III of III Thu Jun 21 23:35:40 EDT 1990 (Creation date, not posting date) Fix symbol for NO_XHEADER Index: Configure Prereq: 4.1.1.5 *** ../elm2.3/Configure Thu Jun 21 23:59:57 1990 --- Configure Tue Jun 26 20:57:50 1990 *************** *** 8,14 **** # and edit it to reflect your system. Some packages may include samples # of config.h for certain machines, so you might look for one of those.) # ! # $Header: /files/home/users/syd/elm.rel/RCS/Configure,v 4.1.1.5 90/06/21 23:31:37 syd Exp $ # # Yes, you may rip this off to use in other distribution packages. # (Note: this Configure script was generated automatically. Rather than --- 8,14 ---- # and edit it to reflect your system. Some packages may include samples # of config.h for certain machines, so you might look for one of those.) # ! # $Header: /files/home/users/syd/elm.rel/RCS/Configure,v 4.1.1.7 90/06/26 20:57:24 syd Exp $ # # Yes, you may rip this off to use in other distribution packages. # (Note: this Configure script was generated automatically. Rather than *************** *** 53,59 **** d_havetlib='' termlib='' d_mkdir='' - d_portable='' d_rename='' d_sigvec='' d_sigvectr='' --- 53,58 ---- *************** *** 130,136 **** --- 129,137 ---- make='' date='' csh='' + pmake='' c_date='' + d_ascii='' d_calendar='' calendar='' d_cuserid='' *************** *** 141,146 **** --- 142,148 ---- d_douname='' d_phostname='' d_host_comp='' + ign_hname='' d_havedbm='' dbm='' d_index='' *************** *** 158,163 **** --- 160,166 ---- d_usedomain='' d_nocheckvalid='' d_pidcheck='' + d_portable='' d_ptem='' d_remlock='' maxattempts='' *************** *** 212,217 **** --- 215,221 ---- rmttape='' roff='' tmpdir='' + use_pmake='' xencf='' xenlf='' d_xenix='' *************** *** 258,264 **** attrlist="$attrlist i186 __m88k__ m88k DGUX __DGUX__" d_newshome="/usr/NeWS" defvoidused=7 ! pth="/usr/ucb /bin /usr/bin /usr/local /usr/local/bin /usr/lbin /usr/plx /usr/5bin /vol/local/bin /etc /usr/lib /lib /usr/local/lib /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/bin /bsd4.3/usr/ucb /usr/convex /usr/mmdf/bin" : check for out bin directory if test ! -d ../bin; then --- 262,268 ---- attrlist="$attrlist i186 __m88k__ m88k DGUX __DGUX__" d_newshome="/usr/NeWS" defvoidused=7 ! pth="/usr/ucb /bin /usr/bin /usr/local /usr/local/bin /usr/lbin /usr/5bin /vol/local/bin /etc /usr/lib /lib /usr/local/lib /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/bin /bsd4.3/usr/ucb /usr/convex /usr/mmdf/bin ${BSDBASE-/bsd}/usr/ucb ${BSDBASE-/bsd}/bin ${BSDBASE-/bsd}/usr/bin" : check for out bin directory if test ! -d ../bin; then *************** *** 522,527 **** --- 526,532 ---- more nroff pg + pmake pr rmail sendmail *************** *** 695,701 **** : see if date exists, if so, init c_date if $test ! "x$date" = "x" ; then ! c_date=`$date` else c_date='date was unavailable at configuration' fi --- 700,706 ---- : see if date exists, if so, init c_date if $test ! "x$date" = "x" ; then ! c_date=`LANGUAGE= $date` else c_date='date was unavailable at configuration' fi *************** *** 836,842 **** EOM case "$mansrc" in '') ! dflt=`loc . /usr/man/man1 /usr/man/mann /usr/man/manl /usr/man/local/man1 /usr/man/u_man/man1 /usr/man/man1 /usr/man/man.L` ;; *) dflt="$mansrc" ;; --- 841,847 ---- EOM case "$mansrc" in '') ! dflt=`loc . /usr/man/man1 /usr/man/mann /usr/man/manl /usr/man/local/man1 /usr/man/u_man/man1 /usr/man/l_man/man1 /usr/local/man/u_man/man1 /usr/local/man/l_man/man1 /usr/man/man1 /usr/man/man.L` ;; *) dflt="$mansrc" ;; *************** *** 1578,1583 **** --- 1583,1622 ---- calendar="$ans" fi + : check to see if the macros are 8 bit clean, ask the user + : + $cat < + * * Revision 4.1.1.1 90/06/05 21:05:22 syd * Fixes where src/curses.c attempts to set the screen size via the ioctl * TIOCGWINSIZ if it exsists. It should only use the row or col size as *************** *** 690,696 **** --- 694,704 ---- else { /* if some kind of non-printable character change to a '?' */ + #ifdef ASCII_CTYPE if(!isascii(ch) || !isprint(ch)) + #else + if(!isprint(ch)) + #endif ch = '?'; /* if we only have one column left, simulate automargins if Index: src/mailmsg2.c Prereq: 4.1.1.3 *** ../elm2.3/src/mailmsg2.c Fri Jun 22 00:00:02 1990 --- src/mailmsg2.c Tue Jun 26 16:25:03 1990 *************** *** 1,8 **** ! static char rcsid[] = "@(#)$Id: mailmsg2.c,v 4.1.1.3 90/06/21 21:07:48 syd Exp $"; /******************************************************************************* ! * The Elm Mail System - $Revision: 4.1.1.3 $ $State: Exp $ * * Copyright (c) 1986, 1987 Dave Taylor * Copyright (c) 1988, 1989, 1990 USENET Community Trust --- 1,8 ---- ! static char rcsid[] = "@(#)$Id: mailmsg2.c,v 4.1.1.4 90/06/26 16:18:24 syd Exp $"; /******************************************************************************* ! * The Elm Mail System - $Revision: 4.1.1.4 $ $State: Exp $ * * Copyright (c) 1986, 1987 Dave Taylor * Copyright (c) 1988, 1989, 1990 USENET Community Trust *************** *** 14,19 **** --- 14,24 ---- * ******************************************************************************* * $Log: mailmsg2.c,v $ + * Revision 4.1.1.4 90/06/26 16:18:24 syd + * Make it encode lines that are [...] if not one of the reserved lines. + * It was messing up decoding + * From: Syd via report from Lenny Tropiano + * * Revision 4.1.1.3 90/06/21 21:07:48 syd * Fix XHEAD define * From: Syd *************** *** 803,808 **** --- 808,821 ---- || (strncmp(buffer, DONT_SAVE2, strlen(DONT_SAVE2)) == 0)) { if(copy) break; /* saved copy doesn't want anything after this */ else continue; /* next line? */ + } + else if (crypted) { + if (! gotten_key++) + getkey(ON); + else if (! encoded_lines) + get_key_no_prompt(); /* reinitialize.. */ + encode(buffer); + encoded_lines++; } } else if (crypted) { Index: src/newmbox.c Prereq: 4.1.1.1 *** ../elm2.3/src/newmbox.c Fri Jun 22 00:00:03 1990 --- src/newmbox.c Tue Jun 26 20:18:28 1990 *************** *** 1,8 **** ! static char rcsid[] = "@(#)$Id: newmbox.c,v 4.1.1.1 90/06/21 21:10:33 syd Exp $"; /******************************************************************************* ! * The Elm Mail System - $Revision: 4.1.1.1 $ $State: Exp $ * * Copyright (c) 1988, USENET Community Trust * Copyright (c) 1988, 1989, 1990 USENET Community Trust --- 1,8 ---- ! static char rcsid[] = "@(#)$Id: newmbox.c,v 4.1.1.2 90/06/26 20:18:06 syd Exp $"; /******************************************************************************* ! * The Elm Mail System - $Revision: 4.1.1.2 $ $State: Exp $ * * Copyright (c) 1988, USENET Community Trust * Copyright (c) 1988, 1989, 1990 USENET Community Trust *************** *** 14,19 **** --- 14,24 ---- * ******************************************************************************* * $Log: newmbox.c,v $ + * Revision 4.1.1.2 90/06/26 20:18:06 syd + * Fix double word + * From: Peter Kendell + * + * * Revision 4.1.1.1 90/06/21 21:10:33 syd * Add another fixed mailbox id * From: Syd *************** *** 98,104 **** Centerline(15, "Hey! An instantiation of ELM is already reading this mail!"); Centerline(17, ! "If this is in error, then you'll need to save a copy of the"); Centerline(18, "the following file then remove it:"); Centerline(19, new_tempfile); MoveCursor(LINES, 0); /* so shell prompt upon exit is on newline */ --- 103,109 ---- Centerline(15, "Hey! An instantiation of ELM is already reading this mail!"); Centerline(17, ! "If this is in error, then you'll need to save a copy of"); Centerline(18, "the following file then remove it:"); Centerline(19, new_tempfile); MoveCursor(LINES, 0); /* so shell prompt upon exit is on newline */ Index: utils/fastmail.c Prereq: 4.1 *** ../elm2.3/utils/fastmail.c Sat Apr 28 22:44:40 1990 --- utils/fastmail.c Tue Jun 26 20:30:33 1990 *************** *** 1,8 **** ! static char rcsid[] = "@(#)$Id: fastmail.c,v 4.1 90/04/28 22:44:39 syd Exp $"; /******************************************************************************* ! * The Elm Mail System - $Revision: 4.1 $ $State: Exp $ * * Copyright (c) 1986, 1987 Dave Taylor * Copyright (c) 1988, 1989, 1990 USENET Community Trust --- 1,8 ---- ! static char rcsid[] = "@(#)$Id: fastmail.c,v 4.1.1.1 90/06/26 20:30:22 syd Exp $"; /******************************************************************************* ! * The Elm Mail System - $Revision: 4.1.1.1 $ $State: Exp $ * * Copyright (c) 1986, 1987 Dave Taylor * Copyright (c) 1988, 1989, 1990 USENET Community Trust *************** *** 14,19 **** --- 14,23 ---- * ******************************************************************************* * $Log: fastmail.c,v $ + * Revision 4.1.1.1 90/06/26 20:30:22 syd + * Fix boundary check on argument count + * From: Syd + * * Revision 4.1 90/04/28 22:44:39 syd * checkin of Elm 2.3 as of Release PL0 * *************** *** 122,128 **** } } ! if (optind > argc) { fprintf(stderr,"Usage: fastmail {args} filename address(es)\n"); fprintf(stderr, " where {args} can be;\n"); fprintf(stderr,"\t-b bcc-list\n\t-c cc-list\n\t-d\n\t-f from-name\n"); --- 126,132 ---- } } ! if (optind >= argc) { fprintf(stderr,"Usage: fastmail {args} filename address(es)\n"); fprintf(stderr, " where {args} can be;\n"); fprintf(stderr,"\t-b bcc-list\n\t-c cc-list\n\t-d\n\t-f from-name\n"); *************** *** 133,139 **** strcpy(filename, argv[optind++]); ! if (optind > argc) { fprintf(stderr,"Usage: fastmail {args} filename address(es)\n"); fprintf(stderr, " where {args} can be;\n"); fprintf(stderr,"\t-b bcc-list\n\t-c cc-list\n\t-d\n\t-f from-name\n"); --- 137,143 ---- strcpy(filename, argv[optind++]); ! if (optind >= argc) { fprintf(stderr,"Usage: fastmail {args} filename address(es)\n"); fprintf(stderr, " where {args} can be;\n"); fprintf(stderr,"\t-b bcc-list\n\t-c cc-list\n\t-d\n\t-f from-name\n"); -- ===================================================================== Sydney S. Weinstein, CDP, CCP Elm Coordinator Datacomp Systems, Inc. Voice: (215) 947-9900 syd@DSI.COM or dsinc!syd FAX: (215) 938-0235 exit 0 # Just in case... -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net. Use a domain-based address or give alternate paths, or you may lose out.