Added entry for new lexing function and moving from zotnet/tws to sbr
[mmh] / ChangeLog
1 Mon May 29 7:48:15 2000 Shantonu Sen <ssen@mit.edu>
2
3         * Moved the date parsing routines from zotnet/tws to sbr/ (and
4         tws.h to h/). Updated all source files to reflect to new location
5         of tws.h.
6
7         * Rewrote dparsetime (dtimep.c) to replace the old
8         zotnet/tws/dtimep.c, lexstring.c, lexedit.c, and
9         dtimep.c-lexed. It should now work with flex (although untested
10         with lex), and requires no sed-ing. For now, I have the lexed
11         version in the distribution, so that end-users don't need to worry
12         about running it through flex/lex. I have not added back support
13         for guessing the time zone when it's not specified.
14         
15 Sun May 28 17:44:15 CEST 2000 Ruud de Rooij <ruud@ruud.org>
16
17         * Added autoconf check for getutent().
18         * Changed uip/rcvtty.c and uip/slocal.c to use getutent() and
19           friends.  Since I can only check on Linux, please check if
20           this works on other systems.
21
22 Sun May 28 14:58:49 CEST 2000 Ruud de Rooij <ruud@ruud.org>
23
24         * Applied patch from Peter Maydell to uip/scansbr.c for more
25           checks for write failures.
26         * Unlink temporary file properly in uip/rcvtty.c.
27         * Moved viamail from bindir to libdir.
28         * Changed sendfiles into sendfiles.in, so that path to viamail
29           is patched in.
30         * Added gzip support to sendfiles.
31         * Added References header to replcomps and replgroupcomps.
32
33 Sun May 28 14:39:31 CEST 2000 Ruud de Rooij <ruud@ruud.org>
34
35         * Fixed m_getfld bug which caused segmentation faults when
36         incorporating messages which ended in multiple linefeeds crossing
37         a buffer boundary.
38
39 Fri May 26 13:21:59 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
40
41         * msh has been unable to show MIME messages ever since 1.0.  Alec
42         Wolman <wolman@cs.washington.edu> tracked down the problem to the
43         -show flag being passed to mhshow.  mhshow is equivalent to the
44         old mhn -show, so we don't need the -show anymore.  Removed it.
45
46 Fri May 12 02:51:21 2000 Shantonu Sen <ssen@mit.edu>
47
48         * zotnet/bboards is not longer built by default. Goal is to move
49         the assorted functions in zotnet into sbr or some more logical
50         place.
51
52         * Moved zotnet/mf to sbr, and changed mf.h references accordingly,
53         as well as Makefiles.
54         
55 Thu May 11 02:21:34 2000 Shantonu Sen <ssen@mit.edu>
56
57         * Simplified sbr/Makefile.in so that both SRCS and OBJS aren't
58         seperately and redundantly defined, but so that OBJS is a
59         pattern-substituted version of SRCS with suffix .c -> .o. This
60         should make maintainability easier.
61
62         * Added section to MACHINES indicating what platforms nmh is known
63         to compile and work on, just to give users peace of mind, or
64         something. This is by no means complete or exhaustive, so add
65         whatever you know works.
66         
67 Tue May 09 20:38:04 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
68
69         * Alphabetized Shantonu's $pop_kinds output on configure's "pop is
70         enabled" line.  If POP3 is the only kind of POP enabled, say so,
71         rather than just saying "yes" (which is ambiguous).
72
73         * Fixed four warnings in Shantonu's new getpass.c.  Needed to
74         #include <stdlib.h> for calloc(), <unistd.h> for ttyname(), and
75         "h/mh.h" for adios().  Also changed ch from char to int to get rid
76         of "comparison is always 1 due to limited range of data type" on EOF.
77
78         * Added steps to README.developers saying to change the version
79         number to X.Y.Z+dev.  Did a little rearranging and changed the FTP
80         dir from /home/ftp to /var/ftp to reflect Doug's new machine.
81
82         * Changed configure.in to use gcc -Wall even without
83         --enable-debug, to prevent developers compiling optimized from
84         introducing warnings, and to give end-users a warm, fuzzy feeling
85         as they (hopefully) see no warnings come out (except perhaps on
86         the lex output file) even with -Wall.
87
88         * Renamed getpass() to nmh_getpass() since the prototype for
89         getpass() varies from OS to OS, and we want to _always_ use our
90         version of the function.  Fixed all the callers to use
91         nmh_getpass() and added it to prototypes.h.  Semi-arbitrarily
92         upped MAX_PASSWORD_LEN from 128 to 256.  buf was being calloc()'d
93         and the memory leaked -- should have just been declared as static
94         char array.  Prepended "Portions of this code are" to the
95         copyright message, as this version has been changed significantly
96         from the BSD version.
97
98         * Added "nmh-local functions to use in preference to OS versions"
99         section to README.developers (currently just says to use
100         nmh_getpass() instead of system getpass()).
101
102         * Prepended "Portions of this code are" to the copyright message
103         in ruserpass.c also.
104
105         * Added mts.conf.5 page per Neil W Rickert <rickert+nmh@cs.niu.edu>'s
106         report:
107         
108             This happens on solaris:
109
110                      % man mts.conf
111                      windex entry incorrect:  mts.conf(5) not found.
112                      No manual entry for mts.conf.
113
114             It is fixed by
115
116                      % echo ".so man5/mh-tailor.5" > mts.conf.5
117
118             done in the man5 directory.  We need to add 'mts.conf.5' as a
119             reference sourcing mh-tailor.5.
120         
121 Mon May 08 23:51:55 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
122
123         * Doug informed me that the way I had restored the "lost" version
124         histories was wrong, because `cvs checkout's of old versions of
125         nmh wouldn't work properly.  It occurs to me that this could be
126         fixed by simply deleting those tags in the new-location *,v files,
127         but oh well.  I'm putting everything back to the way Doug
128         originally had it.  To get the old version history for a file that
129         used to be in the top directory, you'll need to "blindly" do a
130         `cvs log' there (even though you won't have a local copy of the
131         file in that directory).  `cvs diff' will no longer be able to
132         diff pre-move versions vs. post-move versions -- you'll have to do
133         a lot of manual gyrations with `cvs checkout' and then use `diff'.
134
135         * I had alphabetized the --configure options in the --help output
136         awhile back, but Shantonu added --enable-apop just under
137         --enable-pop.  Put it in alphabetical order and clarified what
138         --enable-apop does vs. --enable-pop and --with-krb4.  Also changed
139         --with-mts help line from "mail transport agent" to "mail
140         transport agent/service" so the 's' in "mts" doesn't seem to come
141         out of nowhere.
142
143         * Added two steps to "releasing nmh" in README.developers.  After
144         making the tarball, it's a good idea to diff the tree vs. the CVS
145         tree to make sure no files got left out, and then to chown the
146         files so that they're owned by root, preventing a Trojaning attack
147         by a malicious remote user with a UID matching yours.
148
149         * Changed DIFFERENCES to say that RPOP is not currently supported
150         rather than implying it by saying that APOP, KPOP, and POP[3] are.
151
152 Sun May 07 18:16:43 2000 Shantonu Sen <ssen@mit.edu>
153
154         * Imported NetBSD version of getpass() and made extensive
155         revisions for compatibility with programs that pipe the password
156         to stdin, such as exmh.
157
158         * Removed tests for system ruserpass() which sometimes gave
159         phantom positive results. Also, bext to use internal functions if
160         we ever want to change .netrc format to something else, or access
161         other files.
162
163 Sat May 06 08:28:09 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
164
165         * Restored lost version histories for those moved files by doing a
166         manual `mv' in the CVSROOT on mhost.  CVS badly needs a `cvs mv'
167         command so that you can move files (without having physical access
168         to the CVSROOT) without losing versioning.  Put MACHINES back at
169         the top level as it needs to be read before building.  Fixed DIST
170         variable in {.,docs}/Makefile.in to reflect that and to add
171         missing entry for "INSTALL" file.
172
173 Sat May 06 13:13:07 2000 Doug Morris <doug@mhost.com>
174
175         * Re-cleaned up nmh documentation (by moving things to docs
176         subdir) and modified Makefile & configure.in to handle the change.
177
178 Mon Apr 17 21:28:40 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
179
180         * Scott Blachowicz pointed out that the configure --help output
181         for --enable-masquerade was misleading.  Clarified.
182         
183 Mon Apr 17 19:01:00 2000 Shantonu Sen <ssen@mit.edu>
184
185         * APOP support can be compiled in to inc and msgchk using
186         --enable-apop.
187
188         * To access an APOP host, specify -apop on the command line
189         along with any -host or -user option.
190
191 Fri Apr 14 23:10:44 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
192
193         * Upped the version number to 1.0.4+dev until the next nmh release.
194
195         * Added a "releasing nmh" section to README.developers, while the
196         process was fresh in my mind.
197         
198 Fri Apr 14 18:21:34 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
199
200         * Added new files README.developers, ChangeLog_MH-3_to_MH-6.6, and
201         ChangeLog_MH-6.7.0_to_MH-6.8.4.html to DIST target in Makefile.in.
202         
203         * Released nmh-1.0.4.
204
205 Tue Apr 11 21:37:03 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
206
207         * Applied Brian Campbell <bacam@tardis.ed.ac.uk>'s mhn.defaults.sh
208         patch:
209
210             It appears that there shouldn't be quotes around the %s in the
211             iso-8859-1 charset entry; xterm passes the remaining arguments
212             to the program, quoting them means that xterm thinks they're
213             part of the program's name.
214
215         This %s isn't the same as the "Insert content subtype" one from
216         mhshow-show-* -- it doesn't come from MIME headers and is safe not
217         to quote.
218
219 Sun Apr 09 13:03:59 2000 Doug Morris <doug@mhost.com>
220
221         * added check in fmt_compile() to handle a single-character
222         format string. fmt_compile() depends on having an array of
223         format characters with an empty item at the end. A
224         single-character format would cause programs using this
225         function to segfault because the algorithm used to decide on
226         the length of the array mistakenly created a single-item array
227         when the format string was one character. This eventually
228         caused problems when the program attempted to test item+1
229         in the array.
230
231 Thu Apr 06 21:53:50 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
232
233         * Richard Coleman threw out a lot of old MH-specific files in nmh.
234         Much of the stuff, indeed, is not worth saving, but there are
235         nuggets that are very worthwhile, and should probably be added
236         back in.  Most important, IMHO, are the MH change logs, as they
237         can help answer questions like "Why is this code like this?" or
238         "How long has this been broken?" or "What was this ever used for?"
239
240         I've added a new file to the nmh tree called
241         ChangeLog_MH-3_to_MH-6.6.  It's cobbled together from the
242         mh-6.8.4/papers/mh*/MHCHANGES files.  I've re-ordered the entries
243         to go from newest at the top to oldest at the bottom to match the
244         ChangeLog convention.  Unfortunately there are no change logs for
245         versions of MH prior to 3 in the MH tar files available at
246         <ftp://ftp.ics.uci.edu/pub/mh>.  Also, it appears to me that there
247         are MH-6.6 changes that aren't documented in the logs.
248
249         I've also added ChangeLog_MH-6.7.0_to_MH-6.8.4.html.  This is
250         based on mh-6.8.4/papers/changes/mh-changes.ms.  The nroff format
251         and its "catman"-type output are a pain to deal with, but I was
252         loath to throw away the formatting, so I converted the file to
253         HTML.  The only actual markup in the body are the "<B>" and "<U>"
254         tags, and "&lt;" and "&gt;" instead of '<' and '>', so it's quite
255         doable to view the file in plain ASCII mode as well.  Note that
256         some of the changes this file documents as having been made in
257         MH-6.8.4 may not be present in nmh -- Richard started with 6.8.3
258         and later put in certain 6.8.4 stuff.
259         
260 Wed Apr 05 21:09:28 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
261
262         * Applied Eric Schnoebelen <eric@cirr.com>'s mhshowsbr.c patch
263         fixing apparent bugs in Dan Winship's new security quoting code:
264         
265             Since upgrading, I've been getting the following errors
266             while attempting to process some MIME messages:
267
268                 (1) Syntax error: Unterminated quoted string
269                     exit 2
270         
271             and:
272
273                 (2) line 1/10 (END)Segmentation fault (core dumped)
274
275             (2) appears to be due to the testing of an unset pointer in
276             mhshowsbr.c:show_multi_aux().  (1) appears to be caused by
277             mis-quoting a filename being handed to the shell in
278             mhshowsbr.c:show_content_aux().
279
280             Resolving the pointer reference issue in
281             mhshowsbr.c:show_multi_aux() turned up a similar mis-quoting
282             problem in the routine.
283
284 Tue Mar 28 16:17:39 2000 Doug Morris <doug@mhost.com>
285
286         * Applied Todd.Miller@courtesan.com's patch to dropsbr.c to
287         prevent core dumping on packf. Here's the note from his message:
288
289             Since sizeof(buffer) == sizeof(tmpbuffer) packf will dump
290             core on a file w/o a From line with a line >= BUFSIZ.
291             I noticed this because I had a junk file in my mail
292             spool somehow.
293
294 Fri Mar 17 11:59:33 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
295
296         * wesley.craig@umich.edu did not document his previous KPOP patch,
297         so I did so, and asked him to check what I wrote.  Unfortunately
298         he didn't notice my misunderstanding of his patch.  I wrote that
299         if you #define POPSERVICE "kpop", inc and msgchk will use KPOP
300         exclusively, but if you leave it as "pop3", you can use Wesley's
301         new -kpop switch on a given invocation.  Instead, however, -kpop
302         turned out to be necessary on every invocation, and a KPOP user
303         complained.  Applied Wesley's new patch, which makes things work
304         like I thought his original patch did.  After that, did one more
305         clarifying pass to the documentation in inc.man and msgchk.man.
306
307 Wed Mar 15 18:45:45 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
308
309         * When I fixed the long-standing makedir() bugs in January, I had
310         the code call strtoul(..., 0), which I believed to be safe as all
311         modes specified as ASCII constants in the nmh code started with a
312         leading zero (signifying octal), which I did as it would work if
313         internal constants were ever changed to hex.  Unfortunately I was
314         unaware of the "Folder-Protect:" .mh_profile entry, which
315         mh-profile.man documents as an octal-only constant, with no
316         leading zero required.  I've changed the strtoul() call to an
317         atooi() call and removed the misleading leading zeroes on the
318         ASCII octal constants in the code and man pages.  Also changed the
319         "Folder-Protect:" example in the man page to something more
320         interesting than a duplication of the default.
321
322         * When I added my --enable-masquerade option, you'll note that I
323         didn't make it --enable-nmh-masquerade.  I find the --enable-nmh-*
324         options too wordy and I'm not sure why Richard went that route.
325         I've renamed them to just --enable-*, but the old versions will
326         still work as well (they just aren't advertised).
327
328         * Added a line to the "nmh configuration" output saying whether
329         POP is enabled.
330
331         * Added a new README.developers file.  From the file:
332
333             This file is intended to provide a few tips for anyone doing
334             development on nmh.  Developers who learn things "the hard
335             way" about the nmh codebase (as opposed to local info best
336             encoded in a comment) are encouraged to share their wisdom
337             here.
338
339         Currently the topics are "autoconf files" and "directory structure".
340
341 Tue Mar 14 12:41:48 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
342
343         * Applied, after some finessing,
344         Simon Burge <simonb@thistledown.com.au>'s --with-smtpservers patch:
345
346             Here's a patch that allows you to add
347
348                     --with-smtpservers=<some.host.name>
349
350             to the ./configure command line to set the "servers: " line in
351             etc/mts.conf.  Around here, we use "mailhost" so that all
352             machines in the current domain just talk to a central machine
353             and nothing else runs an MTA.  Now, I can use
354
355                     --with-smtpservers=mailhost
356
357             instead of having to remember to fix this by hand (and often
358             forgetting to do so!).
359
360         * Inspired by Simon's patch, added an --enable-masquerade option
361         to configure.  It will set the "masquerade:" line of mts.conf.
362         You may specify a subset of the three types of masquerading, like
363         --enable-masquerade="draft_from mmailid", or leave off explicit
364         arguments to enable all three types.
365
366         * Alphabetized the --enable and --with options in configure.in and
367         INSTALL and added documentation of the two new options to the latter.
368
369         * Added new dependency for mts.conf: Makefile.  If this isn't
370         done, then when you reconfigure nmh with new values for
371         --enable-masquerade or --with-smtpservers, you'll fail to get an
372         updated copy of mts.conf.
373
374         * Applied Simon Burge <simonb@thistledown.com.au>'s dtimep.lex patch:
375
376             It seems that some MUA's didn't handle y2k very well - ELM
377             seems to be one of them, and Ultrix's DXmail (based on MH!).
378             I've got a few emails this month that look like:
379
380                     575   Jan 00  Xxxxxx Xxxx       3603  ...
381             and
382                      22+  Jan 00  Xxx Xxxxx         1771  ...
383
384             The first has "15 Jan 100" as the date and the second has 
385             "19 Jan 00" as the date.  The following works around this so 
386             that scan, show, sortm, etc work ok.
387
388         I put Simon's patch under the control of a new #define called
389         FIX_NON_Y2K_COMPLIANT_MUA_DATES.  There's some commentary in
390         acconfig.h about when you might not want to #define it.
391
392         * Created new dtimep.c-lexed with Simon's change using dtimep.lex
393         lexed on Solaris 2.6.  Added missing dependency in
394         zotnet/tws/Makefile.in for dtimep.c: dtimep.c-lexed.
395
396         * Added scan.MMDDYY and scan.YYYYMMDD format files.
397
398 Mon Mar 13 21:32:00 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
399
400         * Applied Sullivan N. Beck <sbeck@cise.ufl.edu>'s mhshow-suffix patch:
401
402             With the patch below, you can add lines like:
403
404                 mhshow-suffix-application/msword: .doc
405                 mhshow-suffix-application/PostScript: .ps
406
407             to the mhn.defaults file to append the given suffix to a
408             scratch file.  This allows applications which require a
409             certain suffix to run properly.
410
411         * Removed -force_html from lynx entry in mhn.defaults.sh (I
412         believe older versions of lynx lack that option) and added
413         "mhshow-suffix-text/html: .html".
414                 
415         * Modified username_extension masquerading to only use the
416         extended address on generated [Resent-]From: lines and SMTP
417         envelope From:.  With Neil's original implementation, nmh's global
418         idea of the username was changed, which would result in inc lying
419         and saying you had no new mail because it was looking for a
420         mailbox called, for instance, "dan-nmh" (where username was "dan"
421         and $USERNAME_EXTENSION was "-nmh").
422                 
423         * Applied Simon Burge <simonb@thistledown.com.au>'s dtime.c patch:
424         
425             There's a wrap-around problem that affects the implementation
426             of Zeller's congruence in dtime.c.  This causes the day-of-week
427             calculations to fail for dates after Feb 29, 2000 (probably up
428             until some year far in the future).
429
430 Mon Mar 06 12:20:20 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
431
432         * Applied Neil W Rickert <rickert+nmh@cs.niu.edu>'s msh.c patch:
433
434             I finally tracked down the problem in msh that was causing
435             errors whenever I tried to examine a 'mmdf' style mailbox.
436
437             It turns out that not enough memory was being allocated with
438             calloc(), causing memory pointers to be overwritten and
439             corrupted.
440                 
441 Fri Mar 03 16:07:33 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
442
443         * Changed the new "plussed_user" option to mts.conf's
444         "masquerade:" to "username_extension" after getting feedback from
445         qmail users, who use '-' as a separator rather than '+'.  Removed
446         checking of $USERPLUS variable.  Now check $USERNAME_EXTENSION,
447         which needs to include the appropriate separator for your MTA
448         ('-', '+', or whatever) as its first character.
449                 
450 Thu Mar 02 23:04:30 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
451
452         * Added a new "boolean" type to mh.h and TRUE and FALSE constants.
453                 
454         * Added a note to DIFFERENCES stating that it's out-of-date
455         (Richard was the last one to update it) and that we should
456         consider only documenting incompatibilities with MH there.
457
458         * Implemented (and documented) a third kind of username
459         masquerading: "plussed user" masquerading.  This one was suggested
460         by Neil Rickert <rickert+nmh@cs.niu.edu>.  It's based on sendmail's
461         "plussed user" feature, where mail sent to <user>+<string> will be
462         delivered to <user>.  When it's enabled, it's controlled by the
463         $USERPLUS environment variable.  How is it enabled?  Well, that
464         leads me to:
465
466         * Renamed the "mmailid:" setting in mts.conf to "masquerade:", and
467         changed it so that rather than being a boolean, it can be set to
468         any combination of the three values "draft_from", "mmailid", and
469         "plussed_user".  Thus it is now possible to enable the three types
470         of masquerading individually.
471
472         * Fixed a bug with "mmailid" masquerading (dating back to MH?)
473         where if it was turned on, ','s would no longer be considered
474         GECOS field delimiters.
475         
476 Wed Mar 01 23:30:50 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
477
478         * Changed the GECOS-field '&' translation behavior to be
479         controlled by the BSD42 #define rather than GCOS_HACK, since it's
480         apparently always appropriate on OSes where BSD42 is #defined, and
481         never appropriate on any other OSes.  Thanks to Kimmo Suominen for
482         responding to my "What is this code here for?" comment in mts.c
483         and explaining the feature.
484         
485 Mon Feb 28 21:50:29 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
486
487         * Upped the version number to 1.0.3+dev (ideally this should be
488         done by whoever makes a release tar file, immediately after doing
489         so).
490         
491         * Applied Paul Fox <pgf-spam@foxharp.boston.ma.us>'s scansbr.c
492         patch, posted to comp.mail.mh, which he says prevents loss of mail
493         when inc'ing into a full filesystem.
494
495         * Changed "echo > stamp-h.in" in Makefile.in to "date > stamp-h.in"
496         so that stamp-h.in will be different each time configure.in and
497         related files are changed, making it easier to check it in (which
498         is necessary to prevent unnecessary autoconf calls).
499
500         * My declaration of initgroups() in slocal.c to eliminate the "no
501         prototype" warning wasn't portable (FreeBSD 3.[23] choked).  Now
502         use AC_EGREP_HEADER to see where initgroups() is declared, if
503         anywhere.
504
505 Sun Feb 20 12:17:15 2000 Ruud de Rooij <ruud@ruud.org>
506
507         * Fix security hole in mhshowsbr.c which allowed untrusted shell
508           code to be executed.
509         
510         * Released nmh 1.0.3.
511
512 Thu Feb 10 10:54:36 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
513
514         * Oops.  %-escapes on mhstore lines in mhn.defaults.sh should not
515         be surrounded by single quotes, as a shell is not spawned when
516         just saving files, and the filenames will end up with literal
517         quotes embedded in them.
518
519 Fri Feb 04 12:29:12 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
520
521         * Whoever originally added the -help switch to all the commands
522         got too cute and had the option itself print out as "-(help)" in
523         the -help output.  One theory is that they were making reference
524         to the fact that clearly you know about the -help option since
525         you're currently looking at its output.  I think it's a bad idea
526         to overload the meaning of the parentheses, however -- they're
527         supposed to indicate what abbreviated prefix of the switch you're
528         allowed to specify.
529
530         The other theory is that because you can say something like
531         "mhstore -" and get "mhstore: - ambiguous.  It matches" followed
532         by the same list of switches you get with -help, they were saying
533         you can "sorta" abbreviate "-help" as "-".  You don't get the
534         "Usage:" string, though, so it's not really the same thing.
535
536 Thu Feb 03 17:52:01 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
537
538         * Applied wesley.craig@umich.edu's KPOP patches.  According to him:
539
540               The following patch fixes a problem with requesting a
541               service key for a machine that has multiple 'A' records.  It
542               also makes "-kpop" a command line option, for users who
543               would like to use both "kpop" and "pop".
544
545         Did no testing of the new features, as I don't have access to a
546         KPOP server.
547
548         * Modified inc.man and msgchk.man to document Wesley's new -kpop.
549
550         * Modified INSTALL and config.h.in to reflect the new -kpop feature.
551
552 Fri Jan 28 17:39:24 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
553
554         * All %-escapes in mhn.defaults that actually expand to something
555         should be surrounded by single quotes.  Added quotes to the ones
556         in mhn.defaults.sh that were missing them.
557
558         * Added check for lynx to write mhshow-show-text/html line in
559         mhn.defaults.sh.
560
561 Thu Jan 27 12:22:25 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
562
563         * makedir() had multiple bugs dating back to MH.  An octal
564         constant was apparently being interpreted as decimal, resulting in
565         directories with no user read or execute permissions, making
566         nested directory creation fail.  And there wasn't even an
567         _attempt_ to set desired permissions (e.g. from "Folder-Protect:"
568         in .mh_profile) on the outer directories of a nested directory.
569
570         * A second `make install' would always fail because the check for
571         whether mh_profile.5 existed was written incorrectly.
572         
573 Wed Jan 26 02:22:00 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
574
575         * Added documentation on both types of masquerading to post's man
576         page.
577
578 Tue Jan 25 22:58:12 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
579
580         * Doug's portability fix of my setgid inc autodetection had a
581         caching bug -- if you re-ran configure, uip/Makefile would be
582         corrupted, and installation would bomb out on OSes where inc needs
583         to be setgid.
584
585         * Implemented a new kind of email address masquerading.  Usually,
586         when a user writes a custom "From:" header in a draft, nmh uses it
587         rather than generating one.  However, the user's true address is
588         used in the SMTP envelope "From:" and is revealed in the "Sender:"
589         header.  Now, when mmailid is set to non-zero, the envelope
590         "From:" uses the address specified in the draft "From:" header,
591         and there is no "Sender:" header.  This is useful when sending on
592         behalf of a remote POP3 account or when remote mail robots
593         incorrectly use the envelope "From:" in preference to the body
594         "From:".  This processing has only been implemented for post, not
595         for the undocumented spost (which was already missing some "From:"
596         processing that post has).
597
598 Mon Jan 24 22:26:06 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
599
600         * Got rid of the rest of the gcc -Wall warnings that I didn't have
601         time for on 1999-07-15 (and, it would seem, some new ones people
602         introduced since then).  The primary ones were the warnings that
603         default prototypes were being used for [v]snprintf() and
604         str[n]casecmp().  As of right now, there are _no_ compilation
605         warnings except on dtimep.c-lexed (at least under AIX 4.1.5 and
606         Solaris 2.6).
607
608 Sun Jan 2 23:42:18 2000 Ruud de Rooij <ruud@ruud.org>
609
610         * Move mhtest from bindir to libdir.
611
612         * Move sendfiles from libdir to bindir.
613
614         * Updated sendfiles manpage to reflect this change.
615
616         * Added documentation for -build and -file switches to repl and 
617           forw manpages (patch from Peter Maydell).
618
619         * Fixed interaction between specifying -cc in profile and -group on 
620           command-line.
621
622 Tue Nov 1 13:48:10 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
623
624         * Changed the version number from 1.0.3 to 1.0.2+dev.  There was
625         not unanimous support for my proposed even/odd release/developer
626         version number dichotomy.  1.0.2+dev implies release 1.0.2 plus
627         some development.
628
629 Fri Oct 29 13:42:51 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
630
631         * Upped the version number to 1.0.3.  If we don't do this, then
632         when people report bugs against 1.0.2, we won't know "which" 1.0.2
633         they're talking about (since the development source is publically
634         available via CVS).  I think the Linux kernel version numbers are
635         a good model, so the next time we roll a tarball, it should be
636         version 1.0.4 (or higher -- anyhow, an even-numbered version).
637
638 Fri Oct 29 06:41:08 1999 Doug Morris <doug@mhost.com>
639
640         * Released nmh-1.0.2.
641
642 Tue Oct 26 22:57:00 1999 Doug Morris <doug@mhost.com>
643         
644         * Added check for whether "libtool" is in fact gnu libtool. If
645         it is, it is not used. This is the wrong behavior. If vendor
646         XYZ later on decides to create yet another libtool, we'll be
647         caught again. This works for now.
648
649         * Minor updates to MACHINES refering to Mac OS X.
650
651 Thu Oct 21 20:45:37 1999 Doug Morris <doug@mhost.com>
652
653         * Added check for "libtool" (a ranlib type tool for Mac OS X)
654         and modified Makefiles so that nmh will build under Mac OS X.
655
656 Sun Oct 17 08:28:56 1999 Ruud de Rooij <ruud@ruud.org>
657
658         * Changed repl defaults to partly revert to MH behaviour,
659           "-cc all" is now only implied with -group.
660
661         * The replcomps template includes cc: header again (as in MH).
662
663         * Updated repl man page to reflect these changes.
664
665 Sat Oct 16 02:57:47 1999 Doug Morris <doug@mhost.com>
666
667         * Tweaked configure to handle Solaris and SunOS after the BIND
668         changes. Both need more cleanup.
669
670 Sat Oct 16 00:17:36 1999 Doug Morris <doug@mhost.com>
671
672         * Removed BIND define and replaced it with a check for
673         gethostbyname (to determine if the host is DNS aware) and a
674         check for sethostent. This appears to be the right thing to
675         do, but there is no explanation of the reasoning behind the
676         BIND define in the code and it appears to have been used for
677         multiple purposes. 
678
679 Wed Oct 13 15:53:53 1999 Doug Morris <doug@mhost.com>
680
681         * Updated manpages Makefile to link mh-profile.5 to
682         mh_profile.5 after installation. Suggestion from Richard Cohen
683         <richard@jubjub.demon.co.uk>.
684
685         * Modified configure.in to check for _IO_write_ptr and libio.h
686         to determine whether to define LINUX_STDIO instead of using 
687         config.guess.
688
689 Mon Oct 4 15:22:46 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
690
691         * Added '-L' to the calls of 'ls' in configure.in -- I have seen
692         multiple machines in the past where the mail spool was a symlink
693         to a directory on another device with more free space.
694
695 Fri Oct 1 22:36:56 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
696
697         * Fixed a portability problem in Doug's fix of a portability
698         problem in my MAILGROUP autoconf support ('ls -l' vs. 'ls -lg'). 
699
700 Sat Sep 25 18:40:43 1999 Ruud de Rooij <ruud@ruud.org>
701
702         * Added config.sub and config.guess to the list of files to be
703         distributed.
704
705         * Fixed bug in sbr/fmt_scan.c where an extra newline would be
706         added if a list of addresses was split over several header lines.
707
708         * In mts/smtp/smtp.c, undefine strlen and strcpy if they are
709         macros, regardless of platform.
710
711         * Allow q to quit mhshow, and n to skip to next part.  Patch from
712         Kimmo Suominen <kim@tac.nyc.ny.us>.
713
714         * Modified mhstore to recognize attachments created by sendfiles
715         with x-conversions=gzip.
716
717 Mon Sep 13 21:20:10 1999 Doug Morris <doug@mhost.com>
718
719         * added explicit cast to long from time_t for tclock in
720         post.c.
721
722         * Commented out #ifdefs for <sys/ioctl.h> in termsbr.c since
723         it's needed for ioctl() anyway. This prevents a warning about
724         implicit definition of ioctl().
725
726         * Moved guesses performed by AC_CANONICAL_SYSTEM back into the
727         "User Configuration" section of config.h (moved @TOP@ in
728         acconfig.h) so they're easier to find, should someone actually
729         want to mess with them.
730
731 Sun Sep 12 15:50:34 1999 Doug Morris <doug@mhost.com>
732
733         * updated Makefile.in so it recognized COMPLETION-TCSH and
734         COMPLETION-ZSH (only used in make nmhdist). 
735
736         * added prototype for ruserpas to <h/prototypes.h>. Fixes
737         warnings in mhparse.c and mhbuildsbr.c.
738
739         * added include checks for <time.h> and <sys/time.h> to
740         prevent warnings in fmt_compile.c, fmt_scan.c, lock_file.c,
741         sendsbr.c, mhbuildsbr.c, mhcachesbr.c, picksbr.c, and post.c.
742
743         * added include for <zotnet/mts/mts.h> to ali.c, scan.c, ap.c,
744         rcvdist.c, rcvstore.c, rcvtty.c, and spost.c to remove
745         warnings about implicit definition of mts_init().
746
747         * added <grps.h> to slocal.c to prevent warnings about
748         function initgroups.
749
750         * added <h/signals.h> to prevent warning about missing SIGNAL
751         function.
752
753         * added function prototypes to smtp.c, whatnowproc.c,
754         mhbuildsbr.c, mhparse.c, mshcmds.c, show.c, whatnow.c, mhl.c
755         to fix warnings.
756
757         * explicitly declared mbx_style in mshcmds.c and lused in
758         fmtdump.c as type static int instead of just static to
759         prevent warnings.
760         
761         * various code cleanups to prevent ambiguous statements
762         (brackets for if/thens and parens for complicated if
763         statements).
764
765
766 Sun Sep 12 09:19:27 1999 Doug Morris <doug@mhost.com>
767
768         * commented out _cleanup() in mf.c because it's the only
769         location in all of the source code where it exists. It was
770         preventing compilation on at least linux.
771
772         * Added check for <db1/ndbm.h> which is the new location where
773         linux systems appear to be stuffing this header file.
774
775 Thu Sep 09 23:15:49 1999 Doug Morris <doug@mhost.com>
776
777         * fixed varous mkstmep bugs introduced in 1.0.1 by me. Whups!
778
779         * added mh_profile SEGV patch from Richard Cohen
780         <richard@jubjub.demon.co.uk> that prevents crashing when
781         mh_profile doesn't end in a newline. A similar patch was
782         previously sent in by Andrew Bettison <andrewb@zip.com.au>.
783
784         * fixed bug in associated with MAILGROUP #define (group "mail"
785         is not universal) -- hard to believe, but true.
786
787 Tue Sep 7 16:47:03 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
788
789         * Renamed ZSH.COMPLETION to COMPLETION-ZSH and added COMPLETION-TCSH.
790
791 Tue Aug 17 16:06:29 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
792
793         * Automated #define of MAILGROUP and installation of inc as setgid mail
794         when the mail spool directory isn't world-writable.
795
796 Thu Jul 15 18:37:07 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
797
798         * slocal -debug used to leave a file in /tmp for each message
799         processed.  Very bad for folks with slocal -debug in their .forward!
800
801         * Got rid of a ton of compilation warnings.  Most were "junk"
802         warnings due to the use of gcc -Wall (without -Wno-parentheses),
803         but a few represented real bugs.  There remain many warnings to be
804         tackled that are due to missing function prototypes (e.g. snprintf()).
805
806         * Default rcvdistcomps no longer puts a copy of all outgoing
807         messages in outbox.  Added an rcvdistcomps.outbox that does.
808
809 Sat Jun 09 12:22:47 1999 Doug Morris <doug@mhost.com>
810
811         * Updated configure to check for mkstemp (available on OpenBSD) and 
812         substitute it for mktemp if available. 
813
814 Thu May 13 16:40:19 1999  Doug Morris <doug@mhost.com>
815
816         * Added config.sub and config.guess and updated acconfig.h and
817         configure.in to automatically detect system type and set the
818         proper #defines.
819
820 Wed May 12 23:41:33 1999  Dan Winship  <danw@mit.edu>
821
822         * Released nmh-1.0.1.
823
824 Fri May  7 17:18:28 1999  Dan Winship  <danw@mit.edu>
825
826         * Fixed flist to properly deal with relative folder names.
827         Problem noted by Jerry Peek <jpeek@jpeek.com>.
828
829         * Fixed --with-krb4 to work with original Kerberos 4 libraries as
830         well as the Kerberos 5 compat libraries. Based on a patch from
831         Assar Westerlund <assar@sics.se>.
832
833         * Added a check in configure.in to test if modf is in libc and
834         link with libm if not. This is needed by at least Digital UNIX. 
835         Problem pointed out by Kevin Oberman <oberman@es.net>.
836
837         * Fix a bug from the "mhn -show" to "mhshow" renaming that
838         made the "list" command in whatnow not work for some users.
839         From Ruud de Rooij <r.c.m.derooij@twi.tudelft.nl>.
840
841         * Replaced "extern int errno" with "#include <errno.h>" in a
842         number of files. Suggested by Stephen Wilson Bailey
843         <swb@nconnect.net>.
844
845         * Fixed a problem in how "packf -mbox" translated "Return-Path:"
846         lines. From Kimmo Suominen <kim@tac.nyc.ny.us>.
847
848         * Fixed a segmentation fault in inc. Patch originally from Ruud de
849         Rooij <r.c.m.derooij@twi.tudelft.nl>.
850
851         * Allow display of 8bit encoded messages. From Kimmo Suominen
852         <kim@tac.nyc.ny.us>.
853
854         * Fixed repl to not add line breaks in the middle of long
855         addresses when building a reply. From Ruud de Rooij
856         <r.c.m.derooij@twi.tudelft.nl>.
857
858         * Added -library switch to spost so it can parse user aliases like
859         post does. From Ruud de Rooij <r.c.m.derooij@twi.tudelft.nl>.
860
861         * Changed configure.in's check for sigsetjmp to properly deal
862         with systems like Linux where it is a macro. From
863         <elleron@servtech.com>.
864
865         * Fixed a bug in whatnow that could cause it to sometimes exit
866         without prompting the user. Based on a patch by Richard Geiger
867         <rmg@netapp.com>.
868
869         * Added code to deal with SIGPIPE in mhl so it doesn't print
870         "Broken pipe" if you quit out of the moreproc.
871
872         * Documentation: Added a note to MACHINES about Irix make. Added a
873         pointer to the online copy of the MH book in INSTALL. Added
874         some additional information to the whatnow and packf man pages,
875         suggested by Jerry Peek <jpeek@jpeek.com>.
876
877         * Updated INSTALL, FAQ, etc to not refer to Richard as the
878         maintainer or math.gatech.edu as the home any more.
879
880 1999-02-06  Richard Coleman  <coleman@math.gatech.edu>
881
882         * Released nmh-1.0.
883
884         * Merged mbx_open and mbx_Xopen in dropsbr.c.  Fixed
885           mbx_open so that the mode of zero length maildrops
886           would not be changed.
887
888         * Replaced the substitute version of snprintf() with the
889           one from the Apache web server.
890
891         * Changed to default mode for creating new messages to 0600
892           (this should have been done a long time ago).
893
894         * Changed "flist" to handle searching for multiple sequences
895           for each folder.  Also flist will now correctly split
896           Unseen-Sequence if it consists of multiple sequences.
897
898         * Added new switches `-unlink' and `-nounlink' to "refile".
899
900         * Added new switches `-unlink' and `-nounlink' to "rmm".
901
902         * More cleanups of slocal output.  Changed adorn() to
903           send to stdout, instead of stderr (to match rest of
904           verbose printing).
905
906         * Merged mbx_create() into mbx_open, so that creating and
907           opening a nonexistent maildrop is done atomically.  This
908           removes a bad race condition.
909
910         * Fixed bug that caused slocal to be unable to save to MMDF
911           style drop file.
912
913         * Added new wrapper function usr_folder() to slocal.c to
914           handle adding message to folder (currently, it still uses
915           usr_pipe() to call rcvstore).
916
917         * seq_list() checks for empty folder before scanning for
918           sequence information.
919
920         * num_digits() in flist.c and folder.c now returns correct
921           value for 0.  Also added sanity check.
922
923         * folder_delmsgs() now correctly decrements internal message
924           count.
925
926         * Don't attempt to read sequence information if folder
927           is empty.
928
929         * Split seq_read into seq_public and seq_private.
930
931         * Small change to sigmsg.awk, since newer versions of gawk
932           interpret 034 as octal.
933
934         * In flist, don't scan for sequence information in empty folder.
935
936         * Updated mhn.defaults.sh to output profile entries for mhshow,
937           mhstore, and mhbuild.
938
939         * Changed configuration parameter "mhn-access-ftp" to
940           "nmh-access-ftp".  Updated man pages
941
942         * Moved the code in InitMultipart to reverse the order of the
943           parts in a multipart, into its own function "reverse_parts()".
944
945         * Changed code in mhbuildsbr.c to store unencoded content
946           in the c_cefile structure when building.
947
948         * Changed code in mhoutsbr.c to look for unencoded content
949           in the c_cefile structure when outputing message.
950
951         * Changed configuration parameter "mhn-cache" and
952           "mhn-private-cache", to "nmh-cache" and "nmh-private-cache",
953           since it is used in mhstore, mhlist, and mhshow.  Updated man pages
954
955         * Change configuration parameter "mhn-storage" to
956           "nmh-storage", since it is now used in mhstore, mhlist,
957           and mhshow.  Updated man pages
958
959         * Add autoconf support for KPOP (kerberized pop).
960
961         * Add autoconf support for Hesiod.
962
963         * Split routines to output a message given a Content structure
964           (output_message, output_content, write7Bit, etc..) to a new
965           file "mhoutsbr.c".
966
967         * Split output_content(), into output_content() and build_headers().
968
969         * Changed copy_some_headers() in mhstoresbr.c, to use the linked
970           list of header fields, rather than reopening the message.
971
972         * Added free_header() to mhfree.c to free structures containing
973           header field information.
974
975         * Changed get_content() to use the linked list of header fields
976           when parsing the various MIME headers (Content-XXX).
977
978         * Changed get_content() to store linked list of header field
979           values when parsing a content.
980
981         * Changed mhbuild, mhn, mhlist, mhshow, mhstore, to use the
982           routines in mhcachesbr.c to handle the content cache.
983
984         * Split various funtions (find_cache, find_cache_aux, find_cache_aux2,
985           cache_content) into new file mhcachesbr.c.
986
987         * More calls to sprintf/strcpy (primarily in mhparse.c
988           and mhbuildsbr.c) converted to snprintf/strncpy.
989
990         * When a message is displayed with `mhshow', it is now
991           removed from the "unseen" sequence.
992
993         * Change the default "showmimeproc" to "mhshow".
994
995         * Split "mhn -show" off into separate command "mhshow".
996
997         * Split "mhn -store" off into separate command "mhstore".
998
999         * Split "mhn -list" off into separate command "mhlist".
1000
1001         * Add sanity checks to context_find(), context_replace(),
1002           and context_del(), to abort if context file hasn't been
1003           read.
1004
1005         * Add calls to context_read(), to the beginning of all nmh
1006           commands (instead of being called indirectly by context_find).
1007
1008         * Changes the "substitute" version of vsnprintf/snprintf for
1009           operating systems without native versions, to just call the
1010           native vsprintf(), and ignore the buffer length.   This is
1011           faster, but less secure than the previous version that used
1012           temporary files.  This should only be a problem for systems
1013           which do not have a native snprintf(), and require `inc' to
1014           be setuid/setgid.
1015
1016         * Lots more calls to sprintf/strcpy converted to snprintf/strncpy.
1017
1018         * Changes client() routine to take additional parameter, which is
1019           the buffer length of the parameter "response".  Then added
1020           buffer length checks for this parameter.
1021
1022         * Changed getws() to get_fields(), since that is apparently the
1023           name of a wide character version of gets() on some archetitures.
1024
1025         * Lots of sprintf/strcpy calls converted to snprintf/strncpy.
1026
1027         * Change the code in most of the commands that take multiple
1028           message names/sequences/ranges on the command, such that
1029           the msgs array is expanded dynamically.  This removes most
1030           of the limits on the length of command lines.
1031
1032         * Add additional parameter to copyip(), to specify the
1033           maximum number of strings that can be copied (security
1034           fix).
1035
1036         * Create new function getarguments(), to massage the argument
1037           vector before parsing it (add any arguments from your
1038           profile to the beginning of the argument vector).  This
1039           also removed the general limit on the number of command line
1040           arguments.
1041
1042 1998-07-04  Richard Coleman  <coleman@math.gatech.edu>
1043
1044         * Released nmh-0.27.
1045
1046         * Added a new command "delete", that is available during
1047           a "whatnow" session.  It is equivalent to "quit -delete".
1048
1049         * Added another parameter to editfile (in whatnowsbr.c),
1050           that controls whether editfile should remember the last
1051           program that was exec'ed.  This way the whatnow command
1052           "mime", will not be re-executed if "edit" is later given
1053           with no arguments.
1054
1055         * Changed whatnowsbr.c, so that whatnow doesn't abort if
1056           mhbuild returns an error.
1057
1058         * Added parameter to sendsbr(), so you may specify whether to
1059           rename the draft file.
1060
1061         * Pass delay time to splitmsg() as a parameter, rather than
1062           use a global variable.
1063
1064         * Moved code to rename draft file after sending message from
1065           splitmsg and sendaux, to sendsbr.
1066
1067         * Removed all the code in viamail to split messages and then
1068           mail them.  Replaced this with the standard sendsbr.c routines.
1069
1070         * Changed sendsbr(), so that when splitting messages into
1071           messages of type "message/partial", the header fields that
1072           are copied are more compliant with RFC-2046.
1073
1074         * Fixed mhbuild to track temporary files better.  They are
1075           now correctly removed when mhbuild aborts.
1076
1077         * Created a new man page for "sendfiles".  The information
1078           about "mhn -viamail" in the "mhn" man page was moved to
1079           this new page.
1080
1081         * Changed the name of the "viamail" shell script to
1082           "sendfiles".  Modified "sendfiles" to use the new
1083           viamail program.
1084
1085         * Moved the functionality for "mhn -viamail" out of mhn,
1086           and into a separate executable called "viamail".
1087
1088         * When storing MIME contents to a folder using mhn -store,
1089           they are now accumulated in a temporary file, and then added
1090           to the folder using folder_addmsg().
1091
1092         * Moved code to save content to a folder from store_content
1093           to new function output_content_folder.
1094
1095         * Moved code to save content to file from store_content to
1096           new function output_content_file.
1097
1098         * Moved code to parse storage format string from store_content
1099           to new function parse_format_string.
1100
1101         * Fix copy_some_headers() in mhstoresbr.c, so that the
1102           correct header fields in the first enclosing message/partial
1103           will be copied (according to RFC2046), when using mhn -store
1104           to reassemble messages of type message/partial.
1105
1106         * Fixed bug to openFTP() in mhparse.c, that caused the
1107           tmp file to not be removed, when transferring a
1108           message/external file from ftp.
1109
1110         * Moved the code in mhparse.c to process -auto switch (scan
1111           contents for the attribute "name"), to a new function
1112           "get_storeproc" in mhstoresbr.c.
1113
1114         * Moved routines to free data structures related to MIME
1115           content from mhparse.c and mhbuildsbr.c, to new file
1116           mhfree.c.
1117
1118         * Moved code to show/display MIME content into new
1119           file mhshowsbr.c.
1120
1121         * Moved code to store MIME content from into
1122           new file mhstoresbr.c
1123
1124         * Moved code to parse MIME content into new
1125           file mhparse.c.
1126
1127         * Moved code to list information about MIME content
1128           into new file mhlistsbr.c.
1129
1130         * Move part_ok(), type_ok(), content_error(), flush_errors(),
1131           and set_endian() to new file mhmisc.c.
1132
1133         * Start to isolate the code to show, list, and store MIME
1134           messages.  One side effect is that only one flag (-show,
1135           -list, or -store) can be used at a time now.
1136
1137         * mhn -store -auto wasn't storing file in correct directory.
1138
1139         * Removed a few dead variables from sbr/ruserpass.c
1140
1141         * move code for creating tmp files, and renaming the
1142           the composition draft in mhbuild, from build_mime()
1143           to main().
1144
1145         * remove left-over code in mhbuild.c, mhbuildsbr.c, for
1146           the -[no]auto switch (which isn't used in mhbuild).
1147
1148         * split mhn.c into mhn.c and mhnsbr.c (name later changed
1149           to mhparse.c).
1150
1151         * split mhbuild.c into mhbuild.c and mhbuildsbr.c.
1152
1153 1998-05-25  Richard Coleman  <coleman@math.gatech.edu>
1154
1155         * Released nmh-0.26.
1156
1157         * Added (unlisted) options [no]dashstuffing to send, post,
1158           and whatnow to determine whether to do RFC934 quoting
1159           (dashstuffing) for encapsulated BCC messages.  The default
1160           is still the same (dashstuffing).
1161
1162         * Changed the undocumented feature "nodashmunging" in forw
1163           and mhl, into the documented feature "nodashstuffing".  The
1164           default for forw, is still "dashstuffing" for backward
1165           compatibility, although I don't believe that bursting
1166           RFC934 digests is very common anymore.
1167
1168         * Added an option to define REALLYDUMB in the default config.h.
1169           But it is not on by default.
1170
1171         * moved creation of config file mts.conf from zotnet/mts
1172           to etc.  This simplified the Makefile in zotnet/mts.
1173
1174         * simplified directory support/general to etc.
1175
1176         * removed unneeded directory support/bboards.
1177
1178         * split getusername() into getusername() and getuserinfo().
1179
1180         * Changed getusr() routine to getusername().
1181
1182         * Slight cleanup in folder_pack.c on code that records the new
1183           number of the "cur" message when packing.
1184
1185 1998-05-08  Richard Coleman  <coleman@math.gatech.edu>
1186
1187         * Released nmh-0.25.
1188
1189         * Change install process, so that hard linking the correct mts
1190           library to libmts.a, is not necessary.  The final link process
1191           uses the original name of the library.
1192
1193         * Fixed bug in flist.c and folder.c, so that symbolic links which
1194           point to directories, will not decrement the number of directory
1195           links remaining.
1196
1197         * Split the function list_content (in mhn.c and mhbuild.c) into
1198           list_content and list_debug.
1199
1200         * Don't pack (folder -pack) an empty folder.
1201
1202         * Exit gracefully in flist.c, if no sequence is specified,
1203           and no "Unseen-Sequence" is given in nmh profile.
1204
1205 1998-02-27  Richard Coleman  <coleman@math.gatech.edu>
1206
1207         * Released nmh-0.24.
1208
1209         * Small clarification to the man page for `ali'.
1210
1211         * Fix bug in inc.c so that if both flags `-file' and `-truncate'
1212           are given, that order doesn't matter.
1213
1214         * Fix bug in seq_list.c when realloc'ing for
1215           large sequence line.
1216
1217 1998-02-23  Richard Coleman  <coleman@math.gatech.edu>
1218
1219         * Released nmh-0.23.
1220
1221         * Add new section on "Transfer Encodings" to man page for mhbuild.
1222
1223         * In mhbuild.c, split compose_content into compose_content
1224           (parse and execute composition string), and scan_content (scan
1225           content, decided transfer encoding, check for clash with boundary
1226           string).  I did a good amount of rearranging of this code.
1227
1228         * Moved definitions for data structures for parsing MIME
1229           messages from mhn.c and mhbuild.c to a new include
1230           file h/mhnsbr.h.
1231
1232         * Small amount of rearranging in sendsbr.c
1233
1234         * Small changes to MAIL.FILTERING file.
1235
1236         * Add the file MAIL.FILTERING to nmh distribution.
1237
1238         * Add line to packf so that if message begins with
1239           "X-Envelope-From:" field, it is converted to "From ".
1240
1241         * Fix packf to add "From " line to beginning of message,
1242           even if Return-Path doesn't exist.
1243
1244         * Add note to MACHINES file that on Linux, configure
1245           doesn't find the functions sigsetjmp/siglongjmp.
1246
1247         * Fix configuration for machines that don't have (or find)
1248           sigsetjmp/siglongjmp.
1249
1250 1998-02-11  Richard Coleman  <coleman@math.gatech.edu>
1251
1252         * Released nmh-0.22.
1253
1254         * Add a configure check for sigsetjmp.  Add some conditional
1255           #define's in h/signals.h in case it's not found.
1256
1257         * Added additional notes about -auto switch in mhn man page.
1258
1259         * Added note about MM_CHARSET environment variable to
1260           mh-profile(5) man page.
1261
1262         * Fix signal problem in mhn.c (change setjmp/longjmp to
1263           sigsetjmp/siglongjmp).
1264
1265 1998-02-09  Richard Coleman  <coleman@math.gatech.edu>
1266
1267         * Released nmh-0.22-pre1.
1268
1269         * Changed the first line in mhl.format from
1270           " -- using template mhl.format -- " to a blank line.
1271
1272         * Added note about automimeproc to mh-profile man page.
1273
1274         * Reorganize the main entry point for parsing a MIME message
1275           or file in mhn.  Add new function parse_file() as new main
1276           entry point for parsing MIME files.
1277
1278         * Add note to mhn man page, that "mhn -file -" will accept the
1279           source message on the standard input.
1280
1281         * Changed a sanity check in folder_realloc that was too strict.
1282
1283         * -norfc934mode is now the default for mhbuild,
1284           rather than -rfc934mode.
1285
1286         * Fix mhbuild, so that Content-Description and RFC-822 comments
1287           from #forw directive will be correctly included if there is
1288           only one message.
1289
1290         * Change mhn to correctly default parts of multipart/digest to
1291           message/rfc822 (leftover code from rfc934mode was removed).
1292
1293         * Restore HP specific code to zotnet/tws/lexstring.c.  Apparently
1294           it is still needed.
1295
1296 1998-02-06  Richard Coleman  <coleman@math.gatech.edu>
1297
1298         * Released nmh-0.21.
1299
1300         * If the file given to mhbuild is "-", then accept the draft on
1301           standard input, and output the MIME message to standard output.
1302
1303         * Cleaned up code in mhbuild.c that decides what transfer
1304           encoding to use.
1305
1306         * Cleaned up code in mhbuild.c that decides what character set
1307           to use for text contents.
1308
1309         * Removed old hpux specific code from zotnet/tws/lexstring.c
1310
1311 1998-02-02  Richard Coleman  <coleman@math.gatech.edu>
1312
1313         * Released nmh-0.21-pre2.
1314
1315         * Added the "decode" variable to mhl.format and mhl.header.
1316
1317         * Added new variable "decode" to mhlsbr.c to decode text in
1318           header fields as per RFC-2047.
1319
1320         * Make sure that when decoding RFC-2047 header fields, that any
1321           spaces at the ends of the encoded text are not ignored, but the
1322           spaces between encoded word are.
1323
1324         * Removed #ifdef's for MIME.  MIME support is always compiled in.
1325
1326         * scan/inc will now decode both Subject and From lines as
1327           RFC-2047 encoded header fields.
1328
1329         * Added new function write_charset_8bit() to sbr.  It returns
1330           the character set to use for 8bit text in composition draft.
1331           Changed mhbuild to use this function.
1332
1333         * Split mhn man page into man pages for mhn and mhbuild.
1334
1335         * mhn -show will only now only use default method for content
1336           of type plain, if it is NOT a part of a multipart/alternative.
1337
1338         * Split mhn -build into mhbuild.  Did some code cleanup.
1339
1340         * Added support for %(decode) to fmtdump.c.
1341
1342         * check_charset() now accepts US-ASCII as a subset of any
1343           ISO-8859-X character set.
1344
1345         * Changed the default "showproc" to mhl, instead of the
1346           pager more.
1347
1348         * When reading file into mhn composition file, only need read
1349           permissions, not write permissions.
1350
1351         * Added own version of strcasecmp to distribution, since
1352           nmh calls it frequently with NULL pointers (ughh).
1353
1354         * Replaced uleq.c with strcasecmp.  Removed uleq.c from
1355           distribution.
1356
1357 1998-01-22  Richard Coleman  <coleman@math.gatech.edu>
1358
1359         * Released nmh-0.21-pre1.
1360
1361         * If a message is missing charset parameter to text/plain, show
1362           will assume US-ASCII, rather than just calling showmimeproc.
1363
1364         * Change show.c and mshcmds.c to use check_charset to see if text
1365           message contains valid character set.
1366
1367         * Added new scan format file "scan.nomime" to support/general
1368           that doesn't do any RFC-2047 decoding.
1369
1370         * Modified all the scan format files in support/general to do
1371           RFC-2047 decoding of Subject field.
1372
1373         * Did more work on sbr/fmt_rfc2047.c, so that it will correctly
1374           ignore whitespace between two valid encoded words, but not
1375           between an encoded word and normal text.
1376
1377         * Created new file sbr/check_charset.c.  Moved code from
1378           fmt_rfc2047.c to check for valid character set to this file.
1379
1380         * Added format escape %(decode) to decode contents of "str" register
1381           as a RFC-2047 header field.
1382
1383         * The command install-mh now recognizes the switches -version
1384           and -help.
1385
1386         * Added a new argument to print_help.c to decide whether to
1387           print profile entries (needed for install-mh to prevent weird
1388           loops).
1389
1390         * Changed folder_read.c and folder_realloc.c so that mp->lowoff
1391           is initialize to max (mp->lowmsg, 1) rather than always 1.
1392
1393         * Changed macros for sequence/attribute manipulation so that
1394           message status array doesn't need to always start at 1.
1395
1396         * Small cleanups in folder_realloc().
1397
1398 1998-01-09  Richard Coleman  <coleman@math.gatech.edu>
1399
1400         * Released nmh-0.20.
1401
1402         * Added configure option --with-pager=PAGER.
1403
1404         * Added configure option --with-editor=EDITOR.
1405
1406         * Changed the default format file for mhl (mhl.format) to
1407           also ignore (not display) the header fields Content-Type,
1408           Content-Transfer-Encoding, and Content-ID
1409
1410         * Fixed core dump in addrsbr.c when using %(proper) format function
1411           and the To: line was missing.
1412
1413         * Added the file ZSH.COMPLETION to the distribution.
1414
1415 1998-01-04  Richard Coleman  <coleman@math.gatech.edu>
1416
1417         * Released nmh-0.20-pre2.
1418
1419         * Added new switch -snoop to both `msgchk' and `inc', so you can
1420           watch the POP transaction.
1421
1422         * Changed "replgroupcomps" to check for Mail-Followup-To header
1423           first, and use it if available.
1424
1425         * Changed "replcomps" to check for Mail-Reply-To header
1426           first, and use it if available.
1427
1428 1998-01-03  Richard Coleman  <coleman@math.gatech.edu>
1429
1430         * Released nmh-0.20-pre1.
1431
1432         * Changed seq_list.c to dynamically enlarge the buffer for
1433           collecting the message ranges in a long sequence line.
1434           This should remove the last hard limit on the size of a
1435           sequence line.
1436
1437         * Changed seq_read.c so that can read long sequence lines.
1438           It will use multiple calls to m_getfld() when m_getfld()
1439           returns the state FLDPLUS.
1440
1441         * Changed brkstring.c to dynamically add more space for pointers
1442           if necessary.  This is needed when splitting up large sequence
1443           lines.
1444
1445         * Did some small cleanups in seq_save.c.
1446
1447         * Added new switches `-[no]unseen' to rcvstore, to control
1448           whether new messages are added to Unseen-Sequence.
1449
1450         * Moved locking routines (zotnet/mts/lock.c) to sbr/lock_file.c
1451
1452         * Changed the internal UNSEEN flag to SELECT_UNSEEN which is
1453           more appropriate.  Changed the MHPATH flag to ALLOW_NEW.
1454
1455         * Changed "replcomps" to not include CC and TO lines so that
1456           that reply message is only directed at the author of the
1457           message to which you are replying.
1458
1459         * Added new switch `-group' to command repl, which causes repl
1460           to use new forms file "replgroupcomps".  This is intended for
1461           making group replies.
1462
1463         * Removed #ifdef for ATHENA.
1464
1465 1997-12-28  Richard Coleman  <coleman@math.gatech.edu>
1466
1467         * Released nmh-0.19.
1468
1469         * Fix repl,forw so that switch `-form file' will not abort
1470           as ambiguious (silly mistake on my part).
1471
1472         * Cleaned up the mhn man page.  Added info about a few escapes
1473           for the formatting/display strings that were not documented
1474           (%%, %t).  Moved the BNF grammar for the mime composition file,
1475           to the end of the man page.
1476
1477         * Added the options -[no]format to the command repl.  The
1478           switch `-format' will filter the message to which you are
1479           replying with the standard message filter "mhl.reply", which
1480           is now included in the distribution.  The `-noformat' option
1481           will negate the use of -format or -filter and not include
1482           the message to which you are replying in the draft.
1483
1484         * Did some cleaning and reorganization on many of the man
1485           pages.
1486
1487         * Added debugging switch `-debug' to mhparam, which displays
1488           the values of all `procs' (and some other misc configuration
1489           info) that nmh keeps in global variables.
1490
1491         * When using `refile -preserve', if a conflict occurs, then use
1492           the next available number above the message number you wish
1493           to preserve.
1494
1495         * In forw.c, split the code for creating MIME style forwarding
1496           out of copy_draft, and into copy_mime_draft.
1497
1498         * Move routines in mark.c to print sequences, into new
1499           file sbr/seq_print.c
1500
1501         * flist will now update the current folder.
1502
1503         * Added the switches -[no]fast to flist, to replace
1504           -[no]total.  The previous switches are still accepted
1505           but now undocumented.
1506
1507         * More reorganization in flist of the code for
1508           traversing folders.
1509
1510         * The command "flist +foo -all" will now scan the folder
1511           "foo" and all its 1st level children.
1512
1513         * Add missing include file <h/mh.h> to sbr/snprintf.c
1514
1515         * Fix alarm bug in rcvtty, so that when it calls external
1516           process, the alarm is never longer than 30 minutes.
1517
1518 1997-12-17  Richard Coleman  <coleman@math.gatech.edu>
1519
1520         * Released nmh-0.18.
1521
1522         * Fixed bug in mark, so that "mark -list -seq foo" will
1523           correctly indicate if "foo" is a private sequence.  I found
1524           this bug mentioned in Jerry Peek's book.
1525
1526         * Simplified the code in seq_setcur(), since seq_addmsg() now
1527           retains the public/private status of sequences.
1528
1529         * Changed sequence handling so that if the switches -public
1530           or -nopublic, are not specified for the commands mark, pick,
1531           or rcvstore, then existing sequences will retain their
1532           previous public/private status.
1533
1534         * mhparam now handles the mh-sequences profile entry
1535           correctly.
1536
1537         * flist -all will now also check readonly folders (for
1538           private sequences).
1539
1540         * Improve the leaf optimization for folder command.
1541           It will now track the number of directories in a folder,
1542           and stop stat'ing files once it has hit all the subfolders.
1543
1544         * Renamed m_getfolder to getfolder.  Changed getfolder to
1545           take option to determine whether it should get current
1546           folder, or just default folder (Inbox).  Changed rcvstore,
1547           inc, and rmf to use the new getfolder.
1548
1549         * flist now indicates if a sequence is private.
1550
1551         * Change WUNTRACED to 0, in pidwait.c, so that commands will
1552           wait for stopped processes.
1553
1554         * conflict will dynamically allocate space for group names,
1555           so it can now handle system with more than 100 groups.
1556
1557 1997-12-09  Richard Coleman  <coleman@math.gatech.edu>
1558
1559         * Released nmh-0.18-pre4.
1560
1561         * Check if we have enough message status space, before we
1562           call folder_realloc() in burst, mhpath, and m_draft().
1563
1564         * mhn will now correctly identify a formatting string of "-"
1565           for the option -store, and send content to stdout.
1566
1567         * Change the way that memory for message status is
1568           allocated.  It is dynamcially allocated separately from
1569           the folder/message structure.  This required changing
1570           folder_read.c, folder_realloc.c, folder_free.c.
1571
1572         * Removed all the MTR code (experimental code for message
1573           status allocation).
1574
1575         * Renamed m_readfolder.c to folder_read.c and simplified
1576           the code.
1577
1578         * Renamed m_freefolder.c to folder_free.c.
1579
1580         * Add function trim() to slocal.c to pretty print
1581           the debugging output.
1582
1583         * Changed the name of m_packfolder() to folder_pack().
1584           Changed the name of m_remsg() to folder_realloc().
1585
1586 Wed Dec  3 23:33:38 1997  Richard Coleman  <coleman@math.gatech.edu>
1587
1588         * Released nmh-0.18-pre3.
1589
1590         * Changed installation to add `flists' which is hard linked
1591           to `flist'.  This is a equivalent to `flist -all'.
1592
1593         * For flist, -showzero is on by default.
1594
1595         * Major changes to flist.  Default is now for flist to search
1596           current folder.  The switch `-all' is now used to specify
1597           searching all top level folders.  The new switch `-showzero'
1598           is used to print out folders that don't contain any messages
1599           in the given sequence.
1600
1601         * Split BuildFolderList in flist.c into 2 functions
1602           (BuildFolderList, BuildFolderListR).  Changed these functions
1603           so that flist now does better leaf optimization, and will stop
1604           stat'ing directory entries when it knows it has hit all the
1605           subdirectories of a given directory.
1606
1607         * Reorganized code in folder.c, so that all relevant folders
1608           are scanned first and information recorded.  Then all the
1609           folder summaries at printed out at one time.
1610
1611         * Made the options of folder(s) more orthogonal.  Now
1612           "folder -all -noheader -nototal" will do the right thing.
1613
1614         * Added `-noall' switch to folder, for completeness.
1615
1616         * Changed the default mode for creation of new folders
1617           to 0700 (was 0711).
1618
1619         * Slightly changed the format for flist.  It now indicates
1620           if a folder is current.  Also the width of the various
1621           fields are now calculated at runtime.
1622
1623         * Changed the format for folder(s).  Folder names
1624           are now left justified.  The width of the various fields
1625           are calculated at runtime.
1626
1627 Sun Nov 30 19:14:53 1997  Richard Coleman  <coleman@math.gatech.edu>
1628
1629         * Released nmh-0.18-pre2.
1630
1631         * Add paragraph to man page for install-mh and to INSTALL file
1632           about checking for global mh.profile.
1633
1634         * Renamed m_find() to context_find().
1635           Renamed m_replace() to context_replace().
1636           Renamed m_delete() to context_del().
1637           Renamed m_update() to context_save().
1638           Renamed m_getdefs() to context_read().
1639           Renamed m_foil() to context_foil().
1640
1641         * Change rcvstore to use routine folder_addmsg(), instead of
1642           adding message to folder itself.
1643
1644         * Changed refile, so that if the switch -preserve is used,
1645           and a conflict occurs for a particular folder, then folder_addmsg()
1646           will just use next highest available number for that folder,
1647           instead of exiting.
1648
1649         * Make folder_addmsg() more robust.  It will make repeated
1650           attempts to link file into folder if link returns with
1651           the error EEXIST.
1652
1653         * Fix bug, so that that if forking sendmail, HELO will be sent
1654           unless clientname: option is defined but empty (so now it
1655           is the same as the direct smtp code).
1656
1657         * Changed sprintb to snprintb (now we pass the buffer length
1658           to new routine).  Changed code to use new function.
1659
1660         * Added snprintf to sbr. Added configure check to build it
1661           if you don't have a native version (but haven't changed much
1662           code to use it yet).
1663
1664 Thu Nov 13 18:42:18 1997  Richard Coleman  <coleman@math.gatech.edu>
1665
1666         * Released nmh-0.18-pre1.
1667
1668         * Fixed alarm bug in slocal, so that alarm is never
1669           called with a value larger than 30 mintues.
1670
1671         * Fixed race condition in rmm and refile, so that
1672           context is updated before external rmmproc is called.
1673
1674         * Removed all the OVERHEAD code.
1675
1676         * Move code to add message to folder from refile.c
1677           to folder_addmsg.c
1678
1679 Fri Jul 25 19:39:29 1997  Richard Coleman  <coleman@math.gatech.edu>
1680
1681         * Did some rearranging of the internals of inc.c.
1682
1683         * Make -inplace the default for anno, forw, dist, and repl.
1684
1685         * Changed --enable-smtp to --with-mts={smtp,sendmail}
1686
1687         * Created new directory mts/sendmail for direct sendmail
1688           interface (although it currently still uses SMTP).
1689
1690         * Removed all the TMA (trusted mail agent) code
1691
1692         * Removed all the TTYD (terminal access daemon) code
1693
1694         * Removed all the MF (uucp filtering) code.
1695
1696         * Removed all the code for BERK.
1697
1698         * Removed all the code for stand-alone delivery (MHMTS).
1699
1700         * Split the file mts/sendmail/smail.c into sendmail.c and
1701           smtp.c.  Changed the name of the directory to mts/smtp.
1702
1703         * Changed autoconf to use @sysconfdir@ for location of
1704           configuration files.
1705
1706         * Changed #define in mhn.c from FTP to BUILTIN_FTP.
1707
1708 Mon Jul 21 03:22:34 1997  Richard Coleman  <coleman@math.gatech.edu>
1709
1710         * Released nmh-0.17.
1711
1712         * MAKEDEFS weren't passed down to recursive makes correctly.
1713
1714         * slocal.c now checks for UTMP_FILE and _PATH_UTMP instead
1715           of hard-coding "/etc/utmp".
1716
1717         * rcvtty.c check for _PATH_UTMP if UTMP_FILE is not
1718           defined.
1719
1720         * Remove configure checks for ulong and ushort.  Changed
1721           code to just use unsigned {short, long}.
1722
1723         * Change addmsg function in refile.c to return new
1724           number of refiled message.
1725
1726         * Added check in get_returnpath for empty unixbuf.
1727
1728         * Cleanup of sbr/pidstatus to use more POSIX macros
1729           for return value of wait().
1730
1731         * Change configure to also check /bin for "more".
1732
1733 Sat Jul 12 00:02:23 1997  Richard Coleman  <coleman@math.gatech.edu>
1734
1735         * Released nmh-0.16.
1736
1737 Mon Jun 23 20:13:24 1997  Richard Coleman  <coleman@math.gatech.edu>
1738
1739         * Added automimeproc, which should replace automhnproc.
1740
1741         * multipart messages will no longer abort for messages
1742           of type 8bit or binary (although we still can't really
1743           deal with binary messages, yet).
1744
1745         * Fix double free of c_storage.  From John MacMillan.
1746
1747         * mhn now treats unknown subtypes of "text" as text/plain.
1748
1749         * mhn changed so that specifying mhn-show-multipart, or
1750           mhn-show-multipart/{mixed, alternate, etc...) will override
1751           the use of the internal method for displaying these types.
1752           Previously mhn would always use the internal method for subtypes
1753           mixed, alternate, digest, and parallel (even if an alternate
1754           method was specified in mhn.defaults).
1755
1756         * mhn show treats unknown subtypes of multipart, as type
1757           multipart/mixed (as specified RFC2046).
1758
1759         * mhn checks for the parameter "name" rather than "x-name".
1760           From MH-6.8.4 patch.
1761
1762         * Fix double free of ctinfo in user_content when using
1763           #forw with single message.  From John MacMillan (and
1764           MH-6.8.4 patch).
1765
1766         * Changed -mhnproc switch for show, to -showmimeproc.
1767
1768         * Changed profile entry "mhnproc" to "showmimeproc".
1769
1770         * Added "mime" option to "whatnow", which calls the program
1771           "buildmimeproc" (default is mhn -build) to process MIME
1772            composition files.
1773
1774         * Added -build switch to mhn, to process MIME composition
1775           files.
1776
1777         * Did some reorganizing of mhn.c.
1778
1779         * Changed casting in mts/sendmail/smail.c from (char) to
1780           (signed char) so SMTP reply codes work correctly for machines
1781           which used unsigned chars by default.
1782
1783 Sat Jun 21 01:21:47 1997  Richard Coleman  <coleman@math.gatech.edu>
1784
1785         * Released nmh-0.15.
1786
1787         * Added new form "scan.unseen" to distribution.  It marks messages
1788           which are in any sequence in Unseen-Sequence.
1789
1790         * Do some rearranging of date/time code in zotnet/tws/dtime.c
1791
1792         * Fix sign extension bugs in fmt_scan.c.
1793
1794         * Fix m_atoi.c so that strings ending in non-digit characters
1795           return 0.
1796
1797         * Split code in burst.c so that finding delimiters of digested
1798           messages and bursting a message into multiple messages are
1799           two separate functions (find_delim and burst).
1800
1801         * Add workaround fo AC_PATH_PROG in configure.in, so
1802           that BSD4.4 machines can find sendmail, vi, more.
1803
1804         * Added "-width" option to rcvtty.
1805
1806         * Change a few variable names in zotnet/mts/client.c since
1807           they conflict with defines on AIX.
1808
1809         * Makefile in zotnet/tws assumes lexing of dtimep.lex was
1810           unsuccessful if resulting file is less than 500 lines long
1811           (rather than 10, which was previous value), since AIX
1812           sed gives mangled file of about 200 lines.
1813
1814         * Extract code in rcvstore.c to link message into folder,
1815           and put in own subroutine.
1816
1817         * Extract code in refile.c to link message into folder,
1818           and put in own subroutine.
1819
1820         * Moved code to remove messages from folder into own
1821           routine "folder_delmsgs" in sbr.  Changed rmm.c and
1822           refile.c to use new routine.
1823
1824 Fri May 16 06:09:31 1997  Richard Coleman  <coleman@math.gatech.edu>
1825
1826         * Renamed m_seqok to seq_nameok.
1827
1828         * Changed m_setunseen, msh, mshcmds, flist, and scan to use
1829           seq_getnum.
1830
1831         * Changed m_seqflag to return the number of a sequence rather
1832           than its bit flag.  Changed its name to seq_getnum and renamed
1833           file to sbr/seq_getnum.c.
1834
1835         * Removed function m_seqnew and file sbr/m_seqnew.c since it is
1836           no longer used.
1837
1838         * Added zero switch to m_seqadd function to zero out bits before
1839           adding message to sequence.
1840
1841         * Renamed function m_setvis to m_setunseen, and renamed
1842           corresponding file in sbr.
1843
1844         * Renamed function m_setseq to m_setprev, and renamed corresponding
1845           file in sbr.
1846
1847         * Changed mark.c and pick.c to use m_seqaddsel and m_seqdelsel.
1848
1849         * Added new function m_seqdelsel to m_seqdel.c, which deletes
1850           all selected messages from a sequence.
1851
1852         * Added new function m_seqaddsel to m_seqadd.c, which adds all
1853           selected messages to a sequence.
1854
1855         * Split sbr/m_seqnew.c into m_seqadd.c, m_seqdel.c, m_seqnew.c,
1856           and m_seqok.c.
1857
1858 Thu May 15 00:53:17 1997  Richard Coleman  <coleman@math.gatech.edu>
1859
1860         * Renamed function pack_folder to m_packfolder, and moved it
1861           from uip/folder.c into its own file sbr/m_packfolder.c
1862
1863 Wed May 14 23:38:00 1997  Richard Coleman  <coleman@math.gatech.edu>
1864
1865         * Changed function m_gmsg to m_readfolder.  Renamed file
1866           sbr/m_gmsg.c to sbr/m_readfolder.c.
1867
1868 Mon May  5 19:57:11 1997  Richard Coleman  <coleman@math.gatech.edu>
1869
1870         * Expanded rcvtty man page, and added small patch from
1871           MH-6.8.4 distribution.
1872
1873 Fri May  2 15:24:34 1997  Richard Coleman  <coleman@math.gatech.edu>
1874
1875         * Released nmh-0.14.
1876
1877         * Comment out configure test and code for tgetent to allocate its
1878           own termcap buffer when passed a NULL argument.
1879
1880 Sat Apr 26 03:46:38 1997  Richard Coleman  <coleman@math.gatech.edu>
1881
1882         * Added new options `-checkmime', `-nocheckmime', and `-mhnproc'
1883           to show.  Restructured code to handle options to various
1884           `procs' better.  Deprecated `-noshowproc' option and NOMHNPROC
1885           environment variable.
1886
1887         * Added new man page `mh-draft' which documents the
1888           draft folder facility in nmh.
1889
1890         * Renamed fmtsbr.h to fmt_scan.h.  Renamed fmtcompile.h
1891           to fmt_compile.h.
1892
1893         * split fmtsbr.c into fmt_scan.c and fmt_new.c.  Renamed
1894           fmtcompile.c to fmt_compile.c, and formataddr.c to
1895           fmt_addr.c.
1896
1897         * `send -help' wasn't showing the -(no)mime and -split
1898           options.
1899
1900 Fri Apr 25 02:50:36 1997  Richard Coleman  <coleman@math.gatech.edu>
1901
1902         * Released nmh-0.13.
1903
1904         * Changed mhpath so it doesn't abort if a message sequence
1905           such as "mhpath all" expands to more than 1000 messages.
1906           Also mhpath now dynamically reallocated space for message
1907           names (The number of command line arguments is still limited
1908           to MAXARGS).
1909
1910         * Did some general restructuring of the code in folder.c
1911           that checks for folder information, and prints it.
1912
1913 Thu Apr 24 01:04:37 1997  Richard Coleman  <coleman@math.gatech.edu>
1914
1915         * Changed `folder' to reallocate space for folder names if
1916           necessary.  So `folders' can now handle more than 300 folders.
1917
1918 Tue Apr 22 14:01:26 1997  Richard Coleman  <coleman@math.gatech.edu>
1919
1920         * Change configure to use a compile check to see if the tm struct
1921           has tm_gmtoff, rather than using egrep.
1922
1923 Mon Apr 21 02:19:17 1997  Richard Coleman  <coleman@math.gatech.edu>
1924
1925         * Released nmh-0.12.
1926
1927         * Had set_exists and unset_exists macros backwards.
1928
1929         * Released nmh-0.11.
1930
1931 Thu Apr 10 02:39:53 1997  Richard Coleman  <coleman@math.gatech.edu>
1932
1933         * Added documentation to mh-profile.man about the various
1934           `procs' (mhlproc, showproc, lproc, etc...).
1935
1936         * Replace the bit twiddling for SELECTED, UNSEEN, and
1937           mp->attrstats with macros.
1938
1939         * If system doesn't have SIGEMT (like Linux), then use SIGTERM
1940           in msh.c instead.
1941
1942         * Change fstat to stat in m_gmsg.c since Linux wants
1943           to hide dd->dd_fd.
1944
1945         * Merge Linux patch sent in by Michel Oosterhof (original
1946           patch from bsa@kf8nh.wariat.org).
1947
1948         * Document an undocumented MH feature.  mhn -form mhl.null
1949           will suppress the display of the message header.
1950
1951         * mhparam will now return "mhparam etcdir".
1952
1953         * Add catproc to /config/config.c and use that in show.c
1954           and mshcmds.c, rather than hard coding in /bin/cat.
1955
1956         * Add mhnproc to the list of `procs' in mh-profile.man.
1957
1958         * Add configure test for lorder and tsort commands.
1959
1960         * Commented out the padding in the `msgs` struct in h/mh.h
1961
1962         * Change m_gmsg.c to allocate elements to the `info' array by
1963           500 elements at a time (rather than MAXFOLDERS / 5).
1964
1965         * Add note to man page for mhmail that zero length messages are
1966           not sent.  Need to use -body "" to send empty messages.
1967
1968         * zotnet/mts/mts.c : compare character with '\0', not NULL.
1969
1970         * sbr/getcpy.c : assign '\0' to character, not NULL.
1971
1972         * add m_fmsg to most programs in uip so that they explicitly free
1973           folder/message structure when done with folder.
1974
1975         * uip/slocal.c : cleanup processing of sender.  Make sure it is
1976           defined even if message is missing "From " line.
1977
1978 Mon Mar 31 03:37:35 1997  Richard Coleman  <coleman@math.gatech.edu>
1979
1980         * Released nmh-0.10.
1981
1982 Sun Mar 30 21:46:17 1997  Richard Coleman  <coleman@math.gatech.edu>
1983
1984         * Add configure check for <locale.h>.  Turn on LOCALE support
1985           by default.
1986
1987 Thu Mar 20 03:21:24 1997  Richard Coleman  <coleman@math.gatech.edu>
1988
1989         * Reversed previous decision to retain "From " lines in slocal.
1990           The "From " line is now removed from all messages.
1991
1992         * inc now saves the date from the "From " envelope in the
1993           Delivery-Date header for all messages.
1994
1995         * sbr/m_getfld.c: Clean up processing of Return-Path and
1996           Delivery-Date from the "From " envelope.
1997
1998 Mon Mar 17 19:03:36 1997  Richard Coleman  <coleman@math.gatech.edu>
1999
2000         * client.c: cast iaddr to int before comparing return value
2001           of inet_addr with NOTOK.
2002
2003 Tue Mar 11 04:38:10 1997  Richard Coleman  <coleman@math.gatech.edu>
2004
2005         * Grep test for signal names was failing on some OS'es because
2006           of missing tabs in regex.
2007
2008 Sat Mar  8 01:58:22 1997  Richard Coleman  <coleman@math.gatech.edu>
2009
2010         * Released nmh-0.09.
2011
2012         * Move config files and format files to *.old before installing.
2013
2014         * Add configure check for killpg.
2015
2016         * msh.c: include <termios.h> instead of <termio.h> and
2017           <sys/ioctl.h>.
2018
2019         * prompter.c: don't include <sys/ioctl.h> anymore.
2020
2021 Thu Mar  6 04:03:24 1997  Richard Coleman  <coleman@math.gatech.edu>
2022
2023         * Added `-mime' and `-nomime' options to `repl'.
2024           From MH-6.8.4 diff.
2025
2026 Tue Mar  4 03:10:37 1997  Richard Coleman  <coleman@math.gatech.edu>
2027
2028         * ruserpass.c : removed conflicting prototypes.
2029
2030         * rcvtty.c : Fixed rcvtty to obey terminal permissions granted
2031           by `mesg' command.  Previously only worked on BSD machines.
2032
2033 Mon Mar  3 00:18:59 1997  Richard Coleman  <coleman@math.gatech.edu>
2034
2035         * rcvtty.c : Changed to use #define UTMP_FILE (if exists) rather
2036           than hard coded "/etc/utmp".
2037
2038         * Released nmh-0.08.
2039
2040         * Changed slocal to lock .maildelivery (or file given by -maildelivery)
2041           when accessing ndbm/db file for duplicate suppression, instead of
2042           locking database itself.
2043
2044 Thu Feb 27 05:28:09 1997  Richard Coleman  <coleman@math.gatech.edu>
2045
2046         * Added slocal action `mmdf' to deliver to a file in mmdf format.
2047
2048         * Changed the slocal actions `file' and `>' to always deliver in
2049           mbox (uucp) format rather than be determined by RPATHS config
2050           option.
2051
2052         * Changed the slocal action `mbox' to deliver in mbox (uucp) format
2053           rather than mmdf format.
2054
2055         * slocal now adds Delivery-Date field to all messages (previously it
2056           only added it to messages when delivering them to a file). The
2057           "From " line is now retained on all messages if compiling with
2058           RPATHS, rather than being discarded.
2059
2060         * rcvpack no longer adds the Delivery-Date field to messages.
2061
2062 Sun Feb 23 22:03:54 1997  Richard Coleman  <coleman@math.gatech.edu>
2063
2064         * Removed the script packmbox, since it's functionality has been
2065           added to packf.
2066
2067         * Changed packf so that it uses mbox (uucp) format by default
2068           rather than mmdf format.  Added options -mbox and -mmdf to
2069           packf so you can choose the preferred format.
2070
2071         * Changed rcvpack so that it uses mbox (uucp) format by default
2072           rather than mmdf format.  Added options -mbox and -mmdf to
2073           rcvpack so you can choose the preferred format.
2074
2075 Tue Feb 18 00:01:05 1997  Richard Coleman  <coleman@math.gatech.edu>
2076
2077         * Changed nmh to use dot locking by default (although you
2078           can still easily change this in config.h).
2079
2080         * Simplified locking code.  Removed code allowing setting of
2081           locking type in mts.conf.  Now the locking type and locking
2082           directory (if any) can only be set at compile time.
2083
2084 Fri Feb 14 02:49:18 1997  Richard Coleman  <coleman@math.gatech.edu>
2085
2086         * Prefer getting timezone information from tm->gmtoff rather
2087           than tzset and external timezone variable.
2088
2089 Thu Feb 13 00:35:45 1997  Richard Coleman  <coleman@math.gatech.edu>
2090
2091         * Fixed typo in ruserpass.c in the variable toktabs.
2092
2093         * When ruserpass was added to LIBOBJS, it was missing
2094           the suffix.
2095
2096         * Released nmh-0.07.
2097
2098 Tue Feb 11 01:29:47 1997  Richard Coleman  <coleman@math.gatech.edu>
2099
2100         * Add check to configure, so that if ruserpass, or _ruserpass
2101           is not found, build version of ruserpass in sbr.
2102
2103         * Added define's to discard.c, m_getfld.c, and scansbr.c so
2104           the code that manipulates internals of stdio, will build
2105           on SCO 5.x.
2106
2107         * Added #define to control whether to compile the simple
2108           built-in FTP client in mhn.
2109
2110         * Added configure check for ushort and ulong.  Change code
2111           to use ushort/ulong rather than u_short/u_long.
2112
2113         * A couple of small cleanups in locking code.
2114
2115         * Added configure check for gmtoff element in struct tm.
2116
2117         * Added configure check for tzset.
2118
2119 Fri Feb  7 03:01:57 1997  Richard Coleman  <coleman@math.gatech.edu>
2120
2121         * Released nmh-0.06.
2122
2123         * Removed code for machines that don't have socket
2124           interface (how could they get mail anyway?).
2125
2126         * Removed code for BSD41 machines.  I don't think there are
2127           many such machines around anymore.
2128
2129         * Add configure check for function uname, and prefer it
2130           over gethostname.  General cleanup of zotnet/mts/mts.c.
2131
2132         * Change all `lseek' calls to use POSIX symbolic constants
2133           SEEK_SET, SEEK_CUR, SEEK_END.
2134
2135 Thu Feb  6 01:16:30 1997  Richard Coleman  <coleman@math.gatech.edu>
2136
2137         * Check lex generated file in zotnet/tws and use
2138           pre-generated version if necessary.
2139
2140         * Released nmh-0.05.
2141
2142         * Change to use reliable signals on all platforms that have
2143           sigaction.  Change so that interrupted system calls are
2144           restarted for all signals except SIGALRM.  This fixes alarm
2145           handling code in smail.c for BSD based systems.
2146
2147         * Added lorder and tsort commands so that created libs can
2148           be linked in one pass.
2149
2150 Tue Feb  4 01:33:00 1997  Richard Coleman  <coleman@math.gatech.edu>
2151
2152         * Changed pidwait so that while it is waiting for a child,
2153           it should block signals rather than ignore them.
2154
2155 Mon Feb  3 21:05:30 1997  Richard Coleman  <coleman@math.gatech.edu>
2156
2157         * Add checks to configure for dbm_open and -lndbm.
2158
2159 Thu Jan 30 05:15:42 1997  Richard Coleman  <coleman@math.gatech.edu>
2160
2161         * folder -pop and folder -push were freeing some memory too
2162           quickly, which caused the entry popped from the stack to not
2163           become the current folder.
2164
2165 Wed Jan 29 01:28:02 1997  Richard Coleman  <coleman@math.gatech.edu>
2166
2167         * Released nmh-0.04.
2168
2169         * Define ospeed and PC in termsbr.c is OS doesn't have
2170           it.
2171
2172 Sun Jan 26 20:25:10 1997  Richard Coleman  <coleman@math.gatech.edu>
2173
2174         * editfile will create a symbolic link to the altmsg if it
2175           can't make a link, on any machine supporting lstat.  Formerly
2176           this would happen only on BSD42 based machines.
2177
2178 Sat Jan 25 22:54:26 1997  Richard Coleman  <coleman@math.gatech.edu>
2179
2180         * traverse (in popsbr.c) wasn't calling va_start before using
2181           variable argument list.  Fixes core dump in inc when using POP.
2182
2183 Fri Jan 24 03:27:59 1997  Richard Coleman  <coleman@math.gatech.edu>
2184
2185         * The variable pass in remotemail needed to be set to
2186           NULL.  (From MH-6.8.4 diff).  Fixes core dump of msgchk when
2187           using POP.
2188
2189         * inc and msgchk were using -rpop by default when configured
2190           with POP support.  Default is now -norpop.
2191
2192 Thu Jan 23 02:01:17 1997  Richard Coleman  <coleman@math.gatech.edu>
2193
2194         * By default, post will now give the SMTP HELO command with
2195           the local hostname.  If you specify a hostname with the
2196           clientname: option in mts.conf file, post will give the
2197           HELO command with that name instead.  If the argument to the
2198           clientname: option is empty, no HELO command is given.
2199           (From the MH-6.8.4 diff)
2200
2201 Wed Jan 22 01:55:45 1997  Richard Coleman  <coleman@math.gatech.edu>
2202
2203         * When using `-help' for a command, it will also print its
2204           profile compents from .mh_profile. (From MH-6.8.4 diff)
2205
2206         * "slocal -file" will now correctly takes its input from
2207           a file (currently need to specify full path).
2208
2209 Sun Jan 19 20:37:21 1997  Richard Coleman  <coleman@math.gatech.edu>
2210
2211         * "slocal -debug" will now issue a warning if a non-blank
2212           line in the .maildelivery file has less than 5 fields.
2213
2214 Sat Jan 18 02:26:41 1997  Richard Coleman  <coleman@math.gatech.edu>
2215
2216         * Changed slocal so that code for duplicate suppression
2217           (MH config was MSGID) is always built. Added the options
2218           -[no]suppressdup to slocal to turn this on/off.
2219
2220 Thu Jan 16 00:26:34 1997  Richard Coleman  <coleman@math.gatech.edu>
2221
2222         * Released nmh-0.03.
2223
2224         * Fixed problem where mark would core dump if no
2225           .mh_sequence file existed.
2226
2227         * Fixed problem where slocal would core dump if -debug
2228           option was given, and certain headers were missing.
2229
2230         * Added patch to slocal to add `folder' (+) action, which
2231           is shorthand for piping message to rcvstore.  Updated
2232           man page.
2233
2234 Wed Jan 15 21:30:17 1997  Richard Coleman  <coleman@math.gatech.edu>
2235
2236         * Changed flist option -unseen to -[no]all.  Cleaned up
2237           flist man page.
2238
2239 Fri Jan 10 20:36:33 1997  Richard Coleman  <coleman@math.gatech.edu>
2240
2241         * Fixed flist.  Changed the profile component `Folder-Order'
2242           to `Flist-Order.  Added option `-sequence' to flist, so
2243           you can specify the name of the sequence to search for.
2244
2245 Thu Jan  9 00:20:48 1997  Richard Coleman  <coleman@math.gatech.edu>
2246
2247         * A few minor portability cleanups.  Changed to use PATH_MAX
2248           rather than MAXPATHLEN.  Don't assume ospeed variable exists
2249           in termsbr.c.  Removed some conflicting prototypes.
2250
2251 Wed Jan  8 11:05:02 1997  Richard Coleman  <coleman@math.gatech.edu>
2252
2253         * Add configure test to check if tgetent will accept NULL
2254           and allocate its own buffer.  Borrowed from zsh.
2255
2256         * Changed libpath to etcpath.
2257
2258 Mon Jan  6 04:15:35 1997  Richard Coleman  <coleman@math.gatech.edu>
2259
2260         * Cleaned up source code and Makefiles, so that if your `make'
2261           supports the VPATH option, you can build nmh in a different
2262           directory from where the source code is located.
2263
2264 Fri Jan  3 05:05:18 1997  Richard Coleman  <coleman@math.gatech.edu>
2265
2266         * Released nmh-0.02.
2267
2268 Wed Jan  1 17:41:52 1997  Richard Coleman  <coleman@math.gatech.edu>
2269
2270         * Split mhook man page into man pages for rcvdist, rcvpack,
2271           and rcvtty.
2272
2273 Tue Dec 31 03:07:48 1996  Richard Coleman  <coleman@math.gatech.edu>
2274
2275         * Changed code to use strerror, rather than using sys_errlist
2276           and sys_nerr directly.
2277
2278 Mon Dec 30 02:15:25 1996  Richard Coleman  <coleman@math.gatech.edu>
2279
2280         * -compat switch from install-mh removed.
2281
2282         * Changed the default POP port from "pop" to "pop3".
2283
2284 Sat Dec 28 13:25:05 1996  Richard Coleman  <coleman@math.gatech.edu>
2285
2286         * Changed mhn_defaults to mhn.defaults.  Changed create_mhn_defaults
2287           (again) to mhn.defaults.sh.  Changed find_program (again) to
2288           mhn.find.sh.  mhn.defaults.sh now takes the search path
2289           as an argument.  Default search path is now specified in Makefile
2290           rather than in script.
2291
2292 Fri Dec 27 16:34:01 1996  Richard Coleman  <coleman@math.gatech.edu>
2293
2294         * Changed mtstailor file to mts.conf.  Updated man pages.
2295
2296         * Changed si_value to si_val in mhn.c, since it conflicts with
2297           macro defined on Solaris.
2298
2299 Thu Dec 26 02:50:15 1996  Richard Coleman  <coleman@math.gatech.edu>
2300
2301         * Added --enable-nmh-mhe (and --disable-nmh-mhe) to enable/disable
2302           support for Emacs front-end mhe.  It is on by default.
2303
2304         * Added the following configure options: --enable-nmh-pop to
2305           enable client side pop support, --enable-nmh-smtp to enable
2306           SMTP support.  Client-side pop support now compiles.  Man
2307           pages for inc, msgchk, mh-chart now correctly added pop
2308           options if enabled.
2309
2310 Tue Dec 24 14:33:20 1996  Richard Coleman  <coleman@math.gatech.edu>
2311
2312         * Added configure test for bug in C libraries where linker
2313           can't find ruserpass, but can find _ruserpass.
2314
2315         * Fixed configure test so that termcap variable ospeed is
2316           correctly found.
2317
2318 Mon Dec 23 19:40:17 1996  Richard Coleman  <coleman@math.gatech.edu>
2319
2320         * Source files converted to ANSI C.
2321         
2322         * md5 now compiled separately rather than being included
2323           in mhn.c.  Changed md5 to use memset and memcpy.
2324
2325 Fri Dec 20 02:29:37 1996  Richard Coleman  <coleman@math.gatech.edu>
2326
2327         * Collected the error routines adios, advise, admonish, and advertise
2328           into one file (error.c), and did some rearranging of the code.
2329
2330 Thu Dec 19 19:05:29 1996  Richard Coleman  <coleman@math.gatech.edu>
2331
2332         * Added awk script sigmsg.awk (originally written by
2333           Geoff Wing <mason@werple.apana.org.au> for zsh) to
2334           automatically generate signal messages for pidstatus.c.
2335           Added files sbr/signals.c, h/signals.h.  Code now uses
2336           sigprocmask to block signals (if available).  Code now uses
2337           signal blocking on non-BSD machines.
2338
2339 Wed Dec 18 01:55:17 1996  Richard Coleman  <coleman@math.gatech.edu>
2340
2341         * Add configure check for ATTVIBUG.  From Soren's mh autoconf work.
2342
2343         * Released nmh-0.01.
2344
2345         * Added configure code to check for type of signals functions
2346           you have (POSIX or BSD style signals).  Added function
2347           SIGPROCMASK to simulate sigprocmask on machines that don't
2348           have POSIX signals.
2349
2350 Fri Dec 13 19:40:48 1996  Richard Coleman  <coleman@math.gatech.edu>
2351
2352         * Added -version switch to all commands.  Also added to
2353           their man pages.
2354
2355 Mon Dec  9 16:36:54 1996  Richard Coleman  <coleman@math.gatech.edu>
2356
2357         * Renamed uip/trmsbr.c to termsbr.c and changed it to use
2358           POSIX termios.h style functions if present.
2359
2360 Tue Dec  3 16:18:39 1996  Richard Coleman  <coleman@math.gatech.edu>
2361
2362         * Changed support/general/bootmhn.sh to output new mhn_defaults
2363           file to standard output by default (makes it easier for testing).
2364           Changed name of script to create_mhn_defaults.  Changed bootmhn.findit
2365           script to find_program.
2366
2367 Sun Dec  1 10:00:00 1996  Richard Coleman  <coleman@math.gatech.edu>
2368
2369         * Added patch to uip/folder.c from exmh distribution to
2370           speed up -recurse option.
2371
2372         * Added flist command from exmh distribution.  It doesn't work
2373           yet, but it compiles :-)
2374
2375         * Changed default location for install to
2376           /usr/local/nmh/{bin,etc,lib,man}.  Split files so that format
2377           and configuration files go in nmh/etc, and support binaries go
2378           in nmh/lib.  Of course, all this can now be changed in the top
2379           level Makefile. 
2380
2381         * Started with mh-6.8.3 as based and converted to autoconf.
2382           Rewrote all the Makefiles.  Currently only works with sendmail/smtp.
2383           Pop support and plenty of other things, are now broken.