Subject: elm 2.2 Patch #13
Date: Mon Oct 23 14:40:29 EDT 1989 (Creation, not message date)
Priority: HIGH

Security patch for default mailboxes to prevent unauthorized access
From: Syd

Change in Filter Error message for missing variable
From: Andrea

Subject: elm 2.2 Patch #12
Date: Wed Oct 18 20:58:47 EDT 1989 (Creation, not message date)
Priority: MEDIUM

Fix typo in define of signal routines
From: Syd

Fixes when define the environment variable CHRCLASS, fastmail uses some part
of _ctype as from_string and generates an invalide From: line.
From: incom.de!win (Winfried Koenig)

Fix missing return variable from readmsg/expand
From: Gerald Vogt

Remove temporary file if bounce is cancelled
From: David Newall

Fixes a typo in the filter(1) manual page.
From: sequent!phil (Phil Hochstetler)

Add SVR3.2 PID to lock file, but do not check the lock file for a valid
PID.  This allows SVR3.2 to be locked with a minimal change to Elm.
From: Syd

Subject: elm 2.2 Patch #11
Date: Fri Sep 15 16:45:43 EDT 1989 (Creation, not message date)
Priority: MEDIUM

Fix calling qsort when no headers to sort causing qsort on
some systems to abort when passed a null.
From: edf@rocky.rockefeller.edu

Special case nameof to not substitute ~ for the home directory
if it is only one character long (/).
From: Jeffery Small

Fixed arepdaem to not take signals by disassociating itself
from the terminal.  Also fixed not removing users when all
are removed.
From: Syd

Fix include files in filter/filter.c and filter/rules.c
to honor TMINSYS.
From: Andrew Findlay

Fixed arepdaem bug where autoreply file wasnt being closed (UB01)
From: Syd

Fix newalias not to core dump if the line is too long.
From: Syd

Fixed string lengths for consistency in file.c for use by get_existing_address,
was causing a segv if the string was overwritten.  Still possible to overwrite,
but longer lenght reduces odds.
From: Chris Jackman

Fix variable usage in get_return - wrong variable used for line count detection.
From: Laurenc Lundblade

Subject: elm 2.2 Patch #10
Date: Mon Jun 19 17:11:49 EDT 1989
Priority: LOW

A recent fix for forms problems wrongly treated a filled in form as a
yet-to-be-filled form, causing problems when the user wanted to reply to it.
From: Rob Bernardo <clib!rob>

Fixed where pressing | to pipe a message when there is not any
mail caused a segmentation error signal to occur.
From: gatech!npiatl!dkelly (Dwight Kelly)

Added Patchlist file containing the record of which patch changed which
items. (From the patch headers)
From: Syd


Subject: elm 2.2 Patch #9
Date: Mon Jun 12 11:24:25 EDT 1989
Priority: LOW

Add missing quotes to the thankyou header line, minor spelling
corrections to Ref and Users guide.
From: lll-tis!ames!rutgers!cs.buffalo.edu!sigmast!dgy

Change the sleep in save to reduce time in tagging saves.  Now it will
only sleep for creating messages.  Thus, the message WILL sleep for
two seconds, on the 1st message copied to it.  This will let them know
that a new folder was used.  If the user tags say, 25 messages to move
to a new folder, it will sleep 2 seconds for the first message, and
then not sleep at all for the remaining 24.
From: Jeff Beadles <jeff%quark.wv.tek.com@RELAY.CS.NET>

If you type control-D (EOF) at the "Message: " prompt, answer went
into an infinite loop printing "Message: " on your screen.  The problem
is that on BSD systems (SunOS and Ultrix at least) an EOF on stdin
will cause all subsequent reads to return EOF (NULL for fgets).
You must call clearerr(stdin) to clear the EOF condition if you wish
to read from stdin again.
When answer receives and EOF indication it now treats it like an "exit"
command, like most Unix utilities (and mailers).  This will fix the EOF
looping problem (by exiting).
From: uunet!mitel!sce!cognos!geovision!beet!jgm (John McCarthy)

Fixed sigvec and sv_interrupt to only use sigvec when the System V
slow device interruption is available, else use signal.
From: Many, compiled by Syd

Fix makefiles to add .PRECIOUS to prevent loss of include files
From: Rob

Include the signature before editing if an external editor is going to be used.
Don't worry about the fact that we can't reliably determine which one to use.
From: zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff)


Subject: elm 2.2 Patch #8
Date: May 26 22:02 EDT 1989
Priority: LOW

A troff directive was missing its leading dot.
From: uunet!munnari!itd.dsto.oz.au!ksh (Ken Hayman 6340)

Fix message in sample elmrc file.
From: uunet!calgary!xenlink!pldnec!dudley

Change #ifdef SV_INTERRUPT that fool some BSD enhanced systems
that only have sigvec for kernel use but not for task use.
From: Robert Claeson <uunet!mcvax!erbe.se!prc>

Fixes the signature code to work for fully qualified local addresses.  Also
fixes the problem that signatures can't really be determined until after the
message is entered (the user may use ~h to change it's local/remote status).
From: lll-tis!ames!mailrus!sharkey!b-tech.ann-arbor.mi.us!zeeff (Jon Zeeff)

Fixed several problems, mostly off-by-one errors and the missed
consideration that a delay of around 8 weeks (the maximum allowed)
can actually push you more than one month into the future
(eg 28th Feb + 40 days is in April, not March).
From: munnari!itd.dsto.oz.au!ksh@uunet.UU.NET (Ken Hayman 6340)

Prevent a string in a document trigger some action by adding a null width
space before the word in the keyword.
From: uunet!!phil (Phil Hochstetler)

Fix the "message-id" variable that is used in the In-Reply-To: field
to initialize it to no.id for those messages without a message id.
From: Dave Taylor

Updateing the status line for non forwarded messages was doubling
the status tag.
From: Samuel Lam <van-bc!skl@beaver.cs.washington.edu>

Changes to remote-install in Makefiles
From: David Newall

Change configure to not define USE_DOMAIN if the MTA cannot
handle internet addresses
From: Syd Weinstein

There was one space too many before the word "Display" in the PF1
definition; this causes the key label to look quite ugly when the word
"Display" wraps into the second line.
From: uunet!smsdpg!seg (Scott Garfinkle)


Subject: elm 2.2 Patch # 7
Priority: MEDIUM

Add Xenix 286 shell instructions to README

Change cast on init signal code.
From: root@cheviot.newcastle.ac.uk (Andy Linton)

Fixed default function return for one_liner_for.
From: karl@archer.MorningStar.COM (Karl Fox)

Change command prompt on last page of message not to use
GetPrompt() which does timeouts.
From: Samuel Lam <uw-beaver!van-bc!skl>

The while loop for input of multi-line fields did not have curly braces around
the body, causing only the first statement to get executed.  This caused the
user to get stuck until ^D was typed, and no data for that field was written
to the file.  I also fixed the input routines a bit so forms work a little more
like the document says they do, though they're still not quite the same.
From: td2cad!mipos3!batie

mail_form() called mail() with a "NO" argument to tell it not to
add the Contains line; this caused the recipient of a Form to
not get it displayed in the nice readable format it's supposed
to be displayed in.
From: td2cad!mipos3!batie

Fix tab expansion near end of line in curses.c
From: Karl and Rob


Subject: elm 2.2 Patch #6
Priority: LOW

When you convert from printf to curses, you must remember that it treats
\n as a RAW \n, and that you must also send \r.  Either that or make
sure the _col variable gets reset to the proper column.
From: jbuck@epimass.EPI.COM (Joe Buck)

Need to go leave raw mode before doing shell escapes and system() calls.
These changes of mode were accidentally removed when the builtin editor
was fixed by making it operate in raw mode.
From: Rob Bernardo <clib!rob>

Remove extra definition of whitespace from src/string2.c

Allow setvbuf not to exist, silently.  It is for efficiency only.

Make termio routine code depend on TERMIO symbol not BSD symbol in src/init.c

The function remove_possible_trailing_spaces could 'spin backwards' over
a great deal more than its input.... consider the case that the input contained
nothing but whitespace characters.  Also, the original nulls out every trailing
whitespace character, not just the first.
From: Randy Wright <convex!rwright>

Added missing routine name to usage call in newmail.


Subject: elm 2.2 Patch #5
Priority: LOW

This reinstates elm 2.1 functionality of saving a copy of an outbound
message by name only if the folder preexists, while keeping the new
functionality of allowing save-by-name to also occur regardless of
the preexistence of the folder.
From: Rob Bernardo <clib!rob>

Change Configure to use sgtty first if BSD and TERMIO first if not.
From: Syd


Subject: elm 2.2 Patch #4
Priority: Medium

Fix the pattern-matching feature of ~f/~m in the builtin editor
and fix the documentation for the builtin editor in the Reference Guide.
From: Rob Bernardo <clib!rob>

This fixes bug EB13, whereby if there was a Status: header for a message,
elm would lose track of status information (such as Priority:), because
a variable was reset with the Status info, rather than just or'ed with it.
From: Rob Bernardo <clib!rob>

This patch corrects some duplicate, unnecessary and conflicting declarations
of some curses functions,  which show up when compiling with gcc.
These corrections were pointed out by Steve Simmons.
From: Rob Bernardo <clib!rob>

Fixed not having newmail print the "sender's" id/address
From bpa!att!hocpa!rusty Tue Apr 25 15:59:42 1989

One variable was used in place of another 
From: Rob Bernardo <clib!rob>

This enables elm to properly expand ~/[path] and ~logname/[path];
formerly "~" and "~/" were both expanded as the current user's home
directory. Also fixes a bug in the expansion of environmental variables in
user-entered paths.
From: Rob Bernardo <clib!rob>


Subject: elm 2.2 Patch #3
Priority: LOW

This fixes a number of bugs with the builtin editor. (1) It used to use
stdio functions and not curses functions to write to the screen causing
the homebrew curses to loose track of where the cursor was - which
showed up when trying to back up over input, (2) the ~m and ~f commands
were nearly completely broken, (3) expanded addresses are displayed
under a wider range of appropriate circumstances, (4) the index screen
needed to be redrawn when the editor is killed by two interrupts. A related
curses bug was also fixed, and user messages in the builtin editor were
made consistent.
From: Rob Bernardo <clib!rob>


Subject: elm 2.2 Patch #2
Priority: MEDIUM

Added missing _utils dependency.

When you repeatedly 'c'hange folders and use '?' to display a list of
folder names, the list is preceded by a little help message.  The first
time this occurs, everything is OK but subsequent uses of '?' cause (all
but the first line of) the message body to be repeated.  The help
message grows and grows the more you use this feature.

This fixes a wrongly named variable (caused by copying a function and
not completing tailoring it to its new role).  Found by Rob Healey.
From: Rob Bernardo <clib!rob>

This fixes a compiler warning "statement not reached".  Found by Steve
Simmons.  From: Rob Bernardo <clib!rob>

When checking to see if an address is in a list of addresses: (1) ignore
case, and (2) make sure the comparison is not just a random inclusion of
the address in an item of the list - it must match a whole number of
"atoms" at the right end of the item in the list.  From: Rob Bernardo
<clib!rob>

Fix typo in newmail.1

Fix bug in resyncing and limit, we loose the Visible attribute, so
cancel the limit.

ELM did not reset its internal column counter at the ends of lines when
the user is composing a mail message with editor = "none".  As a result,
elm echos a \r\n every 80th character the user types.  Called NewLine so
the curses module will know to reset the column number.

Add some defines for Goulds and SV_INTERRUPT from Andy Linton at Newcastle.

On 4.3 BSD machines (this includes > Ultrix 2.0 and GOULD NP1) the
refreshing of the index etc.  on receipt of new mail does not work on
the timeout.  Essentially although the read in ReadCh is interrupted by
the alarm firing after the timeout the read continues and so the errno
is not set to EINTR. 

Add BSD style USER to LOGNAME for folder lookup in readmsg

Enclosed are patches to ELM2.2 to make it usable for sites that
use 8-bit character sets like ISO8859. The support for character
classification at these sites is usually done by replacing the
ctype macros. These changes should be invisible to those using 
ascii and result in better code (i.e. if(!isprint(c)) ... is better
than if ( (c < ' ') || (c > '~')) ... )
From: Marius Olafsson 		Internet: marius@rhi.hi.is
University of Iceland		Non-MX:   marius%rhi.hi.is@uunet.uu.net
				UUCP:     {mcvax,enea,uunet}!hafro!rhi!marius

Add secondary check for BSD sites on including utsname in gethostname when
host name is compiled in.


Subject: elm 2.2 Patch #1
Priority: LOW-MEDIUM

The alias seperator was changed to an equal sign from the colon character.
This change, however, wasn't made in the utils/mailrc.awk script.

The man page for answer(1l) still refered to '$home/.alias_hash'
and '...alias_data'.

fastmail had a printf statement which was not controlled by the debug flag.
The sympton was that arepdaemon kept echoing messages to the console.

removed use of the 'hp' register which is defined by the [nt]roff package as
a predefined general register, the current horizontal place on the input line.

Fixes the Elm-supplied gethostname() for the Xenix environment when the
system has been told to use the uname() call.  The Configure script
correctly sets the defines, but the code wasn't using it correctly.

Fixed scanning for calendar entries with no mail.

Another attempt at the stop code, so many systems handle this differently.

Some cursor strings on some terminals were longer than SHORT allowed,
lengthen SHORT.


Subject: elm 2.2 Patch #0
Priority: Low

Somehow two large section of the Filter guide got deleted from the
official distribution as in comp.sources.unix.  This fixes that.  Those
that got the submission directly from dsinc do not have this problem.
This patch does not bump the revision number due to it not effecting
everybody.

