e08e6783d785eaa71a5a73a5e3f64d6495c5c243
[mmh] / ChangeLog
1 2008-06-01  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
2
3         * docs/README.developers: update the bits about doing a
4         release announcement, now I've actually done one.
5
6 2008-05-22  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
7
8         * uip/scansbr.c: don't use MB_CUR_MAX if we aren't compiled
9         with multibyte support.
10
11         * uip/whatnowsbr.c: factor out common code for writing ls
12         shell command, and make it do more sensible buffer length
13         checks. Also avoid relying on the return value of sprintf(),
14         as some old systems don't return number of characters written.
15
16 2008-05-21  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
17
18         * sbr/utils.c (mh_xrealloc): don't assume realloc() can
19         handle NULL pointers; some non-POSIX realloc()s can't.
20
21         * sbr/dtimep.lex: add some table size declarations for the
22         benefit of elderly lexes with small defaults.
23
24 2008-05-18  David Levine <levinedl@acm.org>
25
26         * sbr/addrsbr.c: removed "err" from conditional, because gcc
27         correctly warned that it would always evaluate as true.  It's
28         the address of a static array.
29
30 2008-05-16  Oliver Kiddle <okiddle@yahoo.co.uk>
31
32         * sbr/Makefile.in, config/Makefile.in: Don't use $< in target rules
33         in makefiles, as POSIX says it's only defined in inference rules.
34
35 2008-05-13  David Levine <levinedl@acm.org>
36
37         * configure.in, INSTALL: if --enable-masquerade is not
38         specified to configure, enable all supported masquerade forms.
39         This allows users to masquerade with the default
40         configuration.  That seems to be more worthwhile now than
41         trying to prevent users from using it, especially with
42         single-user installations or those where a user can edit
43         etc/mts.conf.
44
45 2008-05-04  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
46
47         * bug #23167: sbr/ruserpass.c (ruserpass): make bad permissions
48         on .netrc be an instantly fatal error. Previously we returned
49         an error value; however, no caller was checking it. So now
50         ruserpass() has a void return type.
51
52         * bug #23163: various minor fixes for the benefit of
53         older Unixes (specifically SunOS 4):
54         reintroduce strerror() substitute implementation
55         provide memmove() substitute implementation
56
57         * bug #23163: fix accidentally broken 'build outside
58         source directory' feature
59         
60         * bug #23162: sbr/dtime.c: fix stray HAVE_TM_GMTOFF that
61         wasn't updated to the new macro name.
62
63 2008-04-30  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
64
65         * mts/smtp/smtp.c: provide a callback for SASL_CB_AUTHNAME
66         (fixes issue with SASL sending the wrong username in some
67         circumstances). Thanks to <der_wachtmeister@freenet.de>
68         for the patch.
69
70 2008-04-29  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
71
72         * Revert previous attempt at fix for SASL issue as it
73         is the wrong approach.
74
75         * Fix in correct manner, by making sm_rrecord() and thus
76         sm_hear() set the length of the reply string correctly
77         (the SASL libraries now care if you pass in the wrong
78         length).
79
80         * Correct various places in smtp.c where the reply string
81         might not have been correctly NUL-terminated. Includes a
82         fix for a particularly nasty and long standing screwup
83         where the buffer length counting in smhear() was totally
84         broken for continued lines from the server.
85
86 2008-04-29  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
87
88         * Cope with sasl_decode64() returning SASL_CONTINUE, as
89         happens with newer sasl libraries and LOGIN auth.
90
91 2008-04-27  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
92
93         * Updated some of the 'how to do a release' documentation.
94
95         * Upped the VERSION string to '1.3-dev', since 1.3-RC1 has
96         been branched off.
97
98 2008-04-27  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
99
100         * Released nmh-1.3 RC1.
101
102 2008-04-11  Oliver Kiddle <okiddle@yahoo.co.uk>
103
104         * acconfig.h, configure.in, sbr/dtime.c, sbr/pidwait.c,
105         uip/mhshowsbr.c, uip/rcvtty.c, uip/slocal.c, uip/termsbr.c:
106         move most remaining macros out of acconfig.h which is an
107         obsolete feature of autoconf
108
109 2008-04-05  Peter Maydell <pmaydell@chiark.greenend.org.uk>
110
111         * bug #18655: fix use of admonish() for a fatal error (should
112         be adios(); only actual effect would be wrong exit code).
113         Thanks to Craig Leres for spotting this.
114
115 2008-04-05  Peter Maydell <pmaydell@chiark.greenend.org.uk>
116
117         * bug #20028 (Debian bug 399271): fix code assuming that pointer
118         differences were 32 bits -- thanks to Dean Gaudet for the patch.
119
120 2008-01-25  Josh Bressers <josh@bress.net>
121
122         * uip/mhshowsbr.c (show_all_messages): Be more generous when parsing
123         multipart messages.
124
125 2007-11-04  Joel Reicher <joel@panacea.null.org>
126
127         * Changed done() link overriding to function pointer. Return type
128         is now void so that exit() can be used as done() callback. Dead
129         code return from all done()s removed, with return 1 in main()
130         following done() (should never be reached).
131
132 2007-08-21  Josh Bressers <josh@bress.net>
133
134         * Red Hat Bug #253342: inc.c, utils.c, utils.h: When inc is run with
135         the -silent flag, don't exit(1) for no apparent reason.
136
137 2007-03-12  Peter Maydell <pmaydell@chiark.greenend.org.uk>
138
139         * bug #18630, #18631, #18632, #18634: various patches from
140         Craig Leres fixing error message argument problems.
141
142 2007-03-12  Peter Maydell <pmaydell@chiark.greenend.org.uk>
143
144         * bug #15212: configure.in, acconfig.h: remove configure test for
145         broken AT&T vi. This test was broken (it was always returning
146         failure even for non-broken vi implementations) and
147         unfixable. Nobody should be using AT&T vi any more so I have
148         simply moved it back to being a setting you can put manually into
149         acconfig.h if you must.
150
151 2006-10-24  David Levine <levinedl@acm.org>
152
153         * uip/sendsbr.c: with attachformat values of 1 or 2, add
154         name= portion to Content-Type header.  This makes them
155         consistent with attachformat value 0.  And it allows mhstore
156         to use that (file)name when extracting attachments.
157
158 2006-08-26  Josh Bressers <josh@bress.net>
159
160         * configure.in: If we're not using dotlocking, there is no need to set
161         inc sgid.
162
163 2006-03-30  David Levine <levinedl@acm.org>
164
165         * uip/sendsbr.c: with attachformat values of 1 or 2, only
166         generate Content-Disposition headers for MIME attachments, not
167         for the message contents themselves.  Microsoft Outlook Build
168         10.0.6626, at least, doesn't show the message contents if they
169         have Content-Disposition.
170
171 2006-03-09  Josh Bressers <josh@bress.net>
172
173         * sbr/fmt_rfc2047.c (decode_rfc2047): Don't close the iconv descriptor
174         if it isn't valid.
175
176 2006-03-08  Josh Bressers <josh@bress.net>
177
178         * (mh_strcasecmp): Rename the private strcasecmp function to
179         mh_strcasecmp.  This keeps the newer gnu linker happy.
180
181 2006-03-05  Oliver Kiddle <okiddle@yahoo.co.uk>
182
183         * sbr/fmt_rfc2047.c: don't try to malloc 0 bytes if an RFC2047
184         encoded block is empty
185
186 2006-03-04  Peter Maydell <pmaydell@chiark.greenend.org.uk>
187
188         * etc/Makefile.in: use INSTALL_SCRIPT to install scripts;
189         this allows INSTALL_PROGRAM to be set to 'install -s' so
190         binaries are stripped on installation. Apparently the BSDs
191         do this.
192
193 2006-02-25  David Levine <levinedl@acm.org>
194
195         * uip/sendsbr.c: replaced st_mtim with st_mtime, that's what
196         it should have been.  Added #include of h/tws.h to pick up
197         dtime() prototype.
198
199 2006-02-20  David Levine <levinedl@acm.org>
200
201         * h/mh.h, h/prototypes.h, uip/mhbuildsbr.c, uip/send.c,
202         uip/sendsbr.c, uip/viamail.c, uip/whatnowsbr.c, man/send.man:
203         added -attachformat switch to send, to support alternate MIME
204         header contents when using -attach.  See send man page for
205         description.
206
207         * man/mhbuild.man: wrapped one appearance of "Content-Disposition"
208         with quotes, to be consistent with others.
209
210 2006-02-20  Josh Bressers <josh@bress.net>
211
212         * h/utils.h, sbr/utils.c, uip/flist.c, uip/folder.c: Move duplicate
213         function num_digits into utils.c
214
215 2006-02-19  Josh Bressers <josh@bress.net>
216
217         * sbr/m_draft.c, sbr/utils.c, uip/folder.c, uip/inc.c,
218         uip/mhstoresbr.c, uip/popi.c, uip/refile.c: Add create_folder()
219         function, replacing duplicate code during folder creation.
220
221 2006-02-18  David Levine <levinedl@acm.org>
222
223         * h/mime.h, h/mhparse.h, uip/mhbuildsbr.c, uip/mhfree.c,
224         man/mhbuild.man, docs/TODO:  added support for an optional
225         Content-Disposition header in mhbuild (only).  Its contents
226         are supplied between {}, positioned after the optional [], in
227         a mhbuild directive.  If the contents do not contain a
228         "filename=" parameter, and the directive has a filename, or
229         something else that ends with "name=", then that will be used
230         to add a "filename=" parameter to the header.
231
232 2006-02-12  David Levine <levinedl@acm.org>
233
234         * docs/TODO: added RFC2183 to reference of RFC1806 for
235         Content-Disposition header.
236
237 2006-01-31  David Levine <levinedl@acm.org>
238
239         * uip/mhbuild.c, uip/mhbuildsbr.c, man/mhbuild.man:  added
240         -nocontentid switch, to disable generation of Content-ID:
241         header in MIME messages.  (Also added -contentid for
242         symmetry.)  The default configuration of Microsoft Outlook,
243         Build 10.0.3416 in particular, doesn't see attachments in
244         incoming messages if there are Content-ID headers, see
245         http://home.cwru.edu/~wrv/eudoraoutlookfix.html.  This allows
246         users to easily accomodate that by adding
247         mhbuild: -nocontentid to their .mh_profile.
248
249 2006-01-29  Oliver Kiddle  <okiddle@yahoo.co.uk>
250
251         * bug 4360: uip/replsbr.c: remove trailing newlines from components
252         to fix bug with spaces at the end of Subject/References in replies
253
254 2006-01-18  Oliver Kiddle  <okiddle@yahoo.co.uk>
255
256         * configure.in: use AS_HELP_STRING for formatting help messages
257
258         * configure.in, sbr/fmt_scan.c: add autoconf magic to support
259         old systems that don't support multibyte character sets
260
261         * sbr/fmt_scan.c: fix bug with insertion of newline being wrong if
262         the num function was used at the end of the format buffer
263
264 2006-01-17  David Levine <levinedl@acm.org>
265
266         * uip/post.c, uip/spost.c: in make_bcc_file (), use same
267         logic as in finish_headers () to detect whether there is an
268         existing From: line in the draft.  If draft_from masquerade
269         flag is enabled, this allows the From: to be obeyed in the
270         Bcc, instead of the old behavior of always replacing it with
271         the signature.
272
273 2006-01-17  Oliver Kiddle  <okiddle@yahoo.co.uk>
274
275         * sbr/fmt_scan.c: more robust multi-byte/column support for field
276         widths, restoring right justification feature
277
278 2006-01-16  Oliver Kiddle  <okiddle@yahoo.co.uk>
279
280         * h/aliasbr.h, h/rcvmail.h, man/Makefile.in, man/slocal.man,
281         sbr/lock_file.c, uip/aliasbr.c, uip/dropsbr.c, uip/post.c,
282         uip/slocal.c, man/mh-mts.man: remove remnants of code for MMDF
283
284         * uip/scansbr.c: multiply buffer size by MB_CUR_MAX so multi-byte
285         chars fit
286
287 2006-01-14  Josh Bressers <josh@bress.net>
288
289         * sbr/fmt_scan.c: Turn the PUTSF macro into a function capable of
290         handling multi column characters.
291
292 2006-01-07  Josh Bressers <josh@bress.net>
293
294         * Remove sbr/strerror.c -- strerror(3) is defined in C89.
295
296 2006-01-06  Josh Bressers <josh@bress.net>
297
298         * patch #3968: Move the add() function from its own file (add.c) and
299         into utils.c. There was also a duplicate add() function in mf.c which
300         has been removed.
301
302 2006-01-02  Josh Bressers <josh@bress.net>
303
304         * Remove sbr/pwd.c file, moving the pwd() function into sbr/utils.c.
305
306 2006-01-01  Josh Bressers <josh@bress.net>
307
308         * patch #3967: Create a mh_xrealloc function to prevent mistakes when
309         calling realloc.
310
311 2006-01-01  Josh Bressers <josh@bress.net>
312
313         * patch #3966: Create a mh_xmalloc function to prevent mistakes when
314         calling malloc.
315
316 2005-12-24  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
317
318         * Bug #15285: Don't use $< in target rules in makefiles, as POSIX
319         says it's only defined in inference rules. (BSD make was expanding
320         $< to the empty string in the rule for building sbr/dtimep.c, which
321         causes lex to apparently hang because it's reading from stdin.)
322
323 2005-12-24  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
324
325         * Completely redo db library checking -- we now check for working
326         (include file, library) pairs rather than checking for headers and
327         libraries separately. We also now provide --with-ndbm=lib and
328         --with-ndbmheader=header options to configure to handle situations
329         where configure's autodetection fails.
330
331 2005-12-21  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
332
333         * Fix stupid accidental dependence on a bash quirk in previous
334         configure script change.
335
336 2005-12-15  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
337
338         * Improve checking for Berkeley db libraries: configure should now
339         find a suitable library on systems with new gdbm where
340         compatibility functions are in the gdbm_compat library, and on
341         systems with libdb4.
342
343 2005-12-13  Michael Forrest <mef@computer.org>
344
345         * Fedora Bug #163760: sbr/context_read.c (context_read): Ensure that
346         the context is only read once.
347
348 2005-12-12  Josh Bressers <josh@bress.net>
349
350         * uip/sendsbr.c (annoaux): Fix the call to annotate() fixing a bug
351         which prevented repl from properly annotating messages.
352
353 2005-12-07  Jon Steinhart <nmh@fourwinds.com>
354
355         * Fixed a bug where anno -append put the headers in the wrong place
356         if applied to a message that didn't contain any headers.
357
358         * Added a special value of "all" to the -number option that causes
359         anno -delete to delete all matching components instead of just
360         the first one.
361
362         * Added new -preserve and -nopreserve options.  Using -preserve
363         retains the original last accessed and last modified times on
364         annotated messages.
365
366 2005-12-05  Josh Bressers  <josh@bress.net>
367
368         * Fedora Bug #174983: configure.in: Fix the AC_PATH_PROG default when
369         vi isn't found during build.
370
371 2005-11-19  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
372
373         * bug #14977: sbr/context_read.c: special case an MHCONTEXT of
374         "/dev/null" and don't try to lock it.
375
376         * bug #9228, debian bug #146449: man/mh-profile.man: make it clearer
377         that lower case environment variables (and in particular mheditor)
378         are internal to nmh and not intended to be set by the user.
379
380 2005-11-09  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
381
382         * sbr/mf.c: fix buffer overrun with absurdly long addresses
383         (only causes crashes if scan is run with '-width 16536' or similar)
384
385         * bug #7917: sbr/context_foil.c, sbr/context_read.c,
386         sbr/context_save.c: mark 'no context' with NULL rather than
387         "/dev/null" so we don't inadvertently try to lock /dev/null (which
388         takes up to a minute in some locking configurations and makes post
389         very slow).
390
391         * patch #3913: uip/post.c: pass some globals into sm_init() so that
392         it uses SASL if necessary. (This bug was preventing Bcc'd emails
393         from being sent via SASL authenticated SMTP.)
394
395         * bug #9813: uip/rmf.c: don't crash if there's no Current-Folder
396         entry in the context file.
397
398 2005-11-13  Oliver Kiddle  <okiddle@yahoo.co.uk>
399
400         * bug #7833: uip/Makefile.in: remove link to install-mh that caused
401         problems on some systems
402
403         * bug #739: Makefile.in: install target now depends on all to avoid
404         problem on case-insensitive file systems with the INSTALL file
405
406 2005-11-10  Josh Bressers  <josh@bress.net>
407
408         * Fedora Bug #172838: configure.in: Fix the AC_PATH_PROG default when
409         sendmail isn't found during build.
410
411 2005-11-09  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
412
413         * h/aliasbr.h: fix a non-ANSI prototype.
414
415 2005-11-08  Oliver Kiddle  <okiddle@yahoo.co.uk>
416
417         * Simon Burge: acconfig.h, configure.in, uip/rcvtty.c, uip/slocal.c:
418         fix to handle getutent() on NetBSD
419
420         * INSTALL, README, docs/README.about, man/nmh.man: update most
421         references to the web page and mailing list locations
422
423         * bug #10230: etc/Makefile.in, man/Makefile.in, uip/Makefile.in:
424         Michael De La Rue: prepend DESTDIR to install locations
425
426         * configure.in, */Makefile.in, mts/smtp/smtp.c: replace obsolete
427         autoconf macros
428
429 2005-11-06  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
430
431         * sbr/fmt_rfc2047.c, sbr/fmt_scan.c, h/prototypes.h: fix various
432         possible overruns of the buffers in fmt_scan() which would cause
433         crashes if scan was run with '-width 16536' or similar.
434
435         * uip/popsbr.c: fix compile error which only showed up if nmh
436         was configured with --enable-apop.
437
438         * Debian Bug# 245932, RedHat Bug# 172388: uip/mhparse.c: don't
439         crash when handling a multipart MIME message with an invalid
440         Content-Type header (file handle was being fclose()d twice).
441
442         * sbr/Makefile.in: adjust lex command to work on both old and
443         new versions of flex.
444
445         * configure.in: add an AC_PREREQ() so autoconf 2.13 gives a helpful
446         error message and the Debian autoconf-version-guessing wrapper
447         doesn't guess wrongly.
448
449 2005-11-02  Oliver Kiddle  <okiddle@yahoo.co.uk>
450
451         * Debian Bug# 320069: Nick Rusnov: uip/popsbr.c: fail when
452         kpop connection attempted without KPOP support compiled in
453
454         * Debian Bug# 320090: Nick Rusnov: sbr/Makefile.in: fix for newer
455         version of flex and remove autogenerated file from cvs
456
457         * patch #1155: uip/flist.c: speed up flist by skipping stat on
458         files with numbers as names
459
460         * docs/Makefile.in: include new files in distribution
461
462 2005-10-11  Bill Wohler  <wohler@newt.com>
463
464         * docs/FAQ: fold questions into MH FAQ and distribute that instead
465
466 2005-10-05  Oliver Kiddle  <okiddle@yahoo.co.uk>
467
468         * Harald Geyer: h/mh.h, uip/replsbr.c: back out previous change
469         (fork/vfork) and replace with code that handles the issue directly
470
471 2005-05-18  Oliver Kiddle  <okiddle@yahoo.co.uk>
472
473         * Debian Bug# 143485: Nick Rusnov: h/mh.h: use fork instead of
474         vfork on Linux
475
476         * Debian Bug# 261592: Harald Geyer: uip/mhlsbr.c, uip/replsbr.c:
477         test/report error writing to stdout
478
479         * mts/smtp/smtp.c, uip/popsbr.c: correct SASL include file locations
480
481         * docs/COMPLETION-BASH: bash completion definitions from Debian
482
483         * patch #2863: savannah@brisammon.fastmail.fm: sbr/folder_read.c:
484         fix a bug affecting AFS where nmh was setting the READONLY flag
485         for a folder even when you do have write access to the folder
486
487         * Carl Mummert: h/fmt_compile.h, man/mh-format.man,
488         sbr/fmt_compile.c, sbr/fmt_scan.c: add unquote() function for
489         removing quotes from RFC-2822 encoded headers
490
491 2005-02-23  Oliver Kiddle  <okiddle@yahoo.co.uk>
492
493         * use iconv to convert RFC-2047 encoded headers to the
494         character set used by the current locale
495
496         * sbr/folder_read.c fix Debian bug #202667: crash when a
497         message's filename overflows an int when converted
498
499         * Updated config.guess and config.sub to the most recent
500         versions (from automake 1.9.5)
501
502 2005-02-21  Oliver Kiddle  <okiddle@yahoo.co.uk>
503
504         * sbr/getpass.c fix bug where inc crashed on failing to reopen
505         the terminal
506
507 2005-01-27  Oliver Kiddle  <okiddle@yahoo.co.uk>
508
509         * Added -proxy option to inc and msgchk. Based on old patch
510         from Michael Richardson.
511
512         * On systems where it is available, use nl_langinfo to get the
513         character set if MM_CHARSET is unset
514
515 2005-01-21  Oliver Kiddle  <okiddle@yahoo.co.uk>
516
517         * sbr/check_charset.c US-ASCII is a subset of UTF-8 so can be
518         handled directly when UTF-8 is being used
519
520 2004-12-17  Oliver Kiddle  <okiddle@yahoo.co.uk>
521
522         * uip/mhmisc.c Fix -part option to mhshow/mhlist/mhstore to
523         find sub-parts of the specified part
524
525 2004-11-19  Jon Steinhart  <jon@fourwinds.com>
526
527         * h/prototypes.h, sbr/folder_addmsg.c, uip/mhstoresbr.c,
528         uip/rcvstore.c, uip/refile.c: Added mail directory argument to
529         folder_addmsg in order to make it possible to provide a path to
530         the ext_hook call that is mailpath-based.  A problem existed when
531         a folder was a symbolic link and the pwd call would return the
532         path relative to the filesystem, not to mailpath.  A new argument
533         was needed because there was otherwise no reasonable way to get
534         that path.
535
536 2004-11-16  Jon Steinhart  <jon@fourwinds.com>
537
538         * sbr/folder_pack.c: Fixed problem where the refile hook was being
539         called after a message was renamed so that it wasn't around for
540         the hook.  The hook is now called before the message file is
541         renamed.
542
543         * sbr/folder_addmsg.c: Fixed wrong directory for hook when
544         refiling with -src option.
545
546 2004-10-15  Jon Steinhart  <jon@fourwinds.com>
547
548         * uip/sortm.c: Fixed calling of external hooks.
549
550 2004-10-12  Jon Steinhart  <jon@fourwinds.com>
551
552         * uip/inc.c: Fixed another weird bug caused by the static
553         mailpath being overwritten.
554
555         * uip/sendsbr.c: Fixed bug that caused anno to mangle headers.
556
557         * sbr/lock_file.c: Fixed strange bug that prevented a lock from
558         ever being obtained if getting it failed the first time.  The
559         problem was that the string of XXXXXX that is required by
560         mkstemp() was overwritten the first time through, and so all
561         subsequent times failed because mkstemp() failed.  The fix
562         reinitializes the tmp file string.
563
564         * uip/inc.c: Fixed bug in which the static maildir was overwritted
565         if a format string was read from the profile.
566
567         * sbr/folder_delmsgs.c: Fixed bug that was producing an incorrect
568         path for the external hook.
569
570 2003-10-06  Glenn Burkhardt <glenn@aoi-industries.com>
571
572         * uip/slocal.c, configure.in: db configuration fix for Debian; yet
573           another location for ndbm.
574
575 2003-09-30  Glenn Burkhardt <glenn@aoi-industries.com>
576
577         * Fix 'pick' so handling of options "-list" and "-seq" are
578         independent.
579         * Fix 'inc' realloc error when bringing in more than 100 msgs
580         to empty folder.
581         * Patches submitted by Nick Rusnov from Debian archive applied:
582
583         Debian Bug#
584            136976 - Handle binary content messages
585            143427 - mh-format.man typo
586            144098 - 'spost; should have same behavior as 'post'
587                     w.r.t. mts.conf masquerade line
588            149745 - slocal ignores 'N' result of previous command
589            152728 - increase SMTP timeouts to conform to RFC 1123
590                     The timeouts suggested by the RFC seem long
591                     to me - but the RFC is still listed as active.
592            181867 - typo for nmh.man
593         
594 2003-08-10  Jeffrey C Honig  <jch@honig.net>
595
596         * Fix problem where parsing of address/date fields in fmt_compile
597         is optimized to the first instance.  The first instance may be in
598         contitional code which will result in cached data to
599         be used.  Instead, convert c_flags to a flags field from a boolean
600         and parse on the first use.
601         * Remove some unused flag bits.
602
603 Fri Jul 01 22:02:00 2003 Glenn Burkhardt <glenn@aoi-industries.com>
604
605         * Applied fixes for configuration problems with Solaris and
606           systems with gdbm instead of db1 (includes bug #2024)
607         * Fixes for bugs 
608           #578  - repl leaks umask 
609           #1393 - sortm core dumps 
610           #1650 - msh leaks file descriptors
611           #1730 - Double free() in mhfree.c:free_encoding()
612           #3356 - In-Reply-To header in default replcomps should be 
613                   RFC2822 compliant 
614         * Revised man page for mh-format (bug #2031)
615         * New replcomps, etc, with Fcc: +outbox in default versions
616         
617 Sat Mar 17 03:18:15 2001 Dan Harkless <dan-nmh@dilvish.speed.net>
618
619         * Ken Hornstein's configure.in Cyrus SASL checks were doing 
620         `x"$with_cyrus_sasl" != "no"' instead of `... != x"no"'.
621
622 Tue Mar 06 21:04:27 2001 Dan Harkless <dan-nmh@dilvish.speed.net>
623
624         * Found some historical information about MH in RFC 808.
625         Supplemented it with info from Jerry Peek's MH book and added it
626         to docs/README.about.
627
628 Tue Feb 6 20:35:40 2001 Shantonu Sen <ssen@mit.edu>
629
630         * sbr/dtime.c Use the same Y2K correction code as dtimep.lex
631
632         * sbr/dtimep.lex Restrict the parser to accept either
633         a numerical timezone offset, or a symbolic one (e.g. EST),
634         but not both (Since "2000 -400 EDT" might cause a double
635         subtraction of 60 minutes if both are parsed. One should be
636         enough).
637
638 Mon Feb 05 20:22:54 2001 Dan Harkless <dan-nmh@dilvish.speed.net>
639
640         * -L isn't sufficient for specifying the path of the Cyrus SASL
641         shared library.  That'll allow us to link successfully, but on
642         many/most OSes that won't allow us to find libsasl at runtime.  On
643         Solaris, we need to specify the library path with -R as well (or
644         else the user will have to use the $LD_LIBRARY_PATH kludge, which
645         is considered harmful).  This fix should be extended to other OSes
646         as well.
647
648         * Print whether we have SASL support in the "nmh configuration"
649         summary configure prints out.
650
651         * Say in README.developers to use `\date' in case anyone is like
652         me and has `date' aliased in their shell to use a nonstandard (but
653         subjectively more readable) format.
654
655 Thu Jan 25 21:15:52 2001 Shantonu Sen <ssen@mit.edu>
656
657         * man/mh-chart.man has updated synposes of
658         all nmh commands.
659
660 Tue Jan 23 20:26:15 2001 Shantonu Sen <ssen@mit.edu>
661
662         * etc/digestcomps tried to force dates into a
663         19xx when it's not necessary.
664         
665 Fri Jan 19 21:22:08 2001 Shantonu Sen <ssen@mit.edu>
666
667         * First round of manpage updates finished. They
668         are standardized on -man macros, with minimal
669         roff mark-up.
670
671         * man/tmac.h.in is no longer needed, since the
672         manpages do not depend on them anymore. Note:
673         strict "man" programs that didn't allow ".so"
674         sourcing outside the man tree will now format
675         the man pages correctly.
676
677         * man/vmh.1 is no longer built, since uip/vmh isn't
678         
679 Tue Jan 9 6:01:22 2001 Shantonu Sen <ssen@mit.edu>
680
681         * Finished manpages ali-prev
682
683         * Removed deprecated files from the repository.
684         Specifically, those rooted in zotnet/ and mts/sendmail
685         mts/mmdf. "cvs update -dP" will give a pruned directory
686         structure.
687
688         * Updated docs/Makefile.in to include README.manpages, and
689         uip/Makefile.in to include popi.c (which isn't being built,
690         though). This allows "make nmhdist" to create an archive that
691         is file-for-file identical to the current cvs repository.
692
693 Sun Dec 31 20:48:50 2000 Shantonu Sen <ssen@mit.edu>
694
695         * Create docs/README.manpages, which details
696         the formatting rules I've been using.
697
698         * Finished ali-inc.
699         
700 Sat Dec 30 9:50:13 2000 Shantonu Sen <ssen@mit.edu>
701
702         * Created a new file "DATE" to hold the date
703         of the most recent nmh release. This date will be
704         used in the manpages.
705
706         * Updated docs/README.developers to add the step
707         of updating DATE. Also, updated configure to
708         read in the contents of the file as the variable
709         $DATE.
710
711         * Started work on updating man pages, with only
712         ali finished so far. Changes: 1) no dependence
713         on an external macro file, 2) uses only
714         -man macros (although I may be mistaken in this),
715         3) syntax in the SYNOPSIS is a little more
716         in line with standard UNIX documentation, such as
717         bold flags and italicized parameters.
718
719 Sun Dec 24 10:06:30 2000 Shantonu Sen <ssen@mit.edu>
720
721         * Updated INSTALL with information about the
722         --with-locking option.
723
724         * Fixed the Hesiod tests in configure.in. In
725         systems where res_send was in -lresolv, this
726         information was not being communicated to the
727         HESIOD_LIBS var. Now, if res_send is not found
728         in the default libraries, it's assumed to be
729         in -lresolv, and thus -lresolv is appended to
730         HESIOD_LIBS, which will need that to avoid
731         undefined symbols problems.
732
733         * Fixed the Kerberos tests in configure.in. New
734         versions of Kerberos 5 have renamed -lcrypto
735         to -lk5crypto (circa krb5 1.1 or thereabouts). The
736         new test tries to determine if -lk5crypto exists. If so,
737         this is a new krb5 system. If not, test for -lcrypto
738         and the rest of old krb5. If that fails, look
739         for a genuine krb4 installation.
740         
741 Fri Dec 22 22:08:51 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
742
743         * -apop and -noapop were not documented in msgchk.man.
744         -snoop was documented but didn't appear in the usage SYNOPSIS.
745
746 Fri Dec 22 23:42:16 2000 Shantonu Sen <ssen@mit.edu>
747
748         * Made a new ./configure option called
749         "--with-locking" that allows the file
750         locking mechanism to be chosen there instead of
751         requiring a manual edit of config.h.
752
753         * If the option is not explicitly set, or an
754         invalid option is specified, "dot" locking is
755         chosen. Valid options are "dot", "fcntl",
756         "flock", and "lockf". We need a way to tell
757         the user that these are the valid options, and
758         change the flag "--with-locking" if it's not
759         descriptive enough.
760
761 Fri Dec 22 19:21:29 2000 Shantonu Sen <ssen@mit.edu>
762
763         * Remove the lex-specific memory hints at the
764         beginning of sbr/dtimep.lex. We've already
765         committed to supporting flex only, since
766         lex does not easily allow us to parse a single
767         string, as well as other problems documented
768         below and on nmh-workers.
769
770         * Added a switch statement to configure.in to
771         test for Mac OS X. If this is the case, LDFLAGS
772         should not contain "-s" since the linker rejects
773         the flag.
774
775         * Updated MACHINES to include Mac OS X Public Beta,
776         as well as Linux 2.4 running glibc 2.2.
777
778 Wed Dec 20 16:00:46 2000 Shantonu Sen <ssen@mit.edu>
779
780         * Marked deprecated directories in docs/README.developers
781         as deprecated, with pointers to the new code location.
782         Eventually these deprecated directories should go away.
783
784 Tue Dec 19 19:16:37 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
785
786         * -apop and -noapop were not documented in inc.man.  -snoop was
787         documented but didn't appear in the usage SYNOPSIS.
788
789 Thu Dec 14 14:32:09 2000 Shantonu Sen <ssen@mit.edu>
790
791         * Updated config.guess and config.sub to the most recent
792         versions on ftp://ftp.gnu.org/pub/gnu/config, dated
793         12-07-00. This should prevent configure from failing
794         on newer operating systems because config.{guess,sub}
795         couldn't correctly identify them.
796
797 Thu Dec 14 1:30:44 2000 Shantonu Sen <ssen@mit.edu>
798
799         * Fixed the circular dependency created when I moved
800         zotnet/mts to mts/generic and merged them into libmts.
801         mts/generic/client.c and mts/generic/mts.c are now in sbr/
802         (and thus in libmh), which makes libmh self-contained and
803         not depending on an external archive.
804
805         * All include statements now look for mts.h in h/. The
806         Makefiles and configure script have been modified so that
807         mts/generic is no longer built.
808
809 Mon Dec 11 22:08:07 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
810
811         * When Shantonu made the new libmts.a, he swapped $(MTSLIB) and
812         libmh.a in sbr/Makefile.in so that libmh.a comes first, but this
813         causes the build to fail on Solaris, because libmts.a has to get
814         ruserpass() out of libmh.a.  Swapping them back to the way Ken
815         Hornstein's patch (which I applied on Jul 20) put them, with
816         libmh.a correctly coming second.  If there are times when libmts.a
817         needs to come second, then it would appear there's a circular
818         dependency and someone (Shantonu?) did an mts merge incorrectly.
819
820 Fri Sep 8 01:36:23 2000 Shantonu Sen <ssen@mit.edu>
821
822         * Took out bad time textual time zones like BST and JST.
823         I found them online somewhere, but am not sure if they're
824         correct.        
825         
826 Fri Sep 8 00:36:48 2000 Shantonu Sen <ssen@mit.edu>
827
828         * Moved zotnet/mts to mts/generic. This code reorganization
829         makes the entire zotnet tree deprecated -- bboards is unneeded,
830         mf was was moved to sbr, tws was rewritten and moved to sbr, and
831         now finally mts.
832
833         * Created a new static library called libmts.a used during
834         compilation which includes the generic mts code and the
835         smtp/sendmail code. This supercedes the functionality of the
836         old libsmtp.a and the remains of libzot.a.
837
838         * Updated header includes to reference the new location of mts.h
839         in mts/generic/mts.h. Also, update the configure and top-level
840         Makefile not to descend into zotnet. Also, they don't descend
841         into mts/mmdf and mts/sendmail (the sendmail code has been
842         merged into the smtp code).
843
844         * Added #include <h/nmh.h> to h/md5.h, since my compile was
845         complaining about implicitly-declared memcpy and memset, which
846         appear to be in strings.h. In any event, nmh.h should take care
847         of it for us.
848
849         * When doing a "make nmhdist", notice that the generated
850         snapshot does not include zotnet of the mts directories as noted
851         above. Since they are no longer compiled, and I don't see any
852         obvious code path to get to them, end-users should probably
853         not need them. If you think otherwise, turn Makefile generation
854         back on in configure.in and turn on recursion into those dirs
855         in the appropriate Makefile.in
856
857 Wed Sep 6 22:40:03 2000 Shantonu Sen <ssen@mit.edu>
858
859         * Tracked down the problem in the new dtimep where time
860         zones were being radically misreported. It was because the
861         parser knew about military time zones (such as M or E) but in
862         some cases did not know about the textual representation of
863         some zones (like MET). When it encountered one of these, the
864         date parser misread MET as the military time zone T (well, first
865         zone M, then E, and finally T). I took military zones out, and
866         things seem much better. Also, the default behavior of parsing
867         time zones appears to default to GMT in the absence of better
868         info, which is less bogus than assuming the mail came from the
869         current time zone, which was the behavior in 1.04.
870
871 Thu Aug 10 13:22:13 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
872
873         * Decided that limiting the message number columns to 3 on my
874         scan.MMDDYY and scan.YYYYMMDD (to try to regain space taken by
875         extra date info) was ill-conceived.  It's not that tough to get
876         past 999 messages, though I imagine it's rather rare to exceed
877         9999.  Changed these to 4.  Also put the "replied / encrypted"
878         column back in YYYYMMDD -- I've never seen it show anything but a
879         space, but that space is useful if you use scan, grep, and awk
880         (with the default field separator) to grab message numbers (I know
881         -- pick should really be used for these purposes...).
882
883 Mon Aug  7 20:11:09 CEST 2000 Ruud de Rooij <ruud@ruud.org>
884
885         * Modify umask set by mhshow to enable user execute bit, so that
886         viewers that create temporary directories (e.g., lynx) will be
887         able to access them.
888
889 Thu Aug 03 17:14:08 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
890
891         * TODO: Allow multiple simultaneous differing contexts, probably
892         each tied to a parent (terminal) process.
893
894 Tue Aug  1 10:48:05 EDT 2000 Kimmo Suominen <kim@tac.nyc.ny.us>
895
896         * Makefile install rules should not look for generated files in
897         the source tree -- this will happen to work when configuring and
898         building inside the source tree but will fail when using an
899         external build tree.  Fixed etc/Makefile.in.
900
901 Mon Jul 24 16:20:45 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
902
903         * When Shantonu wrote the new, more portable dtimep.lex, he left
904         out the #ifdef DSTXXX stuff for some reason.  Not a good idea, as
905         that code is required for proper printing of numeric-offset
906         timezones that have daylight saving time.  Without that code,
907         -0700 during DST gets printed as MST instead of PDT.
908
909         * Renamed DSTXXX as ADJUST_NUMERIC_ONLY_TZ_OFFSETS_WRT_DST and
910         added an explanatory comment by its #definition.
911
912         * Updated README.developers with the fact that zotnet/tws is going away.
913
914 Thu Jul 20 20:30:52 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
915
916         * Moved Kimmo's new "--with-hash-backup" to be output with the
917         rest of the --with options in the configure --help output.  Also,
918         people did not preserve my alphabetization of the --with options
919         when they added new ones.  Re-alphabetized.
920
921         * One more pass at README.developers now that it's clear that my
922         previously-suggested one-line autoconf-file commit can cause
923         unnecessary local makes and an out-of-sync stamp-h.in file, but
924         would not cause problems for other people using the CVS files.
925
926         * Ken Hornstein's SASL patch was not integrated properly with
927         Ruud's new merged mts/sendmail code.  Kimmo has since fixed nmh so
928         it compiles, but according to Ken, the SASL stuff still does not
929         work.  Integrating a patch from him for this.
930
931         * Last pass at README.developers -- Kimmo's 5-step commit was
932         overkill.  You only need 3 steps, since configure.in is the only
933         autoconf file with the RCS $Id keyword.
934
935         * Applied Kurt J. Lidl <lidl@eng.us.uu.net>'s $MAILHOST patch:
936
937             I have a small patch that would be nice to be included --
938             basically, it allows the usage of the "MAILHOST" environment
939             variable, without having to have HESIOD turned on.  I need
940             this functionality for my environment, where we have identical
941             /usr/local on all my machines (so I cannot just hardcode into
942             the mts.conf file), and I have multiple POP mail servers for
943             my users.
944
945         Modified inc.man to reflect that along with "pophost:" and -host, 
946         $MAILHOST can now activate POP mail inclusion as well.
947
948         * Fixed warnings from diff on first-time install of nmh.  Also
949         added 'echo's clarifying the etc file installation activities.
950
951 Tue Jul 18 19:36:59 EDT 2000 Kimmo Suominen <kim@tac.nyc.ny.us>
952
953         * Added the answer to Dan's question in README.developers.
954
955 Mon Jul 17 19:10:36 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
956
957         * Clarified and made some corrections to Kimmo's README.developers
958         changes (BTW, if anyone can explain why the RCS Ids are able to cause
959         problems with the dependencies, please fill in the explanation --
960         I never encountered a problem with the old single-commit method).
961
962 Sat Jul 15 23:13:49 EDT 2000 Kimmo Suominen <kim@tac.nyc.ny.us>
963
964         * Add configure option --with-hash-backup so the backup prefix can
965         be easily changed from "," to "#".
966
967         * Simplified sbr/Makefile.in so that it works with any make.
968
969         * Use mkstemp in sbr/lock_file.c.
970
971         * Commits of autoconf-related files apparently can't all be done
972         in one shot due to RCS Ids changing when committing -- updated
973         README.developers.
974
975 Tue Jul 11 14:18:01 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
976
977         * Clarified post.man and send.man for those not completely up on
978         SASL terminology.  "SASL encryption layers are not supported for
979         SMTP" means that encryption is supported for the authentication
980         but not for the subsequent data stream.
981
982 Sat Jul  8 01:36:19 EDT 2000 Kimmo Suominen <kim@tac.nyc.ny.us>
983
984         * Applied Ken Hornstein <kenh@cmf.nrl.navy.mil>'s patches
985         implementing SASL support for POP3 and SMTP.  If nmh is compiled
986         with SASL support, using the -sasl switch on the inc, msgchk,
987         post, and send commands will enable authentication encryption for
988         SMTP, and both authentication and data stream encryption for POP3.
989
990 Sat Jun 10 18:37:59 CEST 2000 Ruud de Rooij <ruud@ruud.org>
991
992         * Merged mts/sendmail functionality into mts/smtp; switching between
993         smtp and sendmail delivery method is now controlled by mts.conf.
994
995         * If tsort cannot deal with loops, in addition to defining tsort as
996         cat, also define lorder as echo.
997         
998         * Removed uip/popi.c from list of sources.
999
1000 Thu Jun 08 19:36:57 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1001
1002         * New dtimep.lex didn't parse day names properly.  Fixed.  Also
1003         clarified ambiguous comments preceding day_map[] array (from old
1004         dtimep.lex) that probably led to the erroneous cp++ being added.
1005
1006 Wed Jun  7 20:52:33 CEST 2000 Ruud de Rooij <ruud@ruud.org>
1007
1008         * Added one more mkstemp invocation to uip/spost.c (which was in a
1009         #if 0 block).
1010
1011         * Applied patch from Peter Maydell to clean up permissions handling
1012         and error handling in uip/inc.c.
1013
1014 Mon Jun  5 22:10:07 CEST 2000 Ruud de Rooij <ruud@ruud.org>
1015
1016         * Use cat instead of tsort if tsort cannot deal with loops in its
1017         input (which is the case for tsort from GNU textutils).
1018
1019 Mon Jun  5 21:14:36 CEST 2000 Ruud de Rooij <ruud@ruud.org>
1020
1021         * If lockfile is present, and its dotlockfile program is setgid,
1022         inc does not need to be setgid.
1023
1024 Sun Jun  4 21:35:40 CEST 2000 Ruud de Rooij <ruud@ruud.org>
1025
1026         * Added autoconf test for Miquel van Smoorenburg's liblockfile
1027         library, as found on Debian systems.
1028
1029         * Added liblockfile support to sbr/lock_file.c.
1030         
1031 Wed May 31 7:19:30 2000 Shantonu Sen <ssen@mit.edu>
1032         
1033         * Fixed up dtimep.lex a bit. Added back memory options for AIX to
1034         increase available memory.  Took out %option noyywrap, which
1035         wasn't understood by AT&T lex, as well as the -i
1036         case-insensitivity flag.
1037
1038 Wed May 31 07:40:45 2000 Doug Morris <doug@mhost.com>
1039
1040         * Added a lint target to the Makefiles and a check in autoconf
1041         to determine whether lint or lclint exists on the system. 
1042
1043 Fri May 30 19:21:48 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1044
1045         * etc/Makefile.in was incorrectly installing mts.conf.in and
1046         sendfiles.in -- fixed.  Generated sendfiles script was not a
1047         dependency of the `all' target, and was incorrectly included in
1048         the distribution.  Changed the suffix for the backed-up previous
1049         versions of the etc files from the ambiguous .old to .prev.  Added
1050         call to diff -- only keep the .prev files around if different from
1051         the newly-installed versions (intentionally didn't redirect output
1052         to /dev/null so you'll notice when your changed versions are
1053         getting moved aside).
1054
1055         * INSTALL never documented the etc/*.old thing.  Documented the
1056         new etc/*.prev thing (including a note to watch for diff output).
1057
1058         * Applied Alec Wolman <wolman@cs.washington.edu>'s dropsbr.c patch:
1059
1060             In the map_write routine, a call is made to map_open and this
1061             call is supposed to set the "clear" variable to 0 or 1,
1062             depending on whether the map file is empty or not.  In
1063             mh6.8.3, this worked because map_open would set "clear" by
1064             calling the mbx_Xopen routine.  In nmh, the code for mbx_Xopen
1065             was merged into mbx_open, but the interface for mbx_open
1066             doesn't support the clear variable, so that functionality was
1067             lost.  The map_open interface still contains "int *clear" in
1068             the prototype, but never sets it.
1069
1070             My patch eliminates "clear" from the map_open interface (I
1071             checked to make sure that map_write is the only client of
1072             map_open).  Furthermore, my patch also sets the "clear"
1073             variable properly at the beginning of map_write by calling
1074             fstat().  This eliminates the bug in that the value of "clear"
1075             being used later in the routine was just stack garbage.
1076
1077             Having a bad value of clear causes this next bug to be
1078             triggered: The fp file pointer was being opened with fdopen,
1079             but in two of the three switch cases it wasn't being closed.
1080             In certain cases, this was causing packf to run out of file
1081             descriptors if you attempted to pack a large folder.
1082
1083 Mon May 29 7:48:15 2000 Shantonu Sen <ssen@mit.edu>
1084
1085         * Moved the date parsing routines from zotnet/tws to sbr/ (and
1086         tws.h to h/). Updated all source files to reflect to new location
1087         of tws.h.
1088
1089         * Rewrote dparsetime (in dtimep.lex -> dtimep.c) to replace the
1090         old zotnet/tws/dtimep.c, dtimep.lex, lexstring.c, lexedit.c, and
1091         dtimep.c-lexed. It should now work with flex (although untested
1092         with lex), and requires no sed-ing. For now, I have the lexed
1093         version in the distribution, so that end-users don't need to worry
1094         about running it through flex/lex. I have not added back support
1095         for guessing the time zone when it's not specified.
1096         
1097 Sun May 28 17:44:15 CEST 2000 Ruud de Rooij <ruud@ruud.org>
1098
1099         * Added autoconf check for getutent().
1100
1101         * Changed uip/rcvtty.c and uip/slocal.c to use getutent() and
1102         friends.  Since I can only check on Linux, please check if
1103         this works on other systems.
1104
1105 Sun May 28 14:58:49 CEST 2000 Ruud de Rooij <ruud@ruud.org>
1106
1107         * Applied patch from Peter Maydell to uip/scansbr.c for more
1108         checks for write failures.
1109
1110         * Unlink temporary file properly in uip/rcvtty.c.
1111
1112         * Moved viamail from bindir to libdir.
1113
1114         * Changed sendfiles into sendfiles.in, so that path to viamail
1115         is patched in.
1116
1117         * Added gzip support to sendfiles.
1118
1119         * Added References header to replcomps and replgroupcomps.
1120
1121 Sun May 28 14:39:31 CEST 2000 Ruud de Rooij <ruud@ruud.org>
1122
1123         * Fixed m_getfld bug which caused segmentation faults when
1124         incorporating messages which ended in multiple linefeeds crossing
1125         a buffer boundary.
1126
1127 Fri May 26 13:21:59 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1128
1129         * msh has been unable to show MIME messages ever since 1.0.  Alec
1130         Wolman <wolman@cs.washington.edu> tracked down the problem to the
1131         -show flag being passed to mhshow.  mhshow is equivalent to the
1132         old mhn -show, so we don't need the -show anymore.  Removed it.
1133
1134 Fri May 12 02:51:21 2000 Shantonu Sen <ssen@mit.edu>
1135
1136         * zotnet/bboards is not longer built by default. Goal is to move
1137         the assorted functions in zotnet into sbr or some more logical
1138         place.
1139
1140         * Moved zotnet/mf to sbr, and changed mf.h references accordingly,
1141         as well as Makefiles.
1142         
1143 Thu May 11 02:21:34 2000 Shantonu Sen <ssen@mit.edu>
1144
1145         * Simplified sbr/Makefile.in so that both SRCS and OBJS aren't
1146         seperately and redundantly defined, but so that OBJS is a
1147         pattern-substituted version of SRCS with suffix .c -> .o. This
1148         should make maintainability easier.
1149
1150         * Added section to MACHINES indicating what platforms nmh is known
1151         to compile and work on, just to give users peace of mind, or
1152         something. This is by no means complete or exhaustive, so add
1153         whatever you know works.
1154         
1155 Tue May 09 20:38:04 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1156
1157         * Alphabetized Shantonu's $pop_kinds output on configure's "pop is
1158         enabled" line.  If POP3 is the only kind of POP enabled, say so,
1159         rather than just saying "yes" (which is ambiguous).
1160
1161         * Fixed four warnings in Shantonu's new getpass.c.  Needed to
1162         #include <stdlib.h> for calloc(), <unistd.h> for ttyname(), and
1163         "h/mh.h" for adios().  Also changed ch from char to int to get rid
1164         of "comparison is always 1 due to limited range of data type" on EOF.
1165
1166         * Added steps to README.developers saying to change the version
1167         number to X.Y.Z+dev.  Did a little rearranging and changed the FTP
1168         dir from /home/ftp to /var/ftp to reflect Doug's new machine.
1169
1170         * Changed configure.in to use gcc -Wall even without
1171         --enable-debug, to prevent developers compiling optimized from
1172         introducing warnings, and to give end-users a warm, fuzzy feeling
1173         as they (hopefully) see no warnings come out (except perhaps on
1174         the lex output file) even with -Wall.
1175
1176         * Renamed getpass() to nmh_getpass() since the prototype for
1177         getpass() varies from OS to OS, and we want to _always_ use our
1178         version of the function.  Fixed all the callers to use
1179         nmh_getpass() and added it to prototypes.h.  Semi-arbitrarily
1180         upped MAX_PASSWORD_LEN from 128 to 256.  buf was being calloc()'d
1181         and the memory leaked -- should have just been declared as static
1182         char array.  Prepended "Portions of this code are" to the
1183         copyright message, as this version has been changed significantly
1184         from the BSD version.
1185
1186         * Added "nmh-local functions to use in preference to OS versions"
1187         section to README.developers (currently just says to use
1188         nmh_getpass() instead of system getpass()).
1189
1190         * Prepended "Portions of this code are" to the copyright message
1191         in ruserpass.c also.
1192
1193         * Added mts.conf.5 page per Neil W Rickert <rickert+nmh@cs.niu.edu>'s
1194         report:
1195         
1196             This happens on solaris:
1197
1198                      % man mts.conf
1199                      windex entry incorrect:  mts.conf(5) not found.
1200                      No manual entry for mts.conf.
1201
1202             It is fixed by
1203
1204                      % echo ".so man5/mh-tailor.5" > mts.conf.5
1205
1206             done in the man5 directory.  We need to add 'mts.conf.5' as a
1207             reference sourcing mh-tailor.5.
1208         
1209 Mon May 08 23:51:55 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1210
1211         * Doug informed me that the way I had restored the "lost" version
1212         histories was wrong, because `cvs checkout's of old versions of
1213         nmh wouldn't work properly.  It occurs to me that this could be
1214         fixed by simply deleting those tags in the new-location *,v files,
1215         but oh well.  I'm putting everything back to the way Doug
1216         originally had it.  To get the old version history for a file that
1217         used to be in the top directory, you'll need to "blindly" do a
1218         `cvs log' there (even though you won't have a local copy of the
1219         file in that directory).  `cvs diff' will no longer be able to
1220         diff pre-move versions vs. post-move versions -- you'll have to do
1221         a lot of manual gyrations with `cvs checkout' and then use `diff'.
1222
1223         * I had alphabetized the --configure options in the --help output
1224         awhile back, but Shantonu added --enable-apop just under
1225         --enable-pop.  Put it in alphabetical order and clarified what
1226         --enable-apop does vs. --enable-pop and --with-krb4.  Also changed
1227         --with-mts help line from "mail transport agent" to "mail
1228         transport agent/service" so the 's' in "mts" doesn't seem to come
1229         out of nowhere.
1230
1231         * Added two steps to "releasing nmh" in README.developers.  After
1232         making the tarball, it's a good idea to diff the tree vs. the CVS
1233         tree to make sure no files got left out, and then to chown the
1234         files so that they're owned by root, preventing a Trojaning attack
1235         by a malicious remote user with a UID matching yours.
1236
1237         * Changed DIFFERENCES to say that RPOP is not currently supported
1238         rather than implying it by saying that APOP, KPOP, and POP[3] are.
1239
1240 Sun May 07 18:16:43 2000 Shantonu Sen <ssen@mit.edu>
1241
1242         * Imported NetBSD version of getpass() and made extensive
1243         revisions for compatibility with programs that pipe the password
1244         to stdin, such as exmh.
1245
1246         * Removed tests for system ruserpass() which sometimes gave
1247         phantom positive results. Also, bext to use internal functions if
1248         we ever want to change .netrc format to something else, or access
1249         other files.
1250
1251 Sat May 06 08:28:09 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1252
1253         * Restored lost version histories for those moved files by doing a
1254         manual `mv' in the CVSROOT on mhost.  CVS badly needs a `cvs mv'
1255         command so that you can move files (without having physical access
1256         to the CVSROOT) without losing versioning.  Put MACHINES back at
1257         the top level as it needs to be read before building.  Fixed DIST
1258         variable in {.,docs}/Makefile.in to reflect that and to add
1259         missing entry for "INSTALL" file.
1260
1261 Sat May 06 13:13:07 2000 Doug Morris <doug@mhost.com>
1262
1263         * Re-cleaned up nmh documentation (by moving things to docs
1264         subdir) and modified Makefile & configure.in to handle the change.
1265
1266 Mon Apr 17 21:28:40 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1267
1268         * Scott Blachowicz pointed out that the configure --help output
1269         for --enable-masquerade was misleading.  Clarified.
1270         
1271 Mon Apr 17 19:01:00 2000 Shantonu Sen <ssen@mit.edu>
1272
1273         * APOP support can be compiled in to inc and msgchk using
1274         --enable-apop.
1275
1276         * To access an APOP host, specify -apop on the command line
1277         along with any -host or -user option.
1278
1279 Fri Apr 14 23:10:44 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1280
1281         * Upped the version number to 1.0.4+dev until the next nmh release.
1282
1283         * Added a "releasing nmh" section to README.developers, while the
1284         process was fresh in my mind.
1285         
1286 Fri Apr 14 18:21:34 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1287
1288         * Added new files README.developers, ChangeLog_MH-3_to_MH-6.6, and
1289         ChangeLog_MH-6.7.0_to_MH-6.8.4.html to DIST target in Makefile.in.
1290         
1291         * Released nmh-1.0.4.
1292
1293 Tue Apr 11 21:37:03 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1294
1295         * Applied Brian Campbell <bacam@tardis.ed.ac.uk>'s mhn.defaults.sh
1296         patch:
1297
1298             It appears that there shouldn't be quotes around the %s in the
1299             iso-8859-1 charset entry; xterm passes the remaining arguments
1300             to the program, quoting them means that xterm thinks they're
1301             part of the program's name.
1302
1303         This %s isn't the same as the "Insert content subtype" one from
1304         mhshow-show-* -- it doesn't come from MIME headers and is safe not
1305         to quote.
1306
1307 Sun Apr 09 13:03:59 2000 Doug Morris <doug@mhost.com>
1308
1309         * added check in fmt_compile() to handle a single-character
1310         format string. fmt_compile() depends on having an array of
1311         format characters with an empty item at the end. A
1312         single-character format would cause programs using this
1313         function to segfault because the algorithm used to decide on
1314         the length of the array mistakenly created a single-item array
1315         when the format string was one character. This eventually
1316         caused problems when the program attempted to test item+1
1317         in the array.
1318
1319 Thu Apr 06 21:53:50 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1320
1321         * Richard Coleman threw out a lot of old MH-specific files in nmh.
1322         Much of the stuff, indeed, is not worth saving, but there are
1323         nuggets that are very worthwhile, and should probably be added
1324         back in.  Most important, IMHO, are the MH change logs, as they
1325         can help answer questions like "Why is this code like this?" or
1326         "How long has this been broken?" or "What was this ever used for?"
1327
1328         I've added a new file to the nmh tree called
1329         ChangeLog_MH-3_to_MH-6.6.  It's cobbled together from the
1330         mh-6.8.4/papers/mh*/MHCHANGES files.  I've re-ordered the entries
1331         to go from newest at the top to oldest at the bottom to match the
1332         ChangeLog convention.  Unfortunately there are no change logs for
1333         versions of MH prior to 3 in the MH tar files available at
1334         <ftp://ftp.ics.uci.edu/pub/mh>.  Also, it appears to me that there
1335         are MH-6.6 changes that aren't documented in the logs.
1336
1337         I've also added ChangeLog_MH-6.7.0_to_MH-6.8.4.html.  This is
1338         based on mh-6.8.4/papers/changes/mh-changes.ms.  The nroff format
1339         and its "catman"-type output are a pain to deal with, but I was
1340         loath to throw away the formatting, so I converted the file to
1341         HTML.  The only actual markup in the body are the "<B>" and "<U>"
1342         tags, and "&lt;" and "&gt;" instead of '<' and '>', so it's quite
1343         doable to view the file in plain ASCII mode as well.  Note that
1344         some of the changes this file documents as having been made in
1345         MH-6.8.4 may not be present in nmh -- Richard started with 6.8.3
1346         and later put in certain 6.8.4 stuff.
1347         
1348 Wed Apr 05 21:09:28 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1349
1350         * Applied Eric Schnoebelen <eric@cirr.com>'s mhshowsbr.c patch
1351         fixing apparent bugs in Dan Winship's new security quoting code:
1352         
1353             Since upgrading, I've been getting the following errors
1354             while attempting to process some MIME messages:
1355
1356                 (1) Syntax error: Unterminated quoted string
1357                     exit 2
1358         
1359             and:
1360
1361                 (2) line 1/10 (END)Segmentation fault (core dumped)
1362
1363             (2) appears to be due to the testing of an unset pointer in
1364             mhshowsbr.c:show_multi_aux().  (1) appears to be caused by
1365             mis-quoting a filename being handed to the shell in
1366             mhshowsbr.c:show_content_aux().
1367
1368             Resolving the pointer reference issue in
1369             mhshowsbr.c:show_multi_aux() turned up a similar mis-quoting
1370             problem in the routine.
1371
1372 Tue Mar 28 16:17:39 2000 Doug Morris <doug@mhost.com>
1373
1374         * Applied Todd.Miller@courtesan.com's patch to dropsbr.c to
1375         prevent core dumping on packf. Here's the note from his message:
1376
1377             Since sizeof(buffer) == sizeof(tmpbuffer) packf will dump
1378             core on a file w/o a From line with a line >= BUFSIZ.
1379             I noticed this because I had a junk file in my mail
1380             spool somehow.
1381
1382 Fri Mar 17 11:59:33 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1383
1384         * wesley.craig@umich.edu did not document his previous KPOP patch,
1385         so I did so, and asked him to check what I wrote.  Unfortunately
1386         he didn't notice my misunderstanding of his patch.  I wrote that
1387         if you #define POPSERVICE "kpop", inc and msgchk will use KPOP
1388         exclusively, but if you leave it as "pop3", you can use Wesley's
1389         new -kpop switch on a given invocation.  Instead, however, -kpop
1390         turned out to be necessary on every invocation, and a KPOP user
1391         complained.  Applied Wesley's new patch, which makes things work
1392         like I thought his original patch did.  After that, did one more
1393         clarifying pass to the documentation in inc.man and msgchk.man.
1394
1395 Wed Mar 15 18:45:45 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1396
1397         * When I fixed the long-standing makedir() bugs in January, I had
1398         the code call strtoul(..., 0), which I believed to be safe as all
1399         modes specified as ASCII constants in the nmh code started with a
1400         leading zero (signifying octal), which I did as it would work if
1401         internal constants were ever changed to hex.  Unfortunately I was
1402         unaware of the "Folder-Protect:" .mh_profile entry, which
1403         mh-profile.man documents as an octal-only constant, with no
1404         leading zero required.  I've changed the strtoul() call to an
1405         atooi() call and removed the misleading leading zeroes on the
1406         ASCII octal constants in the code and man pages.  Also changed the
1407         "Folder-Protect:" example in the man page to something more
1408         interesting than a duplication of the default.
1409
1410         * When I added my --enable-masquerade option, you'll note that I
1411         didn't make it --enable-nmh-masquerade.  I find the --enable-nmh-*
1412         options too wordy and I'm not sure why Richard went that route.
1413         I've renamed them to just --enable-*, but the old versions will
1414         still work as well (they just aren't advertised).
1415
1416         * Added a line to the "nmh configuration" output saying whether
1417         POP is enabled.
1418
1419         * Added a new README.developers file.  From the file:
1420
1421             This file is intended to provide a few tips for anyone doing
1422             development on nmh.  Developers who learn things "the hard
1423             way" about the nmh codebase (as opposed to local info best
1424             encoded in a comment) are encouraged to share their wisdom
1425             here.
1426
1427         Currently the topics are "autoconf files" and "directory structure".
1428
1429 Tue Mar 14 12:41:48 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1430
1431         * Applied, after some finessing,
1432         Simon Burge <simonb@thistledown.com.au>'s --with-smtpservers patch:
1433
1434             Here's a patch that allows you to add
1435
1436                     --with-smtpservers=<some.host.name>
1437
1438             to the ./configure command line to set the "servers: " line in
1439             etc/mts.conf.  Around here, we use "mailhost" so that all
1440             machines in the current domain just talk to a central machine
1441             and nothing else runs an MTA.  Now, I can use
1442
1443                     --with-smtpservers=mailhost
1444
1445             instead of having to remember to fix this by hand (and often
1446             forgetting to do so!).
1447
1448         * Inspired by Simon's patch, added an --enable-masquerade option
1449         to configure.  It will set the "masquerade:" line of mts.conf.
1450         You may specify a subset of the three types of masquerading, like
1451         --enable-masquerade="draft_from mmailid", or leave off explicit
1452         arguments to enable all three types.
1453
1454         * Alphabetized the --enable and --with options in configure.in and
1455         INSTALL and added documentation of the two new options to the latter.
1456
1457         * Added new dependency for mts.conf: Makefile.  If this isn't
1458         done, then when you reconfigure nmh with new values for
1459         --enable-masquerade or --with-smtpservers, you'll fail to get an
1460         updated copy of mts.conf.
1461
1462         * Applied Simon Burge <simonb@thistledown.com.au>'s dtimep.lex patch:
1463
1464             It seems that some MUA's didn't handle y2k very well - ELM
1465             seems to be one of them, and Ultrix's DXmail (based on MH!).
1466             I've got a few emails this month that look like:
1467
1468                     575   Jan 00  Xxxxxx Xxxx       3603  ...
1469             and
1470                      22+  Jan 00  Xxx Xxxxx         1771  ...
1471
1472             The first has "15 Jan 100" as the date and the second has 
1473             "19 Jan 00" as the date.  The following works around this so 
1474             that scan, show, sortm, etc work ok.
1475
1476         I put Simon's patch under the control of a new #define called
1477         FIX_NON_Y2K_COMPLIANT_MUA_DATES.  There's some commentary in
1478         acconfig.h about when you might not want to #define it.
1479
1480         * Created new dtimep.c-lexed with Simon's change using dtimep.lex
1481         lexed on Solaris 2.6.  Added missing dependency in
1482         zotnet/tws/Makefile.in for dtimep.c: dtimep.c-lexed.
1483
1484         * Added scan.MMDDYY and scan.YYYYMMDD format files.
1485
1486 Mon Mar 13 21:32:00 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1487
1488         * Applied Sullivan N. Beck <sbeck@cise.ufl.edu>'s mhshow-suffix patch:
1489
1490             With the patch below, you can add lines like:
1491
1492                 mhshow-suffix-application/msword: .doc
1493                 mhshow-suffix-application/PostScript: .ps
1494
1495             to the mhn.defaults file to append the given suffix to a
1496             scratch file.  This allows applications which require a
1497             certain suffix to run properly.
1498
1499         * Removed -force_html from lynx entry in mhn.defaults.sh (I
1500         believe older versions of lynx lack that option) and added
1501         "mhshow-suffix-text/html: .html".
1502                 
1503         * Modified username_extension masquerading to only use the
1504         extended address on generated [Resent-]From: lines and SMTP
1505         envelope From:.  With Neil's original implementation, nmh's global
1506         idea of the username was changed, which would result in inc lying
1507         and saying you had no new mail because it was looking for a
1508         mailbox called, for instance, "dan-nmh" (where username was "dan"
1509         and $USERNAME_EXTENSION was "-nmh").
1510                 
1511         * Applied Simon Burge <simonb@thistledown.com.au>'s dtime.c patch:
1512         
1513             There's a wrap-around problem that affects the implementation
1514             of Zeller's congruence in dtime.c.  This causes the day-of-week
1515             calculations to fail for dates after Feb 29, 2000 (probably up
1516             until some year far in the future).
1517
1518 Mon Mar 06 12:20:20 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1519
1520         * Applied Neil W Rickert <rickert+nmh@cs.niu.edu>'s msh.c patch:
1521
1522             I finally tracked down the problem in msh that was causing
1523             errors whenever I tried to examine a 'mmdf' style mailbox.
1524
1525             It turns out that not enough memory was being allocated with
1526             calloc(), causing memory pointers to be overwritten and
1527             corrupted.
1528                 
1529 Fri Mar 03 16:07:33 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1530
1531         * Changed the new "plussed_user" option to mts.conf's
1532         "masquerade:" to "username_extension" after getting feedback from
1533         qmail users, who use '-' as a separator rather than '+'.  Removed
1534         checking of $USERPLUS variable.  Now check $USERNAME_EXTENSION,
1535         which needs to include the appropriate separator for your MTA
1536         ('-', '+', or whatever) as its first character.
1537                 
1538 Thu Mar 02 23:04:30 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1539
1540         * Added a new "boolean" type to mh.h and TRUE and FALSE constants.
1541                 
1542         * Added a note to DIFFERENCES stating that it's out-of-date
1543         (Richard was the last one to update it) and that we should
1544         consider only documenting incompatibilities with MH there.
1545
1546         * Implemented (and documented) a third kind of username
1547         masquerading: "plussed user" masquerading.  This one was suggested
1548         by Neil Rickert <rickert+nmh@cs.niu.edu>.  It's based on sendmail's
1549         "plussed user" feature, where mail sent to <user>+<string> will be
1550         delivered to <user>.  When it's enabled, it's controlled by the
1551         $USERPLUS environment variable.  How is it enabled?  Well, that
1552         leads me to:
1553
1554         * Renamed the "mmailid:" setting in mts.conf to "masquerade:", and
1555         changed it so that rather than being a boolean, it can be set to
1556         any combination of the three values "draft_from", "mmailid", and
1557         "plussed_user".  Thus it is now possible to enable the three types
1558         of masquerading individually.
1559
1560         * Fixed a bug with "mmailid" masquerading (dating back to MH?)
1561         where if it was turned on, ','s would no longer be considered
1562         GECOS field delimiters.
1563         
1564 Wed Mar 01 23:30:50 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1565
1566         * Changed the GECOS-field '&' translation behavior to be
1567         controlled by the BSD42 #define rather than GCOS_HACK, since it's
1568         apparently always appropriate on OSes where BSD42 is #defined, and
1569         never appropriate on any other OSes.  Thanks to Kimmo Suominen for
1570         responding to my "What is this code here for?" comment in mts.c
1571         and explaining the feature.
1572         
1573 Mon Feb 28 21:50:29 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1574
1575         * Upped the version number to 1.0.3+dev (ideally this should be
1576         done by whoever makes a release tar file, immediately after doing
1577         so).
1578         
1579         * Applied Paul Fox <pgf-spam@foxharp.boston.ma.us>'s scansbr.c
1580         patch, posted to comp.mail.mh, which he says prevents loss of mail
1581         when inc'ing into a full filesystem.
1582
1583         * Changed "echo > stamp-h.in" in Makefile.in to "date > stamp-h.in"
1584         so that stamp-h.in will be different each time configure.in and
1585         related files are changed, making it easier to check it in (which
1586         is necessary to prevent unnecessary autoconf calls).
1587
1588         * My declaration of initgroups() in slocal.c to eliminate the "no
1589         prototype" warning wasn't portable (FreeBSD 3.[23] choked).  Now
1590         use AC_EGREP_HEADER to see where initgroups() is declared, if
1591         anywhere.
1592
1593 Sun Feb 20 12:17:15 2000 Ruud de Rooij <ruud@ruud.org>
1594
1595         * Fix security hole in mhshowsbr.c which allowed untrusted shell
1596           code to be executed.
1597         
1598         * Released nmh 1.0.3.
1599
1600 Thu Feb 10 10:54:36 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1601
1602         * Oops.  %-escapes on mhstore lines in mhn.defaults.sh should not
1603         be surrounded by single quotes, as a shell is not spawned when
1604         just saving files, and the filenames will end up with literal
1605         quotes embedded in them.
1606
1607 Fri Feb 04 12:29:12 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1608
1609         * Whoever originally added the -help switch to all the commands
1610         got too cute and had the option itself print out as "-(help)" in
1611         the -help output.  One theory is that they were making reference
1612         to the fact that clearly you know about the -help option since
1613         you're currently looking at its output.  I think it's a bad idea
1614         to overload the meaning of the parentheses, however -- they're
1615         supposed to indicate what abbreviated prefix of the switch you're
1616         allowed to specify.
1617
1618         The other theory is that because you can say something like
1619         "mhstore -" and get "mhstore: - ambiguous.  It matches" followed
1620         by the same list of switches you get with -help, they were saying
1621         you can "sorta" abbreviate "-help" as "-".  You don't get the
1622         "Usage:" string, though, so it's not really the same thing.
1623
1624 Thu Feb 03 17:52:01 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1625
1626         * Applied wesley.craig@umich.edu's KPOP patches.  According to him:
1627
1628               The following patch fixes a problem with requesting a
1629               service key for a machine that has multiple 'A' records.  It
1630               also makes "-kpop" a command line option, for users who
1631               would like to use both "kpop" and "pop".
1632
1633         Did no testing of the new features, as I don't have access to a
1634         KPOP server.
1635
1636         * Modified inc.man and msgchk.man to document Wesley's new -kpop.
1637
1638         * Modified INSTALL and config.h.in to reflect the new -kpop feature.
1639
1640 Fri Jan 28 17:39:24 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1641
1642         * All %-escapes in mhn.defaults that actually expand to something
1643         should be surrounded by single quotes.  Added quotes to the ones
1644         in mhn.defaults.sh that were missing them.
1645
1646         * Added check for lynx to write mhshow-show-text/html line in
1647         mhn.defaults.sh.
1648
1649 Thu Jan 27 12:22:25 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1650
1651         * makedir() had multiple bugs dating back to MH.  An octal
1652         constant was apparently being interpreted as decimal, resulting in
1653         directories with no user read or execute permissions, making
1654         nested directory creation fail.  And there wasn't even an
1655         _attempt_ to set desired permissions (e.g. from "Folder-Protect:"
1656         in .mh_profile) on the outer directories of a nested directory.
1657
1658         * A second `make install' would always fail because the check for
1659         whether mh_profile.5 existed was written incorrectly.
1660         
1661 Wed Jan 26 02:22:00 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1662
1663         * Added documentation on both types of masquerading to post's man
1664         page.
1665
1666 Tue Jan 25 22:58:12 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1667
1668         * Doug's portability fix of my setgid inc autodetection had a
1669         caching bug -- if you re-ran configure, uip/Makefile would be
1670         corrupted, and installation would bomb out on OSes where inc needs
1671         to be setgid.
1672
1673         * Implemented a new kind of email address masquerading.  Usually,
1674         when a user writes a custom "From:" header in a draft, nmh uses it
1675         rather than generating one.  However, the user's true address is
1676         used in the SMTP envelope "From:" and is revealed in the "Sender:"
1677         header.  Now, when mmailid is set to non-zero, the envelope
1678         "From:" uses the address specified in the draft "From:" header,
1679         and there is no "Sender:" header.  This is useful when sending on
1680         behalf of a remote POP3 account or when remote mail robots
1681         incorrectly use the envelope "From:" in preference to the body
1682         "From:".  This processing has only been implemented for post, not
1683         for the undocumented spost (which was already missing some "From:"
1684         processing that post has).
1685
1686 Mon Jan 24 22:26:06 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
1687
1688         * Got rid of the rest of the gcc -Wall warnings that I didn't have
1689         time for on 1999-07-15 (and, it would seem, some new ones people
1690         introduced since then).  The primary ones were the warnings that
1691         default prototypes were being used for [v]snprintf() and
1692         str[n]casecmp().  As of right now, there are _no_ compilation
1693         warnings except on dtimep.c-lexed (at least under AIX 4.1.5 and
1694         Solaris 2.6).
1695
1696 Sun Jan 2 23:42:18 2000 Ruud de Rooij <ruud@ruud.org>
1697
1698         * Move mhtest from bindir to libdir.
1699
1700         * Move sendfiles from libdir to bindir.
1701
1702         * Updated sendfiles manpage to reflect this change.
1703
1704         * Added documentation for -build and -file switches to repl and 
1705           forw manpages (patch from Peter Maydell).
1706
1707         * Fixed interaction between specifying -cc in profile and -group on 
1708           command-line.
1709
1710 Tue Nov 1 13:48:10 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
1711
1712         * Changed the version number from 1.0.3 to 1.0.2+dev.  There was
1713         not unanimous support for my proposed even/odd release/developer
1714         version number dichotomy.  1.0.2+dev implies release 1.0.2 plus
1715         some development.
1716
1717 Fri Oct 29 13:42:51 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
1718
1719         * Upped the version number to 1.0.3.  If we don't do this, then
1720         when people report bugs against 1.0.2, we won't know "which" 1.0.2
1721         they're talking about (since the development source is publically
1722         available via CVS).  I think the Linux kernel version numbers are
1723         a good model, so the next time we roll a tarball, it should be
1724         version 1.0.4 (or higher -- anyhow, an even-numbered version).
1725
1726 Fri Oct 29 06:41:08 1999 Doug Morris <doug@mhost.com>
1727
1728         * Released nmh-1.0.2.
1729
1730 Tue Oct 26 22:57:00 1999 Doug Morris <doug@mhost.com>
1731         
1732         * Added check for whether "libtool" is in fact gnu libtool. If
1733         it is, it is not used. This is the wrong behavior. If vendor
1734         XYZ later on decides to create yet another libtool, we'll be
1735         caught again. This works for now.
1736
1737         * Minor updates to MACHINES refering to Mac OS X.
1738
1739 Thu Oct 21 20:45:37 1999 Doug Morris <doug@mhost.com>
1740
1741         * Added check for "libtool" (a ranlib type tool for Mac OS X)
1742         and modified Makefiles so that nmh will build under Mac OS X.
1743
1744 Sun Oct 17 08:28:56 1999 Ruud de Rooij <ruud@ruud.org>
1745
1746         * Changed repl defaults to partly revert to MH behaviour,
1747           "-cc all" is now only implied with -group.
1748
1749         * The replcomps template includes cc: header again (as in MH).
1750
1751         * Updated repl man page to reflect these changes.
1752
1753 Sat Oct 16 02:57:47 1999 Doug Morris <doug@mhost.com>
1754
1755         * Tweaked configure to handle Solaris and SunOS after the BIND
1756         changes. Both need more cleanup.
1757
1758 Sat Oct 16 00:17:36 1999 Doug Morris <doug@mhost.com>
1759
1760         * Removed BIND define and replaced it with a check for
1761         gethostbyname (to determine if the host is DNS aware) and a
1762         check for sethostent. This appears to be the right thing to
1763         do, but there is no explanation of the reasoning behind the
1764         BIND define in the code and it appears to have been used for
1765         multiple purposes. 
1766
1767 Wed Oct 13 15:53:53 1999 Doug Morris <doug@mhost.com>
1768
1769         * Updated manpages Makefile to link mh-profile.5 to
1770         mh_profile.5 after installation. Suggestion from Richard Cohen
1771         <richard@jubjub.demon.co.uk>.
1772
1773         * Modified configure.in to check for _IO_write_ptr and libio.h
1774         to determine whether to define LINUX_STDIO instead of using 
1775         config.guess.
1776
1777 Mon Oct 4 15:22:46 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
1778
1779         * Added '-L' to the calls of 'ls' in configure.in -- I have seen
1780         multiple machines in the past where the mail spool was a symlink
1781         to a directory on another device with more free space.
1782
1783 Fri Oct 1 22:36:56 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
1784
1785         * Fixed a portability problem in Doug's fix of a portability
1786         problem in my MAILGROUP autoconf support ('ls -l' vs. 'ls -lg'). 
1787
1788 Sat Sep 25 18:40:43 1999 Ruud de Rooij <ruud@ruud.org>
1789
1790         * Added config.sub and config.guess to the list of files to be
1791         distributed.
1792
1793         * Fixed bug in sbr/fmt_scan.c where an extra newline would be
1794         added if a list of addresses was split over several header lines.
1795
1796         * In mts/smtp/smtp.c, undefine strlen and strcpy if they are
1797         macros, regardless of platform.
1798
1799         * Allow q to quit mhshow, and n to skip to next part.  Patch from
1800         Kimmo Suominen <kim@tac.nyc.ny.us>.
1801
1802         * Modified mhstore to recognize attachments created by sendfiles
1803         with x-conversions=gzip.
1804
1805 Mon Sep 13 21:20:10 1999 Doug Morris <doug@mhost.com>
1806
1807         * added explicit cast to long from time_t for tclock in
1808         post.c.
1809
1810         * Commented out #ifdefs for <sys/ioctl.h> in termsbr.c since
1811         it's needed for ioctl() anyway. This prevents a warning about
1812         implicit definition of ioctl().
1813
1814         * Moved guesses performed by AC_CANONICAL_SYSTEM back into the
1815         "User Configuration" section of config.h (moved @TOP@ in
1816         acconfig.h) so they're easier to find, should someone actually
1817         want to mess with them.
1818
1819 Sun Sep 12 15:50:34 1999 Doug Morris <doug@mhost.com>
1820
1821         * updated Makefile.in so it recognized COMPLETION-TCSH and
1822         COMPLETION-ZSH (only used in make nmhdist). 
1823
1824         * added prototype for ruserpas to <h/prototypes.h>. Fixes
1825         warnings in mhparse.c and mhbuildsbr.c.
1826
1827         * added include checks for <time.h> and <sys/time.h> to
1828         prevent warnings in fmt_compile.c, fmt_scan.c, lock_file.c,
1829         sendsbr.c, mhbuildsbr.c, mhcachesbr.c, picksbr.c, and post.c.
1830
1831         * added include for <zotnet/mts/mts.h> to ali.c, scan.c, ap.c,
1832         rcvdist.c, rcvstore.c, rcvtty.c, and spost.c to remove
1833         warnings about implicit definition of mts_init().
1834
1835         * added <grps.h> to slocal.c to prevent warnings about
1836         function initgroups.
1837
1838         * added <h/signals.h> to prevent warning about missing SIGNAL
1839         function.
1840
1841         * added function prototypes to smtp.c, whatnowproc.c,
1842         mhbuildsbr.c, mhparse.c, mshcmds.c, show.c, whatnow.c, mhl.c
1843         to fix warnings.
1844
1845         * explicitly declared mbx_style in mshcmds.c and lused in
1846         fmtdump.c as type static int instead of just static to
1847         prevent warnings.
1848         
1849         * various code cleanups to prevent ambiguous statements
1850         (brackets for if/thens and parens for complicated if
1851         statements).
1852
1853
1854 Sun Sep 12 09:19:27 1999 Doug Morris <doug@mhost.com>
1855
1856         * commented out _cleanup() in mf.c because it's the only
1857         location in all of the source code where it exists. It was
1858         preventing compilation on at least linux.
1859
1860         * Added check for <db1/ndbm.h> which is the new location where
1861         linux systems appear to be stuffing this header file.
1862
1863 Thu Sep 09 23:15:49 1999 Doug Morris <doug@mhost.com>
1864
1865         * fixed varous mkstmep bugs introduced in 1.0.1 by me. Whups!
1866
1867         * added mh_profile SEGV patch from Richard Cohen
1868         <richard@jubjub.demon.co.uk> that prevents crashing when
1869         mh_profile doesn't end in a newline. A similar patch was
1870         previously sent in by Andrew Bettison <andrewb@zip.com.au>.
1871
1872         * fixed bug in associated with MAILGROUP #define (group "mail"
1873         is not universal) -- hard to believe, but true.
1874
1875 Tue Sep 7 16:47:03 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
1876
1877         * Renamed ZSH.COMPLETION to COMPLETION-ZSH and added COMPLETION-TCSH.
1878
1879 Tue Aug 17 16:06:29 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
1880
1881         * Automated #define of MAILGROUP and installation of inc as setgid mail
1882         when the mail spool directory isn't world-writable.
1883
1884 Thu Jul 15 18:37:07 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
1885
1886         * slocal -debug used to leave a file in /tmp for each message
1887         processed.  Very bad for folks with slocal -debug in their .forward!
1888
1889         * Got rid of a ton of compilation warnings.  Most were "junk"
1890         warnings due to the use of gcc -Wall (without -Wno-parentheses),
1891         but a few represented real bugs.  There remain many warnings to be
1892         tackled that are due to missing function prototypes (e.g. snprintf()).
1893
1894         * Default rcvdistcomps no longer puts a copy of all outgoing
1895         messages in outbox.  Added an rcvdistcomps.outbox that does.
1896
1897 Sat Jun 09 12:22:47 1999 Doug Morris <doug@mhost.com>
1898
1899         * Updated configure to check for mkstemp (available on OpenBSD) and 
1900         substitute it for mktemp if available. 
1901
1902 Thu May 13 16:40:19 1999  Doug Morris <doug@mhost.com>
1903
1904         * Added config.sub and config.guess and updated acconfig.h and
1905         configure.in to automatically detect system type and set the
1906         proper #defines.
1907
1908 Wed May 12 23:41:33 1999  Dan Winship  <danw@mit.edu>
1909
1910         * Released nmh-1.0.1.
1911
1912 Fri May  7 17:18:28 1999  Dan Winship  <danw@mit.edu>
1913
1914         * Fixed flist to properly deal with relative folder names.
1915         Problem noted by Jerry Peek <jpeek@jpeek.com>.
1916
1917         * Fixed --with-krb4 to work with original Kerberos 4 libraries as
1918         well as the Kerberos 5 compat libraries. Based on a patch from
1919         Assar Westerlund <assar@sics.se>.
1920
1921         * Added a check in configure.in to test if modf is in libc and
1922         link with libm if not. This is needed by at least Digital UNIX. 
1923         Problem pointed out by Kevin Oberman <oberman@es.net>.
1924
1925         * Fix a bug from the "mhn -show" to "mhshow" renaming that
1926         made the "list" command in whatnow not work for some users.
1927         From Ruud de Rooij <r.c.m.derooij@twi.tudelft.nl>.
1928
1929         * Replaced "extern int errno" with "#include <errno.h>" in a
1930         number of files. Suggested by Stephen Wilson Bailey
1931         <swb@nconnect.net>.
1932
1933         * Fixed a problem in how "packf -mbox" translated "Return-Path:"
1934         lines. From Kimmo Suominen <kim@tac.nyc.ny.us>.
1935
1936         * Fixed a segmentation fault in inc. Patch originally from Ruud de
1937         Rooij <r.c.m.derooij@twi.tudelft.nl>.
1938
1939         * Allow display of 8bit encoded messages. From Kimmo Suominen
1940         <kim@tac.nyc.ny.us>.
1941
1942         * Fixed repl to not add line breaks in the middle of long
1943         addresses when building a reply. From Ruud de Rooij
1944         <r.c.m.derooij@twi.tudelft.nl>.
1945
1946         * Added -library switch to spost so it can parse user aliases like
1947         post does. From Ruud de Rooij <r.c.m.derooij@twi.tudelft.nl>.
1948
1949         * Changed configure.in's check for sigsetjmp to properly deal
1950         with systems like Linux where it is a macro. From
1951         <elleron@servtech.com>.
1952
1953         * Fixed a bug in whatnow that could cause it to sometimes exit
1954         without prompting the user. Based on a patch by Richard Geiger
1955         <rmg@netapp.com>.
1956
1957         * Added code to deal with SIGPIPE in mhl so it doesn't print
1958         "Broken pipe" if you quit out of the moreproc.
1959
1960         * Documentation: Added a note to MACHINES about Irix make. Added a
1961         pointer to the online copy of the MH book in INSTALL. Added
1962         some additional information to the whatnow and packf man pages,
1963         suggested by Jerry Peek <jpeek@jpeek.com>.
1964
1965         * Updated INSTALL, FAQ, etc to not refer to Richard as the
1966         maintainer or math.gatech.edu as the home any more.
1967
1968 1999-02-06  Richard Coleman  <coleman@math.gatech.edu>
1969
1970         * Released nmh-1.0.
1971
1972         * Merged mbx_open and mbx_Xopen in dropsbr.c.  Fixed
1973           mbx_open so that the mode of zero length maildrops
1974           would not be changed.
1975
1976         * Replaced the substitute version of snprintf() with the
1977           one from the Apache web server.
1978
1979         * Changed to default mode for creating new messages to 0600
1980           (this should have been done a long time ago).
1981
1982         * Changed "flist" to handle searching for multiple sequences
1983           for each folder.  Also flist will now correctly split
1984           Unseen-Sequence if it consists of multiple sequences.
1985
1986         * Added new switches `-unlink' and `-nounlink' to "refile".
1987
1988         * Added new switches `-unlink' and `-nounlink' to "rmm".
1989
1990         * More cleanups of slocal output.  Changed adorn() to
1991           send to stdout, instead of stderr (to match rest of
1992           verbose printing).
1993
1994         * Merged mbx_create() into mbx_open, so that creating and
1995           opening a nonexistent maildrop is done atomically.  This
1996           removes a bad race condition.
1997
1998         * Fixed bug that caused slocal to be unable to save to MMDF
1999           style drop file.
2000
2001         * Added new wrapper function usr_folder() to slocal.c to
2002           handle adding message to folder (currently, it still uses
2003           usr_pipe() to call rcvstore).
2004
2005         * seq_list() checks for empty folder before scanning for
2006           sequence information.
2007
2008         * num_digits() in flist.c and folder.c now returns correct
2009           value for 0.  Also added sanity check.
2010
2011         * folder_delmsgs() now correctly decrements internal message
2012           count.
2013
2014         * Don't attempt to read sequence information if folder
2015           is empty.
2016
2017         * Split seq_read into seq_public and seq_private.
2018
2019         * Small change to sigmsg.awk, since newer versions of gawk
2020           interpret 034 as octal.
2021
2022         * In flist, don't scan for sequence information in empty folder.
2023
2024         * Updated mhn.defaults.sh to output profile entries for mhshow,
2025           mhstore, and mhbuild.
2026
2027         * Changed configuration parameter "mhn-access-ftp" to
2028           "nmh-access-ftp".  Updated man pages
2029
2030         * Moved the code in InitMultipart to reverse the order of the
2031           parts in a multipart, into its own function "reverse_parts()".
2032
2033         * Changed code in mhbuildsbr.c to store unencoded content
2034           in the c_cefile structure when building.
2035
2036         * Changed code in mhoutsbr.c to look for unencoded content
2037           in the c_cefile structure when outputing message.
2038
2039         * Changed configuration parameter "mhn-cache" and
2040           "mhn-private-cache", to "nmh-cache" and "nmh-private-cache",
2041           since it is used in mhstore, mhlist, and mhshow.  Updated man pages
2042
2043         * Change configuration parameter "mhn-storage" to
2044           "nmh-storage", since it is now used in mhstore, mhlist,
2045           and mhshow.  Updated man pages
2046
2047         * Add autoconf support for KPOP (kerberized pop).
2048
2049         * Add autoconf support for Hesiod.
2050
2051         * Split routines to output a message given a Content structure
2052           (output_message, output_content, write7Bit, etc..) to a new
2053           file "mhoutsbr.c".
2054
2055         * Split output_content(), into output_content() and build_headers().
2056
2057         * Changed copy_some_headers() in mhstoresbr.c, to use the linked
2058           list of header fields, rather than reopening the message.
2059
2060         * Added free_header() to mhfree.c to free structures containing
2061           header field information.
2062
2063         * Changed get_content() to use the linked list of header fields
2064           when parsing the various MIME headers (Content-XXX).
2065
2066         * Changed get_content() to store linked list of header field
2067           values when parsing a content.
2068
2069         * Changed mhbuild, mhn, mhlist, mhshow, mhstore, to use the
2070           routines in mhcachesbr.c to handle the content cache.
2071
2072         * Split various funtions (find_cache, find_cache_aux, find_cache_aux2,
2073           cache_content) into new file mhcachesbr.c.
2074
2075         * More calls to sprintf/strcpy (primarily in mhparse.c
2076           and mhbuildsbr.c) converted to snprintf/strncpy.
2077
2078         * When a message is displayed with `mhshow', it is now
2079           removed from the "unseen" sequence.
2080
2081         * Change the default "showmimeproc" to "mhshow".
2082
2083         * Split "mhn -show" off into separate command "mhshow".
2084
2085         * Split "mhn -store" off into separate command "mhstore".
2086
2087         * Split "mhn -list" off into separate command "mhlist".
2088
2089         * Add sanity checks to context_find(), context_replace(),
2090           and context_del(), to abort if context file hasn't been
2091           read.
2092
2093         * Add calls to context_read(), to the beginning of all nmh
2094           commands (instead of being called indirectly by context_find).
2095
2096         * Changes the "substitute" version of vsnprintf/snprintf for
2097           operating systems without native versions, to just call the
2098           native vsprintf(), and ignore the buffer length.   This is
2099           faster, but less secure than the previous version that used
2100           temporary files.  This should only be a problem for systems
2101           which do not have a native snprintf(), and require `inc' to
2102           be setuid/setgid.
2103
2104         * Lots more calls to sprintf/strcpy converted to snprintf/strncpy.
2105
2106         * Changes client() routine to take additional parameter, which is
2107           the buffer length of the parameter "response".  Then added
2108           buffer length checks for this parameter.
2109
2110         * Changed getws() to get_fields(), since that is apparently the
2111           name of a wide character version of gets() on some archetitures.
2112
2113         * Lots of sprintf/strcpy calls converted to snprintf/strncpy.
2114
2115         * Change the code in most of the commands that take multiple
2116           message names/sequences/ranges on the command, such that
2117           the msgs array is expanded dynamically.  This removes most
2118           of the limits on the length of command lines.
2119
2120         * Add additional parameter to copyip(), to specify the
2121           maximum number of strings that can be copied (security
2122           fix).
2123
2124         * Create new function getarguments(), to massage the argument
2125           vector before parsing it (add any arguments from your
2126           profile to the beginning of the argument vector).  This
2127           also removed the general limit on the number of command line
2128           arguments.
2129
2130 1998-07-04  Richard Coleman  <coleman@math.gatech.edu>
2131
2132         * Released nmh-0.27.
2133
2134         * Added a new command "delete", that is available during
2135           a "whatnow" session.  It is equivalent to "quit -delete".
2136
2137         * Added another parameter to editfile (in whatnowsbr.c),
2138           that controls whether editfile should remember the last
2139           program that was exec'ed.  This way the whatnow command
2140           "mime", will not be re-executed if "edit" is later given
2141           with no arguments.
2142
2143         * Changed whatnowsbr.c, so that whatnow doesn't abort if
2144           mhbuild returns an error.
2145
2146         * Added parameter to sendsbr(), so you may specify whether to
2147           rename the draft file.
2148
2149         * Pass delay time to splitmsg() as a parameter, rather than
2150           use a global variable.
2151
2152         * Moved code to rename draft file after sending message from
2153           splitmsg and sendaux, to sendsbr.
2154
2155         * Removed all the code in viamail to split messages and then
2156           mail them.  Replaced this with the standard sendsbr.c routines.
2157
2158         * Changed sendsbr(), so that when splitting messages into
2159           messages of type "message/partial", the header fields that
2160           are copied are more compliant with RFC-2046.
2161
2162         * Fixed mhbuild to track temporary files better.  They are
2163           now correctly removed when mhbuild aborts.
2164
2165         * Created a new man page for "sendfiles".  The information
2166           about "mhn -viamail" in the "mhn" man page was moved to
2167           this new page.
2168
2169         * Changed the name of the "viamail" shell script to
2170           "sendfiles".  Modified "sendfiles" to use the new
2171           viamail program.
2172
2173         * Moved the functionality for "mhn -viamail" out of mhn,
2174           and into a separate executable called "viamail".
2175
2176         * When storing MIME contents to a folder using mhn -store,
2177           they are now accumulated in a temporary file, and then added
2178           to the folder using folder_addmsg().
2179
2180         * Moved code to save content to a folder from store_content
2181           to new function output_content_folder.
2182
2183         * Moved code to save content to file from store_content to
2184           new function output_content_file.
2185
2186         * Moved code to parse storage format string from store_content
2187           to new function parse_format_string.
2188
2189         * Fix copy_some_headers() in mhstoresbr.c, so that the
2190           correct header fields in the first enclosing message/partial
2191           will be copied (according to RFC2046), when using mhn -store
2192           to reassemble messages of type message/partial.
2193
2194         * Fixed bug to openFTP() in mhparse.c, that caused the
2195           tmp file to not be removed, when transferring a
2196           message/external file from ftp.
2197
2198         * Moved the code in mhparse.c to process -auto switch (scan
2199           contents for the attribute "name"), to a new function
2200           "get_storeproc" in mhstoresbr.c.
2201
2202         * Moved routines to free data structures related to MIME
2203           content from mhparse.c and mhbuildsbr.c, to new file
2204           mhfree.c.
2205
2206         * Moved code to show/display MIME content into new
2207           file mhshowsbr.c.
2208
2209         * Moved code to store MIME content from into
2210           new file mhstoresbr.c
2211
2212         * Moved code to parse MIME content into new
2213           file mhparse.c.
2214
2215         * Moved code to list information about MIME content
2216           into new file mhlistsbr.c.
2217
2218         * Move part_ok(), type_ok(), content_error(), flush_errors(),
2219           and set_endian() to new file mhmisc.c.
2220
2221         * Start to isolate the code to show, list, and store MIME
2222           messages.  One side effect is that only one flag (-show,
2223           -list, or -store) can be used at a time now.
2224
2225         * mhn -store -auto wasn't storing file in correct directory.
2226
2227         * Removed a few dead variables from sbr/ruserpass.c
2228
2229         * move code for creating tmp files, and renaming the
2230           the composition draft in mhbuild, from build_mime()
2231           to main().
2232
2233         * remove left-over code in mhbuild.c, mhbuildsbr.c, for
2234           the -[no]auto switch (which isn't used in mhbuild).
2235
2236         * split mhn.c into mhn.c and mhnsbr.c (name later changed
2237           to mhparse.c).
2238
2239         * split mhbuild.c into mhbuild.c and mhbuildsbr.c.
2240
2241 1998-05-25  Richard Coleman  <coleman@math.gatech.edu>
2242
2243         * Released nmh-0.26.
2244
2245         * Added (unlisted) options [no]dashstuffing to send, post,
2246           and whatnow to determine whether to do RFC934 quoting
2247           (dashstuffing) for encapsulated BCC messages.  The default
2248           is still the same (dashstuffing).
2249
2250         * Changed the undocumented feature "nodashmunging" in forw
2251           and mhl, into the documented feature "nodashstuffing".  The
2252           default for forw, is still "dashstuffing" for backward
2253           compatibility, although I don't believe that bursting
2254           RFC934 digests is very common anymore.
2255
2256         * Added an option to define REALLYDUMB in the default config.h.
2257           But it is not on by default.
2258
2259         * moved creation of config file mts.conf from zotnet/mts
2260           to etc.  This simplified the Makefile in zotnet/mts.
2261
2262         * simplified directory support/general to etc.
2263
2264         * removed unneeded directory support/bboards.
2265
2266         * split getusername() into getusername() and getuserinfo().
2267
2268         * Changed getusr() routine to getusername().
2269
2270         * Slight cleanup in folder_pack.c on code that records the new
2271           number of the "cur" message when packing.
2272
2273 1998-05-08  Richard Coleman  <coleman@math.gatech.edu>
2274
2275         * Released nmh-0.25.
2276
2277         * Change install process, so that hard linking the correct mts
2278           library to libmts.a, is not necessary.  The final link process
2279           uses the original name of the library.
2280
2281         * Fixed bug in flist.c and folder.c, so that symbolic links which
2282           point to directories, will not decrement the number of directory
2283           links remaining.
2284
2285         * Split the function list_content (in mhn.c and mhbuild.c) into
2286           list_content and list_debug.
2287
2288         * Don't pack (folder -pack) an empty folder.
2289
2290         * Exit gracefully in flist.c, if no sequence is specified,
2291           and no "Unseen-Sequence" is given in nmh profile.
2292
2293 1998-02-27  Richard Coleman  <coleman@math.gatech.edu>
2294
2295         * Released nmh-0.24.
2296
2297         * Small clarification to the man page for `ali'.
2298
2299         * Fix bug in inc.c so that if both flags `-file' and `-truncate'
2300           are given, that order doesn't matter.
2301
2302         * Fix bug in seq_list.c when realloc'ing for
2303           large sequence line.
2304
2305 1998-02-23  Richard Coleman  <coleman@math.gatech.edu>
2306
2307         * Released nmh-0.23.
2308
2309         * Add new section on "Transfer Encodings" to man page for mhbuild.
2310
2311         * In mhbuild.c, split compose_content into compose_content
2312           (parse and execute composition string), and scan_content (scan
2313           content, decided transfer encoding, check for clash with boundary
2314           string).  I did a good amount of rearranging of this code.
2315
2316         * Moved definitions for data structures for parsing MIME
2317           messages from mhn.c and mhbuild.c to a new include
2318           file h/mhnsbr.h.
2319
2320         * Small amount of rearranging in sendsbr.c
2321
2322         * Small changes to MAIL.FILTERING file.
2323
2324         * Add the file MAIL.FILTERING to nmh distribution.
2325
2326         * Add line to packf so that if message begins with
2327           "X-Envelope-From:" field, it is converted to "From ".
2328
2329         * Fix packf to add "From " line to beginning of message,
2330           even if Return-Path doesn't exist.
2331
2332         * Add note to MACHINES file that on Linux, configure
2333           doesn't find the functions sigsetjmp/siglongjmp.
2334
2335         * Fix configuration for machines that don't have (or find)
2336           sigsetjmp/siglongjmp.
2337
2338 1998-02-11  Richard Coleman  <coleman@math.gatech.edu>
2339
2340         * Released nmh-0.22.
2341
2342         * Add a configure check for sigsetjmp.  Add some conditional
2343           #define's in h/signals.h in case it's not found.
2344
2345         * Added additional notes about -auto switch in mhn man page.
2346
2347         * Added note about MM_CHARSET environment variable to
2348           mh-profile(5) man page.
2349
2350         * Fix signal problem in mhn.c (change setjmp/longjmp to
2351           sigsetjmp/siglongjmp).
2352
2353 1998-02-09  Richard Coleman  <coleman@math.gatech.edu>
2354
2355         * Released nmh-0.22-pre1.
2356
2357         * Changed the first line in mhl.format from
2358           " -- using template mhl.format -- " to a blank line.
2359
2360         * Added note about automimeproc to mh-profile man page.
2361
2362         * Reorganize the main entry point for parsing a MIME message
2363           or file in mhn.  Add new function parse_file() as new main
2364           entry point for parsing MIME files.
2365
2366         * Add note to mhn man page, that "mhn -file -" will accept the
2367           source message on the standard input.
2368
2369         * Changed a sanity check in folder_realloc that was too strict.
2370
2371         * -norfc934mode is now the default for mhbuild,
2372           rather than -rfc934mode.
2373
2374         * Fix mhbuild, so that Content-Description and RFC-822 comments
2375           from #forw directive will be correctly included if there is
2376           only one message.
2377
2378         * Change mhn to correctly default parts of multipart/digest to
2379           message/rfc822 (leftover code from rfc934mode was removed).
2380
2381         * Restore HP specific code to zotnet/tws/lexstring.c.  Apparently
2382           it is still needed.
2383
2384 1998-02-06  Richard Coleman  <coleman@math.gatech.edu>
2385
2386         * Released nmh-0.21.
2387
2388         * If the file given to mhbuild is "-", then accept the draft on
2389           standard input, and output the MIME message to standard output.
2390
2391         * Cleaned up code in mhbuild.c that decides what transfer
2392           encoding to use.
2393
2394         * Cleaned up code in mhbuild.c that decides what character set
2395           to use for text contents.
2396
2397         * Removed old hpux specific code from zotnet/tws/lexstring.c
2398
2399 1998-02-02  Richard Coleman  <coleman@math.gatech.edu>
2400
2401         * Released nmh-0.21-pre2.
2402
2403         * Added the "decode" variable to mhl.format and mhl.header.
2404
2405         * Added new variable "decode" to mhlsbr.c to decode text in
2406           header fields as per RFC-2047.
2407
2408         * Make sure that when decoding RFC-2047 header fields, that any
2409           spaces at the ends of the encoded text are not ignored, but the
2410           spaces between encoded word are.
2411
2412         * Removed #ifdef's for MIME.  MIME support is always compiled in.
2413
2414         * scan/inc will now decode both Subject and From lines as
2415           RFC-2047 encoded header fields.
2416
2417         * Added new function write_charset_8bit() to sbr.  It returns
2418           the character set to use for 8bit text in composition draft.
2419           Changed mhbuild to use this function.
2420
2421         * Split mhn man page into man pages for mhn and mhbuild.
2422
2423         * mhn -show will only now only use default method for content
2424           of type plain, if it is NOT a part of a multipart/alternative.
2425
2426         * Split mhn -build into mhbuild.  Did some code cleanup.
2427
2428         * Added support for %(decode) to fmtdump.c.
2429
2430         * check_charset() now accepts US-ASCII as a subset of any
2431           ISO-8859-X character set.
2432
2433         * Changed the default "showproc" to mhl, instead of the
2434           pager more.
2435
2436         * When reading file into mhn composition file, only need read
2437           permissions, not write permissions.
2438
2439         * Added own version of strcasecmp to distribution, since
2440           nmh calls it frequently with NULL pointers (ughh).
2441
2442         * Replaced uleq.c with strcasecmp.  Removed uleq.c from
2443           distribution.
2444
2445 1998-01-22  Richard Coleman  <coleman@math.gatech.edu>
2446
2447         * Released nmh-0.21-pre1.
2448
2449         * If a message is missing charset parameter to text/plain, show
2450           will assume US-ASCII, rather than just calling showmimeproc.
2451
2452         * Change show.c and mshcmds.c to use check_charset to see if text
2453           message contains valid character set.
2454
2455         * Added new scan format file "scan.nomime" to support/general
2456           that doesn't do any RFC-2047 decoding.
2457
2458         * Modified all the scan format files in support/general to do
2459           RFC-2047 decoding of Subject field.
2460
2461         * Did more work on sbr/fmt_rfc2047.c, so that it will correctly
2462           ignore whitespace between two valid encoded words, but not
2463           between an encoded word and normal text.
2464
2465         * Created new file sbr/check_charset.c.  Moved code from
2466           fmt_rfc2047.c to check for valid character set to this file.
2467
2468         * Added format escape %(decode) to decode contents of "str" register
2469           as a RFC-2047 header field.
2470
2471         * The command install-mh now recognizes the switches -version
2472           and -help.
2473
2474         * Added a new argument to print_help.c to decide whether to
2475           print profile entries (needed for install-mh to prevent weird
2476           loops).
2477
2478         * Changed folder_read.c and folder_realloc.c so that mp->lowoff
2479           is initialize to max (mp->lowmsg, 1) rather than always 1.
2480
2481         * Changed macros for sequence/attribute manipulation so that
2482           message status array doesn't need to always start at 1.
2483
2484         * Small cleanups in folder_realloc().
2485
2486 1998-01-09  Richard Coleman  <coleman@math.gatech.edu>
2487
2488         * Released nmh-0.20.
2489
2490         * Added configure option --with-pager=PAGER.
2491
2492         * Added configure option --with-editor=EDITOR.
2493
2494         * Changed the default format file for mhl (mhl.format) to
2495           also ignore (not display) the header fields Content-Type,
2496           Content-Transfer-Encoding, and Content-ID
2497
2498         * Fixed core dump in addrsbr.c when using %(proper) format function
2499           and the To: line was missing.
2500
2501         * Added the file ZSH.COMPLETION to the distribution.
2502
2503 1998-01-04  Richard Coleman  <coleman@math.gatech.edu>
2504
2505         * Released nmh-0.20-pre2.
2506
2507         * Added new switch -snoop to both `msgchk' and `inc', so you can
2508           watch the POP transaction.
2509
2510         * Changed "replgroupcomps" to check for Mail-Followup-To header
2511           first, and use it if available.
2512
2513         * Changed "replcomps" to check for Mail-Reply-To header
2514           first, and use it if available.
2515
2516 1998-01-03  Richard Coleman  <coleman@math.gatech.edu>
2517
2518         * Released nmh-0.20-pre1.
2519
2520         * Changed seq_list.c to dynamically enlarge the buffer for
2521           collecting the message ranges in a long sequence line.
2522           This should remove the last hard limit on the size of a
2523           sequence line.
2524
2525         * Changed seq_read.c so that can read long sequence lines.
2526           It will use multiple calls to m_getfld() when m_getfld()
2527           returns the state FLDPLUS.
2528
2529         * Changed brkstring.c to dynamically add more space for pointers
2530           if necessary.  This is needed when splitting up large sequence
2531           lines.
2532
2533         * Did some small cleanups in seq_save.c.
2534
2535         * Added new switches `-[no]unseen' to rcvstore, to control
2536           whether new messages are added to Unseen-Sequence.
2537
2538         * Moved locking routines (zotnet/mts/lock.c) to sbr/lock_file.c
2539
2540         * Changed the internal UNSEEN flag to SELECT_UNSEEN which is
2541           more appropriate.  Changed the MHPATH flag to ALLOW_NEW.
2542
2543         * Changed "replcomps" to not include CC and TO lines so that
2544           that reply message is only directed at the author of the
2545           message to which you are replying.
2546
2547         * Added new switch `-group' to command repl, which causes repl
2548           to use new forms file "replgroupcomps".  This is intended for
2549           making group replies.
2550
2551         * Removed #ifdef for ATHENA.
2552
2553 1997-12-28  Richard Coleman  <coleman@math.gatech.edu>
2554
2555         * Released nmh-0.19.
2556
2557         * Fix repl,forw so that switch `-form file' will not abort
2558           as ambiguious (silly mistake on my part).
2559
2560         * Cleaned up the mhn man page.  Added info about a few escapes
2561           for the formatting/display strings that were not documented
2562           (%%, %t).  Moved the BNF grammar for the mime composition file,
2563           to the end of the man page.
2564
2565         * Added the options -[no]format to the command repl.  The
2566           switch `-format' will filter the message to which you are
2567           replying with the standard message filter "mhl.reply", which
2568           is now included in the distribution.  The `-noformat' option
2569           will negate the use of -format or -filter and not include
2570           the message to which you are replying in the draft.
2571
2572         * Did some cleaning and reorganization on many of the man
2573           pages.
2574
2575         * Added debugging switch `-debug' to mhparam, which displays
2576           the values of all `procs' (and some other misc configuration
2577           info) that nmh keeps in global variables.
2578
2579         * When using `refile -preserve', if a conflict occurs, then use
2580           the next available number above the message number you wish
2581           to preserve.
2582
2583         * In forw.c, split the code for creating MIME style forwarding
2584           out of copy_draft, and into copy_mime_draft.
2585
2586         * Move routines in mark.c to print sequences, into new
2587           file sbr/seq_print.c
2588
2589         * flist will now update the current folder.
2590
2591         * Added the switches -[no]fast to flist, to replace
2592           -[no]total.  The previous switches are still accepted
2593           but now undocumented.
2594
2595         * More reorganization in flist of the code for
2596           traversing folders.
2597
2598         * The command "flist +foo -all" will now scan the folder
2599           "foo" and all its 1st level children.
2600
2601         * Add missing include file <h/mh.h> to sbr/snprintf.c
2602
2603         * Fix alarm bug in rcvtty, so that when it calls external
2604           process, the alarm is never longer than 30 minutes.
2605
2606 1997-12-17  Richard Coleman  <coleman@math.gatech.edu>
2607
2608         * Released nmh-0.18.
2609
2610         * Fixed bug in mark, so that "mark -list -seq foo" will
2611           correctly indicate if "foo" is a private sequence.  I found
2612           this bug mentioned in Jerry Peek's book.
2613
2614         * Simplified the code in seq_setcur(), since seq_addmsg() now
2615           retains the public/private status of sequences.
2616
2617         * Changed sequence handling so that if the switches -public
2618           or -nopublic, are not specified for the commands mark, pick,
2619           or rcvstore, then existing sequences will retain their
2620           previous public/private status.
2621
2622         * mhparam now handles the mh-sequences profile entry
2623           correctly.
2624
2625         * flist -all will now also check readonly folders (for
2626           private sequences).
2627
2628         * Improve the leaf optimization for folder command.
2629           It will now track the number of directories in a folder,
2630           and stop stat'ing files once it has hit all the subfolders.
2631
2632         * Renamed m_getfolder to getfolder.  Changed getfolder to
2633           take option to determine whether it should get current
2634           folder, or just default folder (Inbox).  Changed rcvstore,
2635           inc, and rmf to use the new getfolder.
2636
2637         * flist now indicates if a sequence is private.
2638
2639         * Change WUNTRACED to 0, in pidwait.c, so that commands will
2640           wait for stopped processes.
2641
2642         * conflict will dynamically allocate space for group names,
2643           so it can now handle system with more than 100 groups.
2644
2645 1997-12-09  Richard Coleman  <coleman@math.gatech.edu>
2646
2647         * Released nmh-0.18-pre4.
2648
2649         * Check if we have enough message status space, before we
2650           call folder_realloc() in burst, mhpath, and m_draft().
2651
2652         * mhn will now correctly identify a formatting string of "-"
2653           for the option -store, and send content to stdout.
2654
2655         * Change the way that memory for message status is
2656           allocated.  It is dynamcially allocated separately from
2657           the folder/message structure.  This required changing
2658           folder_read.c, folder_realloc.c, folder_free.c.
2659
2660         * Removed all the MTR code (experimental code for message
2661           status allocation).
2662
2663         * Renamed m_readfolder.c to folder_read.c and simplified
2664           the code.
2665
2666         * Renamed m_freefolder.c to folder_free.c.
2667
2668         * Add function trim() to slocal.c to pretty print
2669           the debugging output.
2670
2671         * Changed the name of m_packfolder() to folder_pack().
2672           Changed the name of m_remsg() to folder_realloc().
2673
2674 Wed Dec  3 23:33:38 1997  Richard Coleman  <coleman@math.gatech.edu>
2675
2676         * Released nmh-0.18-pre3.
2677
2678         * Changed installation to add `flists' which is hard linked
2679           to `flist'.  This is a equivalent to `flist -all'.
2680
2681         * For flist, -showzero is on by default.
2682
2683         * Major changes to flist.  Default is now for flist to search
2684           current folder.  The switch `-all' is now used to specify
2685           searching all top level folders.  The new switch `-showzero'
2686           is used to print out folders that don't contain any messages
2687           in the given sequence.
2688
2689         * Split BuildFolderList in flist.c into 2 functions
2690           (BuildFolderList, BuildFolderListR).  Changed these functions
2691           so that flist now does better leaf optimization, and will stop
2692           stat'ing directory entries when it knows it has hit all the
2693           subdirectories of a given directory.
2694
2695         * Reorganized code in folder.c, so that all relevant folders
2696           are scanned first and information recorded.  Then all the
2697           folder summaries at printed out at one time.
2698
2699         * Made the options of folder(s) more orthogonal.  Now
2700           "folder -all -noheader -nototal" will do the right thing.
2701
2702         * Added `-noall' switch to folder, for completeness.
2703
2704         * Changed the default mode for creation of new folders
2705           to 0700 (was 0711).
2706
2707         * Slightly changed the format for flist.  It now indicates
2708           if a folder is current.  Also the width of the various
2709           fields are now calculated at runtime.
2710
2711         * Changed the format for folder(s).  Folder names
2712           are now left justified.  The width of the various fields
2713           are calculated at runtime.
2714
2715 Sun Nov 30 19:14:53 1997  Richard Coleman  <coleman@math.gatech.edu>
2716
2717         * Released nmh-0.18-pre2.
2718
2719         * Add paragraph to man page for install-mh and to INSTALL file
2720           about checking for global mh.profile.
2721
2722         * Renamed m_find() to context_find().
2723           Renamed m_replace() to context_replace().
2724           Renamed m_delete() to context_del().
2725           Renamed m_update() to context_save().
2726           Renamed m_getdefs() to context_read().
2727           Renamed m_foil() to context_foil().
2728
2729         * Change rcvstore to use routine folder_addmsg(), instead of
2730           adding message to folder itself.
2731
2732         * Changed refile, so that if the switch -preserve is used,
2733           and a conflict occurs for a particular folder, then folder_addmsg()
2734           will just use next highest available number for that folder,
2735           instead of exiting.
2736
2737         * Make folder_addmsg() more robust.  It will make repeated
2738           attempts to link file into folder if link returns with
2739           the error EEXIST.
2740
2741         * Fix bug, so that that if forking sendmail, HELO will be sent
2742           unless clientname: option is defined but empty (so now it
2743           is the same as the direct smtp code).
2744
2745         * Changed sprintb to snprintb (now we pass the buffer length
2746           to new routine).  Changed code to use new function.
2747
2748         * Added snprintf to sbr. Added configure check to build it
2749           if you don't have a native version (but haven't changed much
2750           code to use it yet).
2751
2752 Thu Nov 13 18:42:18 1997  Richard Coleman  <coleman@math.gatech.edu>
2753
2754         * Released nmh-0.18-pre1.
2755
2756         * Fixed alarm bug in slocal, so that alarm is never
2757           called with a value larger than 30 mintues.
2758
2759         * Fixed race condition in rmm and refile, so that
2760           context is updated before external rmmproc is called.
2761
2762         * Removed all the OVERHEAD code.
2763
2764         * Move code to add message to folder from refile.c
2765           to folder_addmsg.c
2766
2767 Fri Jul 25 19:39:29 1997  Richard Coleman  <coleman@math.gatech.edu>
2768
2769         * Did some rearranging of the internals of inc.c.
2770
2771         * Make -inplace the default for anno, forw, dist, and repl.
2772
2773         * Changed --enable-smtp to --with-mts={smtp,sendmail}
2774
2775         * Created new directory mts/sendmail for direct sendmail
2776           interface (although it currently still uses SMTP).
2777
2778         * Removed all the TMA (trusted mail agent) code
2779
2780         * Removed all the TTYD (terminal access daemon) code
2781
2782         * Removed all the MF (uucp filtering) code.
2783
2784         * Removed all the code for BERK.
2785
2786         * Removed all the code for stand-alone delivery (MHMTS).
2787
2788         * Split the file mts/sendmail/smail.c into sendmail.c and
2789           smtp.c.  Changed the name of the directory to mts/smtp.
2790
2791         * Changed autoconf to use @sysconfdir@ for location of
2792           configuration files.
2793
2794         * Changed #define in mhn.c from FTP to BUILTIN_FTP.
2795
2796 Mon Jul 21 03:22:34 1997  Richard Coleman  <coleman@math.gatech.edu>
2797
2798         * Released nmh-0.17.
2799
2800         * MAKEDEFS weren't passed down to recursive makes correctly.
2801
2802         * slocal.c now checks for UTMP_FILE and _PATH_UTMP instead
2803           of hard-coding "/etc/utmp".
2804
2805         * rcvtty.c check for _PATH_UTMP if UTMP_FILE is not
2806           defined.
2807
2808         * Remove configure checks for ulong and ushort.  Changed
2809           code to just use unsigned {short, long}.
2810
2811         * Change addmsg function in refile.c to return new
2812           number of refiled message.
2813
2814         * Added check in get_returnpath for empty unixbuf.
2815
2816         * Cleanup of sbr/pidstatus to use more POSIX macros
2817           for return value of wait().
2818
2819         * Change configure to also check /bin for "more".
2820
2821 Sat Jul 12 00:02:23 1997  Richard Coleman  <coleman@math.gatech.edu>
2822
2823         * Released nmh-0.16.
2824
2825 Mon Jun 23 20:13:24 1997  Richard Coleman  <coleman@math.gatech.edu>
2826
2827         * Added automimeproc, which should replace automhnproc.
2828
2829         * multipart messages will no longer abort for messages
2830           of type 8bit or binary (although we still can't really
2831           deal with binary messages, yet).
2832
2833         * Fix double free of c_storage.  From John MacMillan.
2834
2835         * mhn now treats unknown subtypes of "text" as text/plain.
2836
2837         * mhn changed so that specifying mhn-show-multipart, or
2838           mhn-show-multipart/{mixed, alternate, etc...) will override
2839           the use of the internal method for displaying these types.
2840           Previously mhn would always use the internal method for subtypes
2841           mixed, alternate, digest, and parallel (even if an alternate
2842           method was specified in mhn.defaults).
2843
2844         * mhn show treats unknown subtypes of multipart, as type
2845           multipart/mixed (as specified RFC2046).
2846
2847         * mhn checks for the parameter "name" rather than "x-name".
2848           From MH-6.8.4 patch.
2849
2850         * Fix double free of ctinfo in user_content when using
2851           #forw with single message.  From John MacMillan (and
2852           MH-6.8.4 patch).
2853
2854         * Changed -mhnproc switch for show, to -showmimeproc.
2855
2856         * Changed profile entry "mhnproc" to "showmimeproc".
2857
2858         * Added "mime" option to "whatnow", which calls the program
2859           "buildmimeproc" (default is mhn -build) to process MIME
2860            composition files.
2861
2862         * Added -build switch to mhn, to process MIME composition
2863           files.
2864
2865         * Did some reorganizing of mhn.c.
2866
2867         * Changed casting in mts/sendmail/smail.c from (char) to
2868           (signed char) so SMTP reply codes work correctly for machines
2869           which used unsigned chars by default.
2870
2871 Sat Jun 21 01:21:47 1997  Richard Coleman  <coleman@math.gatech.edu>
2872
2873         * Released nmh-0.15.
2874
2875         * Added new form "scan.unseen" to distribution.  It marks messages
2876           which are in any sequence in Unseen-Sequence.
2877
2878         * Do some rearranging of date/time code in zotnet/tws/dtime.c
2879
2880         * Fix sign extension bugs in fmt_scan.c.
2881
2882         * Fix m_atoi.c so that strings ending in non-digit characters
2883           return 0.
2884
2885         * Split code in burst.c so that finding delimiters of digested
2886           messages and bursting a message into multiple messages are
2887           two separate functions (find_delim and burst).
2888
2889         * Add workaround fo AC_PATH_PROG in configure.in, so
2890           that BSD4.4 machines can find sendmail, vi, more.
2891
2892         * Added "-width" option to rcvtty.
2893
2894         * Change a few variable names in zotnet/mts/client.c since
2895           they conflict with defines on AIX.
2896
2897         * Makefile in zotnet/tws assumes lexing of dtimep.lex was
2898           unsuccessful if resulting file is less than 500 lines long
2899           (rather than 10, which was previous value), since AIX
2900           sed gives mangled file of about 200 lines.
2901
2902         * Extract code in rcvstore.c to link message into folder,
2903           and put in own subroutine.
2904
2905         * Extract code in refile.c to link message into folder,
2906           and put in own subroutine.
2907
2908         * Moved code to remove messages from folder into own
2909           routine "folder_delmsgs" in sbr.  Changed rmm.c and
2910           refile.c to use new routine.
2911
2912 Fri May 16 06:09:31 1997  Richard Coleman  <coleman@math.gatech.edu>
2913
2914         * Renamed m_seqok to seq_nameok.
2915
2916         * Changed m_setunseen, msh, mshcmds, flist, and scan to use
2917           seq_getnum.
2918
2919         * Changed m_seqflag to return the number of a sequence rather
2920           than its bit flag.  Changed its name to seq_getnum and renamed
2921           file to sbr/seq_getnum.c.
2922
2923         * Removed function m_seqnew and file sbr/m_seqnew.c since it is
2924           no longer used.
2925
2926         * Added zero switch to m_seqadd function to zero out bits before
2927           adding message to sequence.
2928
2929         * Renamed function m_setvis to m_setunseen, and renamed
2930           corresponding file in sbr.
2931
2932         * Renamed function m_setseq to m_setprev, and renamed corresponding
2933           file in sbr.
2934
2935         * Changed mark.c and pick.c to use m_seqaddsel and m_seqdelsel.
2936
2937         * Added new function m_seqdelsel to m_seqdel.c, which deletes
2938           all selected messages from a sequence.
2939
2940         * Added new function m_seqaddsel to m_seqadd.c, which adds all
2941           selected messages to a sequence.
2942
2943         * Split sbr/m_seqnew.c into m_seqadd.c, m_seqdel.c, m_seqnew.c,
2944           and m_seqok.c.
2945
2946 Thu May 15 00:53:17 1997  Richard Coleman  <coleman@math.gatech.edu>
2947
2948         * Renamed function pack_folder to m_packfolder, and moved it
2949           from uip/folder.c into its own file sbr/m_packfolder.c
2950
2951 Wed May 14 23:38:00 1997  Richard Coleman  <coleman@math.gatech.edu>
2952
2953         * Changed function m_gmsg to m_readfolder.  Renamed file
2954           sbr/m_gmsg.c to sbr/m_readfolder.c.
2955
2956 Mon May  5 19:57:11 1997  Richard Coleman  <coleman@math.gatech.edu>
2957
2958         * Expanded rcvtty man page, and added small patch from
2959           MH-6.8.4 distribution.
2960
2961 Fri May  2 15:24:34 1997  Richard Coleman  <coleman@math.gatech.edu>
2962
2963         * Released nmh-0.14.
2964
2965         * Comment out configure test and code for tgetent to allocate its
2966           own termcap buffer when passed a NULL argument.
2967
2968 Sat Apr 26 03:46:38 1997  Richard Coleman  <coleman@math.gatech.edu>
2969
2970         * Added new options `-checkmime', `-nocheckmime', and `-mhnproc'
2971           to show.  Restructured code to handle options to various
2972           `procs' better.  Deprecated `-noshowproc' option and NOMHNPROC
2973           environment variable.
2974
2975         * Added new man page `mh-draft' which documents the
2976           draft folder facility in nmh.
2977
2978         * Renamed fmtsbr.h to fmt_scan.h.  Renamed fmtcompile.h
2979           to fmt_compile.h.
2980
2981         * split fmtsbr.c into fmt_scan.c and fmt_new.c.  Renamed
2982           fmtcompile.c to fmt_compile.c, and formataddr.c to
2983           fmt_addr.c.
2984
2985         * `send -help' wasn't showing the -(no)mime and -split
2986           options.
2987
2988 Fri Apr 25 02:50:36 1997  Richard Coleman  <coleman@math.gatech.edu>
2989
2990         * Released nmh-0.13.
2991
2992         * Changed mhpath so it doesn't abort if a message sequence
2993           such as "mhpath all" expands to more than 1000 messages.
2994           Also mhpath now dynamically reallocated space for message
2995           names (The number of command line arguments is still limited
2996           to MAXARGS).
2997
2998         * Did some general restructuring of the code in folder.c
2999           that checks for folder information, and prints it.
3000
3001 Thu Apr 24 01:04:37 1997  Richard Coleman  <coleman@math.gatech.edu>
3002
3003         * Changed `folder' to reallocate space for folder names if
3004           necessary.  So `folders' can now handle more than 300 folders.
3005
3006 Tue Apr 22 14:01:26 1997  Richard Coleman  <coleman@math.gatech.edu>
3007
3008         * Change configure to use a compile check to see if the tm struct
3009           has tm_gmtoff, rather than using egrep.
3010
3011 Mon Apr 21 02:19:17 1997  Richard Coleman  <coleman@math.gatech.edu>
3012
3013         * Released nmh-0.12.
3014
3015         * Had set_exists and unset_exists macros backwards.
3016
3017         * Released nmh-0.11.
3018
3019 Thu Apr 10 02:39:53 1997  Richard Coleman  <coleman@math.gatech.edu>
3020
3021         * Added documentation to mh-profile.man about the various
3022           `procs' (mhlproc, showproc, lproc, etc...).
3023
3024         * Replace the bit twiddling for SELECTED, UNSEEN, and
3025           mp->attrstats with macros.
3026
3027         * If system doesn't have SIGEMT (like Linux), then use SIGTERM
3028           in msh.c instead.
3029
3030         * Change fstat to stat in m_gmsg.c since Linux wants
3031           to hide dd->dd_fd.
3032
3033         * Merge Linux patch sent in by Michel Oosterhof (original
3034           patch from bsa@kf8nh.wariat.org).
3035
3036         * Document an undocumented MH feature.  mhn -form mhl.null
3037           will suppress the display of the message header.
3038
3039         * mhparam will now return "mhparam etcdir".
3040
3041         * Add catproc to /config/config.c and use that in show.c
3042           and mshcmds.c, rather than hard coding in /bin/cat.
3043
3044         * Add mhnproc to the list of `procs' in mh-profile.man.
3045
3046         * Add configure test for lorder and tsort commands.
3047
3048         * Commented out the padding in the `msgs` struct in h/mh.h
3049
3050         * Change m_gmsg.c to allocate elements to the `info' array by
3051           500 elements at a time (rather than MAXFOLDERS / 5).
3052
3053         * Add note to man page for mhmail that zero length messages are
3054           not sent.  Need to use -body "" to send empty messages.
3055
3056         * zotnet/mts/mts.c : compare character with '\0', not NULL.
3057
3058         * sbr/getcpy.c : assign '\0' to character, not NULL.
3059
3060         * add m_fmsg to most programs in uip so that they explicitly free
3061           folder/message structure when done with folder.
3062
3063         * uip/slocal.c : cleanup processing of sender.  Make sure it is
3064           defined even if message is missing "From " line.
3065
3066 Mon Mar 31 03:37:35 1997  Richard Coleman  <coleman@math.gatech.edu>
3067
3068         * Released nmh-0.10.
3069
3070 Sun Mar 30 21:46:17 1997  Richard Coleman  <coleman@math.gatech.edu>
3071
3072         * Add configure check for <locale.h>.  Turn on LOCALE support
3073           by default.
3074
3075 Thu Mar 20 03:21:24 1997  Richard Coleman  <coleman@math.gatech.edu>
3076
3077         * Reversed previous decision to retain "From " lines in slocal.
3078           The "From " line is now removed from all messages.
3079
3080         * inc now saves the date from the "From " envelope in the
3081           Delivery-Date header for all messages.
3082
3083         * sbr/m_getfld.c: Clean up processing of Return-Path and
3084           Delivery-Date from the "From " envelope.
3085
3086 Mon Mar 17 19:03:36 1997  Richard Coleman  <coleman@math.gatech.edu>
3087
3088         * client.c: cast iaddr to int before comparing return value
3089           of inet_addr with NOTOK.
3090
3091 Tue Mar 11 04:38:10 1997  Richard Coleman  <coleman@math.gatech.edu>
3092
3093         * Grep test for signal names was failing on some OS'es because
3094           of missing tabs in regex.
3095
3096 Sat Mar  8 01:58:22 1997  Richard Coleman  <coleman@math.gatech.edu>
3097
3098         * Released nmh-0.09.
3099
3100         * Move config files and format files to *.old before installing.
3101
3102         * Add configure check for killpg.
3103
3104         * msh.c: include <termios.h> instead of <termio.h> and
3105           <sys/ioctl.h>.
3106
3107         * prompter.c: don't include <sys/ioctl.h> anymore.
3108
3109 Thu Mar  6 04:03:24 1997  Richard Coleman  <coleman@math.gatech.edu>
3110
3111         * Added `-mime' and `-nomime' options to `repl'.
3112           From MH-6.8.4 diff.
3113
3114 Tue Mar  4 03:10:37 1997  Richard Coleman  <coleman@math.gatech.edu>
3115
3116         * ruserpass.c : removed conflicting prototypes.
3117
3118         * rcvtty.c : Fixed rcvtty to obey terminal permissions granted
3119           by `mesg' command.  Previously only worked on BSD machines.
3120
3121 Mon Mar  3 00:18:59 1997  Richard Coleman  <coleman@math.gatech.edu>
3122
3123         * rcvtty.c : Changed to use #define UTMP_FILE (if exists) rather
3124           than hard coded "/etc/utmp".
3125
3126         * Released nmh-0.08.
3127
3128         * Changed slocal to lock .maildelivery (or file given by -maildelivery)
3129           when accessing ndbm/db file for duplicate suppression, instead of
3130           locking database itself.
3131
3132 Thu Feb 27 05:28:09 1997  Richard Coleman  <coleman@math.gatech.edu>
3133
3134         * Added slocal action `mmdf' to deliver to a file in mmdf format.
3135
3136         * Changed the slocal actions `file' and `>' to always deliver in
3137           mbox (uucp) format rather than be determined by RPATHS config
3138           option.
3139
3140         * Changed the slocal action `mbox' to deliver in mbox (uucp) format
3141           rather than mmdf format.
3142
3143         * slocal now adds Delivery-Date field to all messages (previously it
3144           only added it to messages when delivering them to a file). The
3145           "From " line is now retained on all messages if compiling with
3146           RPATHS, rather than being discarded.
3147
3148         * rcvpack no longer adds the Delivery-Date field to messages.
3149
3150 Sun Feb 23 22:03:54 1997  Richard Coleman  <coleman@math.gatech.edu>
3151
3152         * Removed the script packmbox, since it's functionality has been
3153           added to packf.
3154
3155         * Changed packf so that it uses mbox (uucp) format by default
3156           rather than mmdf format.  Added options -mbox and -mmdf to
3157           packf so you can choose the preferred format.
3158
3159         * Changed rcvpack so that it uses mbox (uucp) format by default
3160           rather than mmdf format.  Added options -mbox and -mmdf to
3161           rcvpack so you can choose the preferred format.
3162
3163 Tue Feb 18 00:01:05 1997  Richard Coleman  <coleman@math.gatech.edu>
3164
3165         * Changed nmh to use dot locking by default (although you
3166           can still easily change this in config.h).
3167
3168         * Simplified locking code.  Removed code allowing setting of
3169           locking type in mts.conf.  Now the locking type and locking
3170           directory (if any) can only be set at compile time.
3171
3172 Fri Feb 14 02:49:18 1997  Richard Coleman  <coleman@math.gatech.edu>
3173
3174         * Prefer getting timezone information from tm->gmtoff rather
3175           than tzset and external timezone variable.
3176
3177 Thu Feb 13 00:35:45 1997  Richard Coleman  <coleman@math.gatech.edu>
3178
3179         * Fixed typo in ruserpass.c in the variable toktabs.
3180
3181         * When ruserpass was added to LIBOBJS, it was missing
3182           the suffix.
3183
3184         * Released nmh-0.07.
3185
3186 Tue Feb 11 01:29:47 1997  Richard Coleman  <coleman@math.gatech.edu>
3187
3188         * Add check to configure, so that if ruserpass, or _ruserpass
3189           is not found, build version of ruserpass in sbr.
3190
3191         * Added define's to discard.c, m_getfld.c, and scansbr.c so
3192           the code that manipulates internals of stdio, will build
3193           on SCO 5.x.
3194
3195         * Added #define to control whether to compile the simple
3196           built-in FTP client in mhn.
3197
3198         * Added configure check for ushort and ulong.  Change code
3199           to use ushort/ulong rather than u_short/u_long.
3200
3201         * A couple of small cleanups in locking code.
3202
3203         * Added configure check for gmtoff element in struct tm.
3204
3205         * Added configure check for tzset.
3206
3207 Fri Feb  7 03:01:57 1997  Richard Coleman  <coleman@math.gatech.edu>
3208
3209         * Released nmh-0.06.
3210
3211         * Removed code for machines that don't have socket
3212           interface (how could they get mail anyway?).
3213
3214         * Removed code for BSD41 machines.  I don't think there are
3215           many such machines around anymore.
3216
3217         * Add configure check for function uname, and prefer it
3218           over gethostname.  General cleanup of zotnet/mts/mts.c.
3219
3220         * Change all `lseek' calls to use POSIX symbolic constants
3221           SEEK_SET, SEEK_CUR, SEEK_END.
3222
3223 Thu Feb  6 01:16:30 1997  Richard Coleman  <coleman@math.gatech.edu>
3224
3225         * Check lex generated file in zotnet/tws and use
3226           pre-generated version if necessary.
3227
3228         * Released nmh-0.05.
3229
3230         * Change to use reliable signals on all platforms that have
3231           sigaction.  Change so that interrupted system calls are
3232           restarted for all signals except SIGALRM.  This fixes alarm
3233           handling code in smail.c for BSD based systems.
3234
3235         * Added lorder and tsort commands so that created libs can
3236           be linked in one pass.
3237
3238 Tue Feb  4 01:33:00 1997  Richard Coleman  <coleman@math.gatech.edu>
3239
3240         * Changed pidwait so that while it is waiting for a child,
3241           it should block signals rather than ignore them.
3242
3243 Mon Feb  3 21:05:30 1997  Richard Coleman  <coleman@math.gatech.edu>
3244
3245         * Add checks to configure for dbm_open and -lndbm.
3246
3247 Thu Jan 30 05:15:42 1997  Richard Coleman  <coleman@math.gatech.edu>
3248
3249         * folder -pop and folder -push were freeing some memory too
3250           quickly, which caused the entry popped from the stack to not
3251           become the current folder.
3252
3253 Wed Jan 29 01:28:02 1997  Richard Coleman  <coleman@math.gatech.edu>
3254
3255         * Released nmh-0.04.
3256
3257         * Define ospeed and PC in termsbr.c is OS doesn't have
3258           it.
3259
3260 Sun Jan 26 20:25:10 1997  Richard Coleman  <coleman@math.gatech.edu>
3261
3262         * editfile will create a symbolic link to the altmsg if it
3263           can't make a link, on any machine supporting lstat.  Formerly
3264           this would happen only on BSD42 based machines.
3265
3266 Sat Jan 25 22:54:26 1997  Richard Coleman  <coleman@math.gatech.edu>
3267
3268         * traverse (in popsbr.c) wasn't calling va_start before using
3269           variable argument list.  Fixes core dump in inc when using POP.
3270
3271 Fri Jan 24 03:27:59 1997  Richard Coleman  <coleman@math.gatech.edu>
3272
3273         * The variable pass in remotemail needed to be set to
3274           NULL.  (From MH-6.8.4 diff).  Fixes core dump of msgchk when
3275           using POP.
3276
3277         * inc and msgchk were using -rpop by default when configured
3278           with POP support.  Default is now -norpop.
3279
3280 Thu Jan 23 02:01:17 1997  Richard Coleman  <coleman@math.gatech.edu>
3281
3282         * By default, post will now give the SMTP HELO command with
3283           the local hostname.  If you specify a hostname with the
3284           clientname: option in mts.conf file, post will give the
3285           HELO command with that name instead.  If the argument to the
3286           clientname: option is empty, no HELO command is given.
3287           (From the MH-6.8.4 diff)
3288
3289 Wed Jan 22 01:55:45 1997  Richard Coleman  <coleman@math.gatech.edu>
3290
3291         * When using `-help' for a command, it will also print its
3292           profile compents from .mh_profile. (From MH-6.8.4 diff)
3293
3294         * "slocal -file" will now correctly takes its input from
3295           a file (currently need to specify full path).
3296
3297 Sun Jan 19 20:37:21 1997  Richard Coleman  <coleman@math.gatech.edu>
3298
3299         * "slocal -debug" will now issue a warning if a non-blank
3300           line in the .maildelivery file has less than 5 fields.
3301
3302 Sat Jan 18 02:26:41 1997  Richard Coleman  <coleman@math.gatech.edu>
3303
3304         * Changed slocal so that code for duplicate suppression
3305           (MH config was MSGID) is always built. Added the options
3306           -[no]suppressdup to slocal to turn this on/off.
3307
3308 Thu Jan 16 00:26:34 1997  Richard Coleman  <coleman@math.gatech.edu>
3309
3310         * Released nmh-0.03.
3311
3312         * Fixed problem where mark would core dump if no
3313           .mh_sequence file existed.
3314
3315         * Fixed problem where slocal would core dump if -debug
3316           option was given, and certain headers were missing.
3317
3318         * Added patch to slocal to add `folder' (+) action, which
3319           is shorthand for piping message to rcvstore.  Updated
3320           man page.
3321
3322 Wed Jan 15 21:30:17 1997  Richard Coleman  <coleman@math.gatech.edu>
3323
3324         * Changed flist option -unseen to -[no]all.  Cleaned up
3325           flist man page.
3326
3327 Fri Jan 10 20:36:33 1997  Richard Coleman  <coleman@math.gatech.edu>
3328
3329         * Fixed flist.  Changed the profile component `Folder-Order'
3330           to `Flist-Order.  Added option `-sequence' to flist, so
3331           you can specify the name of the sequence to search for.
3332
3333 Thu Jan  9 00:20:48 1997  Richard Coleman  <coleman@math.gatech.edu>
3334
3335         * A few minor portability cleanups.  Changed to use PATH_MAX
3336           rather than MAXPATHLEN.  Don't assume ospeed variable exists
3337           in termsbr.c.  Removed some conflicting prototypes.
3338
3339 Wed Jan  8 11:05:02 1997  Richard Coleman  <coleman@math.gatech.edu>
3340
3341         * Add configure test to check if tgetent will accept NULL
3342           and allocate its own buffer.  Borrowed from zsh.
3343
3344         * Changed libpath to etcpath.
3345
3346 Mon Jan  6 04:15:35 1997  Richard Coleman  <coleman@math.gatech.edu>
3347
3348         * Cleaned up source code and Makefiles, so that if your `make'
3349           supports the VPATH option, you can build nmh in a different
3350           directory from where the source code is located.
3351
3352 Fri Jan  3 05:05:18 1997  Richard Coleman  <coleman@math.gatech.edu>
3353
3354         * Released nmh-0.02.
3355
3356 Wed Jan  1 17:41:52 1997  Richard Coleman  <coleman@math.gatech.edu>
3357
3358         * Split mhook man page into man pages for rcvdist, rcvpack,
3359           and rcvtty.
3360
3361 Tue Dec 31 03:07:48 1996  Richard Coleman  <coleman@math.gatech.edu>
3362
3363         * Changed code to use strerror, rather than using sys_errlist
3364           and sys_nerr directly.
3365
3366 Mon Dec 30 02:15:25 1996  Richard Coleman  <coleman@math.gatech.edu>
3367
3368         * -compat switch from install-mh removed.
3369
3370         * Changed the default POP port from "pop" to "pop3".
3371
3372 Sat Dec 28 13:25:05 1996  Richard Coleman  <coleman@math.gatech.edu>
3373
3374         * Changed mhn_defaults to mhn.defaults.  Changed create_mhn_defaults
3375           (again) to mhn.defaults.sh.  Changed find_program (again) to
3376           mhn.find.sh.  mhn.defaults.sh now takes the search path
3377           as an argument.  Default search path is now specified in Makefile
3378           rather than in script.
3379
3380 Fri Dec 27 16:34:01 1996  Richard Coleman  <coleman@math.gatech.edu>
3381
3382         * Changed mtstailor file to mts.conf.  Updated man pages.
3383
3384         * Changed si_value to si_val in mhn.c, since it conflicts with
3385           macro defined on Solaris.
3386
3387 Thu Dec 26 02:50:15 1996  Richard Coleman  <coleman@math.gatech.edu>
3388
3389         * Added --enable-nmh-mhe (and --disable-nmh-mhe) to enable/disable
3390           support for Emacs front-end mhe.  It is on by default.
3391
3392         * Added the following configure options: --enable-nmh-pop to
3393           enable client side pop support, --enable-nmh-smtp to enable
3394           SMTP support.  Client-side pop support now compiles.  Man
3395           pages for inc, msgchk, mh-chart now correctly added pop
3396           options if enabled.
3397
3398 Tue Dec 24 14:33:20 1996  Richard Coleman  <coleman@math.gatech.edu>
3399
3400         * Added configure test for bug in C libraries where linker
3401           can't find ruserpass, but can find _ruserpass.
3402
3403         * Fixed configure test so that termcap variable ospeed is
3404           correctly found.
3405
3406 Mon Dec 23 19:40:17 1996  Richard Coleman  <coleman@math.gatech.edu>
3407
3408         * Source files converted to ANSI C.
3409         
3410         * md5 now compiled separately rather than being included
3411           in mhn.c.  Changed md5 to use memset and memcpy.
3412
3413 Fri Dec 20 02:29:37 1996  Richard Coleman  <coleman@math.gatech.edu>
3414
3415         * Collected the error routines adios, advise, admonish, and advertise
3416           into one file (error.c), and did some rearranging of the code.
3417
3418 Thu Dec 19 19:05:29 1996  Richard Coleman  <coleman@math.gatech.edu>
3419
3420         * Added awk script sigmsg.awk (originally written by
3421           Geoff Wing <mason@werple.apana.org.au> for zsh) to
3422           automatically generate signal messages for pidstatus.c.
3423           Added files sbr/signals.c, h/signals.h.  Code now uses
3424           sigprocmask to block signals (if available).  Code now uses
3425           signal blocking on non-BSD machines.
3426
3427 Wed Dec 18 01:55:17 1996  Richard Coleman  <coleman@math.gatech.edu>
3428
3429         * Add configure check for ATTVIBUG.  From Soren's mh autoconf work.
3430
3431         * Released nmh-0.01.
3432
3433         * Added configure code to check for type of signals functions
3434           you have (POSIX or BSD style signals).  Added function
3435           SIGPROCMASK to simulate sigprocmask on machines that don't
3436           have POSIX signals.
3437
3438 Fri Dec 13 19:40:48 1996  Richard Coleman  <coleman@math.gatech.edu>
3439
3440         * Added -version switch to all commands.  Also added to
3441           their man pages.
3442
3443 Mon Dec  9 16:36:54 1996  Richard Coleman  <coleman@math.gatech.edu>
3444
3445         * Renamed uip/trmsbr.c to termsbr.c and changed it to use
3446           POSIX termios.h style functions if present.
3447
3448 Tue Dec  3 16:18:39 1996  Richard Coleman  <coleman@math.gatech.edu>
3449
3450         * Changed support/general/bootmhn.sh to output new mhn_defaults
3451           file to standard output by default (makes it easier for testing).
3452           Changed name of script to create_mhn_defaults.  Changed bootmhn.findit
3453           script to find_program.
3454
3455 Sun Dec  1 10:00:00 1996  Richard Coleman  <coleman@math.gatech.edu>
3456
3457         * Added patch to uip/folder.c from exmh distribution to
3458           speed up -recurse option.
3459
3460         * Added flist command from exmh distribution.  It doesn't work
3461           yet, but it compiles :-)
3462
3463         * Changed default location for install to
3464           /usr/local/nmh/{bin,etc,lib,man}.  Split files so that format
3465           and configuration files go in nmh/etc, and support binaries go
3466           in nmh/lib.  Of course, all this can now be changed in the top
3467           level Makefile. 
3468
3469         * Started with mh-6.8.3 as based and converted to autoconf.
3470           Rewrote all the Makefiles.  Currently only works with sendmail/smtp.
3471           Pop support and plenty of other things, are now broken.