17 years agoDon't fclose() the file twice in error-exit paths from get_content()
Peter Maydell [Sun, 6 Nov 2005 00:32:20 +0000 (00:32 +0000)]
Don't fclose() the file twice in error-exit paths from get_content()
(was causing crashes on multipart mails with invalid Content-Type headers)

17 years agoRemove space between -o and output filename so it works on older versions
Peter Maydell [Sun, 6 Nov 2005 00:28:12 +0000 (00:28 +0000)]
Remove space between -o and output filename so it works on older versions
of flex as well as newer ones.

17 years agoAdd an AC_PREREQ so we don't just fail with an obscure error message if
Peter Maydell [Sun, 6 Nov 2005 00:23:48 +0000 (00:23 +0000)]
Add an AC_PREREQ so we don't just fail with an obscure error message if
using old 2.13 era autoconf (or an autoconf-version-guessing wrapper).

17 years agoUpdate the instructions for subscribing to the nmh-workers list
Josh Bressers [Fri, 4 Nov 2005 22:07:48 +0000 (22:07 +0000)]
Update the instructions for subscribing to the nmh-workers list

17 years agofail when kpop connection attempted without KPOP support compiled in
Oliver Kiddle [Wed, 2 Nov 2005 17:43:21 +0000 (17:43 +0000)]
fail when kpop connection attempted without KPOP support compiled in

17 years agofix for newer version of flex and remove autogenerated file from cvs
Oliver Kiddle [Wed, 2 Nov 2005 17:29:50 +0000 (17:29 +0000)]
fix for newer version of flex and remove autogenerated file from cvs

17 years agospeed up flist by skipping stat on files with numbers as names
Oliver Kiddle [Wed, 2 Nov 2005 17:22:27 +0000 (17:22 +0000)]
speed up flist by skipping stat on files with numbers as names

17 years agoinclude new files in distribution
Oliver Kiddle [Wed, 2 Nov 2005 17:16:39 +0000 (17:16 +0000)]
include new files in distribution

17 years ago A couple of questions from nmh's original FAQ were folded into
Bill Wohler [Tue, 11 Oct 2005 01:52:45 +0000 (01:52 +0000)]
  A couple of questions from nmh's original FAQ were folded into
  the MH FAQ which is now a part of nmh.

    New Questions

1.09 What is the copyright status of nmh?
3.23 Why do folder and flist overlook some of my sub-folders?

  Changed Questions

1.02 current version? nmh history update, nmh 1.1-RC4, mailutils 0.6

17 years agoHarald Geyer: back out fork/vfork workaround and handle the issue directly
Oliver Kiddle [Wed, 5 Oct 2005 10:05:24 +0000 (10:05 +0000)]
Harald Geyer: back out fork/vfork workaround and handle the issue directly

18 years agouse fork instead of vfork on Linux
Oliver Kiddle [Wed, 18 May 2005 13:45:03 +0000 (13:45 +0000)]
use fork instead of vfork on Linux

18 years agotest/report error writing to stdout
Oliver Kiddle [Wed, 18 May 2005 13:27:44 +0000 (13:27 +0000)]
test/report error writing to stdout

18 years agocorrect SASL include file locations
Oliver Kiddle [Wed, 18 May 2005 13:24:14 +0000 (13:24 +0000)]
correct SASL include file locations

18 years agoadd bash completion definitions from Debian
Oliver Kiddle [Wed, 18 May 2005 13:16:21 +0000 (13:16 +0000)]
add bash completion definitions from Debian

18 years agofix a bug affecting AFS where nmh was setting the READONLY flag for a
Oliver Kiddle [Wed, 18 May 2005 12:57:40 +0000 (12:57 +0000)]
fix a bug affecting AFS where nmh was setting the READONLY flag for a
folder even when you do have write access to the folder

18 years agoCarl Mummert: add unquote() function for removing quotes from RFC-2822 headers
Oliver Kiddle [Wed, 18 May 2005 12:50:45 +0000 (12:50 +0000)]
Carl Mummert: add unquote() function for removing quotes from RFC-2822 headers

18 years agofill in a few of the missing ChangeLog entries
Oliver Kiddle [Tue, 17 May 2005 16:30:15 +0000 (16:30 +0000)]
fill in a few of the missing ChangeLog entries

18 years agouse iconv to convert RFC-2047 encoded headers to the character set used
Oliver Kiddle [Wed, 23 Feb 2005 16:20:47 +0000 (16:20 +0000)]
use iconv to convert RFC-2047 encoded headers to the character set used
by the current locale

18 years agofix Debian bug #202667: crash when a message's filename overflows an int
Oliver Kiddle [Wed, 23 Feb 2005 14:07:52 +0000 (14:07 +0000)]
fix Debian bug #202667: crash when a message's filename overflows an int
when converted

18 years agoUpdated config.guess and config.sub to the most recent versions
Oliver Kiddle [Wed, 23 Feb 2005 11:55:25 +0000 (11:55 +0000)]
Updated config.guess and config.sub to the most recent versions
(from automake 1.9.5)

18 years agofix bug where inc crashed on failing to reopen the terminal
Oliver Kiddle [Mon, 21 Feb 2005 16:31:58 +0000 (16:31 +0000)]
fix bug where inc crashed on failing to reopen the terminal

18 years agoacknowledge that my change was based on an older patch from Michael Richardson
Oliver Kiddle [Thu, 27 Jan 2005 16:43:03 +0000 (16:43 +0000)]
acknowledge that my change was based on an older patch from Michael Richardson

18 years agoAdded -proxy option to inc and msgchk
Oliver Kiddle [Thu, 27 Jan 2005 16:39:56 +0000 (16:39 +0000)]
Added -proxy option to inc and msgchk

18 years agoAdded -proxy option to inc and msgchk
Oliver Kiddle [Thu, 27 Jan 2005 16:34:20 +0000 (16:34 +0000)]
Added -proxy option to inc and msgchk

18 years agoOn systems where it is available, use nl_langinfo to get the character
Oliver Kiddle [Thu, 27 Jan 2005 16:26:24 +0000 (16:26 +0000)]
On systems where it is available, use nl_langinfo to get the character
set if MM_CHARSET is unset

18 years agoUS-ASCII is a subset of UTF-8 so can be handled directly when UTF-8 is
Oliver Kiddle [Fri, 21 Jan 2005 19:25:44 +0000 (19:25 +0000)]
US-ASCII is a subset of UTF-8 so can be handled directly when UTF-8 is
being used

18 years agoFix -part option to mhshow/mhlist/mhstore to find sub-parts of the specified
Oliver Kiddle [Fri, 17 Dec 2004 15:16:04 +0000 (15:16 +0000)]
Fix -part option to mhshow/mhlist/mhstore to find sub-parts of the specified

18 years agoAdded mail directory argument to folder_addmsg in order to make it possible
Jon Steinhart [Fri, 19 Nov 2004 05:06:16 +0000 (05:06 +0000)]
Added mail directory argument to folder_addmsg in order to make it possible
to provide a path to the ext_hook call that is mailpath-based.  A problem
existed when a folder was a symbolic link and the pwd call would return
the path relative to the filesystem, not to mailpath.  A new argument was
needed because there was otherwise no reasonable way to get that path.

18 years agoFixed problem where the refile hook was being called after a message was
Jon Steinhart [Tue, 16 Nov 2004 18:14:34 +0000 (18:14 +0000)]
Fixed problem where the refile hook was being called after a message was
renamed so that it wasn't around for the hook.  The hook is now called
before the message file is renamed.

18 years agoFixed typo in comment.
Jon Steinhart [Tue, 16 Nov 2004 18:08:07 +0000 (18:08 +0000)]
Fixed typo in comment.
Fixed problem with refile hook when refiling across filesystems.

18 years agoRemoved unnecessary code.
Jon Steinhart [Tue, 16 Nov 2004 17:37:41 +0000 (17:37 +0000)]
Removed unnecessary code.

18 years agoFixed wrong directory for hook when refiling with -src option.
Jon Steinhart [Tue, 16 Nov 2004 17:28:33 +0000 (17:28 +0000)]
Fixed wrong directory for hook when refiling with -src option.

18 years agoFixed calling of external hooks.
Jon Steinhart [Fri, 15 Oct 2004 17:10:58 +0000 (17:10 +0000)]
Fixed calling of external hooks.

18 years agoFixed another weird bug caused by the static mailpath being overwritten.
Jon Steinhart [Tue, 12 Oct 2004 21:14:02 +0000 (21:14 +0000)]
Fixed another weird bug caused by the static mailpath being overwritten.

18 years agoFixed bug that caused anno to mangle headers.
Jon Steinhart [Tue, 12 Oct 2004 20:41:34 +0000 (20:41 +0000)]
Fixed bug that caused anno to mangle headers.

18 years agoFixed strange bug that prevented a lock from ever being obtained if getting
Jon Steinhart [Tue, 12 Oct 2004 20:40:25 +0000 (20:40 +0000)]
Fixed strange bug that prevented a lock from ever being obtained if getting
it failed the first time.  The problem was that the string of XXXXXX that
is required by mkstemp() was overwritten the first time through, and so
all subsequent times failed because mkstemp() failed.  The fix
reinitializes the tmp file string.

18 years agoFixed bug in which the static maildir was overwritted if a format string
Jon Steinhart [Tue, 12 Oct 2004 20:38:10 +0000 (20:38 +0000)]
Fixed bug in which the static maildir was overwritted if a format string
was read from the profile.

18 years agoFixed bug that was producing an incorrect path for the external hook.
Jon Steinhart [Tue, 12 Oct 2004 20:31:14 +0000 (20:31 +0000)]
Fixed bug that was producing an incorrect path for the external hook.

19 years agodb configuration fix for Debian; yet another location for ndbm.
Glenn Burkhardt [Mon, 6 Oct 2003 20:11:39 +0000 (20:11 +0000)]
db configuration fix for Debian; yet another location for ndbm.

20 years agorestored use of PUTDF() macro; was broken in versions 1.10-1.12;
Glenn Burkhardt [Tue, 30 Sep 2003 19:55:12 +0000 (19:55 +0000)]
restored use of PUTDF() macro; was broken in versions 1.10-1.12;
replacement implementation filled on right instead of on left.

20 years ago[bug #4302] errno is not always an extern int
Glenn Burkhardt [Tue, 30 Sep 2003 16:57:26 +0000 (16:57 +0000)]
[bug #4302] errno is not always an extern int
The errno declaration is best left to errno.h; several systems use
#define errno (*(___errno()))
or similar

20 years agocorrected termination condition for fill character introduced in last version
Glenn Burkhardt [Tue, 30 Sep 2003 16:22:54 +0000 (16:22 +0000)]
corrected termination condition for fill character introduced in last version

20 years ago[bug #4296] PUTD() macro can't hack 10 digit values
Glenn Burkhardt [Tue, 30 Sep 2003 16:19:12 +0000 (16:19 +0000)]
[bug #4296] PUTD() macro can't hack 10 digit values
Once the number exceeded 1000000000, the conversion would fail.  An execution of
 dp -format "%(clock{text})" "Tue, 01 Jul 2003 21:38:05 +0700" would erroneously print
749660476, instead of 1057070285.

The macros PUTD() and PUTDF() have been replaced by snprintf() calls;  These macros
should never have been written in the first place, when system functions exist to do the

(prev version 1.10 was erroneously comitted).

20 years ago[bug #4296] PUTD() macro can't hack 10 digit values
Glenn Burkhardt [Tue, 30 Sep 2003 16:07:49 +0000 (16:07 +0000)]
[bug #4296] PUTD() macro can't hack 10 digit values
Once the number exceeded 1000000000, the conversion would fail.  An execution of
 dp -format "%(clock{text})" "Tue, 01 Jul 2003 21:38:05 +0700" would erroneously print
749660476, instead of 1057070285.

The macros PUTD() and PUTDF() have been replaced by snprintf() calls;  These macros
should never have been written in the first place, when system functions exist to do the

20 years ago[bug #4297] The strlen mh-format function can crash if 'str' is null.
Glenn Burkhardt [Tue, 30 Sep 2003 14:36:04 +0000 (14:36 +0000)]
[bug #4297] The strlen mh-format function can crash if 'str' is null.

20 years agonote recent changes
Glenn Burkhardt [Tue, 30 Sep 2003 14:30:36 +0000 (14:30 +0000)]
note recent changes

20 years agofix handling of "-list" and "-seq" options, so behavior is orthoganal.
Glenn Burkhardt [Tue, 30 Sep 2003 14:19:20 +0000 (14:19 +0000)]
fix handling of "-list" and "-seq" options, so behavior is orthoganal.
Previously, "pick -list -seq seqname" meant "pick -nolist -seq seqname".
Now "pick -list -seq seqname" and "pick -seq seqname -list" do the same thing.
Thanks to Robert Elz.

20 years agoupdate 'mp->lowmsg' from 0 to 1 during regular 'inc' from mail spool;
Glenn Burkhardt [Sun, 28 Sep 2003 14:27:34 +0000 (14:27 +0000)]
update 'mp->lowmsg' from 0 to 1 during regular 'inc' from mail spool;
avoids failure of 'folder_realloc()' for case of no messages in
folder, and more than 100 messages to incorporate.  Initially,
'folder_read()' will initialize 'mp->lowmsg' to 0, and 'mp->lowoff'
to 1.  So the call would be folder_realloc(mp, 1, 200), and the
comparison 'if (mp->nummsg > 0 && lo > mp->lowmsg)' will fail.

20 years agoRemoved space between command name and man section number (e.g.,
Glenn Burkhardt [Mon, 22 Sep 2003 16:03:22 +0000 (16:03 +0000)]
Removed space between command name and man section number (e.g.,
"show (1)" --> "show(1)", so xemacs can recognize them as links to other
man pages.

20 years agomake 'spost' handling of "masquerade:" line of mts.conf containing
Glenn Burkhardt [Mon, 22 Sep 2003 01:04:04 +0000 (01:04 +0000)]
make 'spost' handling of "masquerade:" line of mts.conf containing
'draft_from' same as for 'post'.  Debian bug report 144098, filed by
Terran Melconian.

20 years agostatus of action wasn't saved for use by 'N' result, so when 'N' was
Glenn Burkhardt [Mon, 22 Sep 2003 00:43:09 +0000 (00:43 +0000)]
status of action wasn't saved for use by 'N' result, so when 'N' was
used slocal could perform the action even if the previous
action failed.  Debian bug report #149745, filed by Daniel Müller.

20 years agoIncrease timeouts to comply with RFC 1123; Debian bug report #152728 by Ian Jackson
Glenn Burkhardt [Sun, 21 Sep 2003 18:08:35 +0000 (18:08 +0000)]
Increase timeouts to comply with RFC 1123; Debian bug report #152728 by Ian Jackson

20 years agoadded cross references
Glenn Burkhardt [Sun, 21 Sep 2003 17:34:31 +0000 (17:34 +0000)]
added cross references

20 years agofixed typo: example for scan.default didn't include proper terminating
Glenn Burkhardt [Sun, 21 Sep 2003 17:09:31 +0000 (17:09 +0000)]
fixed typo:  example for scan.default didn't include proper terminating
%> for "%<{date} %|*%>"; reported as Debian bug #143427 by Peter Maydell

20 years agoApply bug fix reported to Debian (#136976) by Peter Maydell; allows
Glenn Burkhardt [Sun, 21 Sep 2003 15:43:00 +0000 (15:43 +0000)]
Apply bug fix reported to Debian (#136976) by Peter Maydell; allows
messages with "Content-Transfer-Encoding: binary" to be
displayed, per RFC 2045 section 6.2 paragraph 4

20 years agocorrected typo for nroff directive
Glenn Burkhardt [Sun, 21 Sep 2003 02:39:58 +0000 (02:39 +0000)]
corrected typo for nroff directive

20 years agoadd command to remove $(libdir)/install-mh prior to creating the link
Glenn Burkhardt [Tue, 16 Sep 2003 14:27:55 +0000 (14:27 +0000)]
add command to remove $(libdir)/install-mh prior to creating the link

20 years agoThe first ``inc'' into an empty folder would not update the unseen
Jeffrey C Honig [Sun, 14 Sep 2003 13:25:55 +0000 (13:25 +0000)]
The first ``inc'' into an empty folder would not update the unseen
sequence.  This is because seq_list() will return NULL if mp->nummsg
is zero.  Insure that mp->nummsg is incremented.

20 years agoMan page fix from Igor Sobrado
Ken Hornstein [Mon, 8 Sep 2003 18:41:10 +0000 (18:41 +0000)]
Man page fix from Igor Sobrado

20 years agoAdded documentation of "Dcc", per recent discussion on mailing list
Glenn Burkhardt [Sat, 6 Sep 2003 17:27:55 +0000 (17:27 +0000)]
Added documentation of "Dcc", per recent discussion on mailing list
(main contributors Jerry Peek and Robert Elz)

20 years agoMerge in changes from the 1.1 branch.
Ken Hornstein [Fri, 5 Sep 2003 21:07:49 +0000 (21:07 +0000)]
Merge in changes from the 1.1 branch.

20 years agoFix from branch.
Ken Hornstein [Fri, 5 Sep 2003 19:10:21 +0000 (19:10 +0000)]
Fix from branch.

20 years agoQuiet lock warning.
Ken Hornstein [Fri, 5 Sep 2003 18:37:47 +0000 (18:37 +0000)]
Quiet lock warning.

20 years agoMerge in locking fixes into the main line.
Ken Hornstein [Fri, 5 Sep 2003 18:36:36 +0000 (18:36 +0000)]
Merge in locking fixes into the main line.

20 years agoWhen compiling format strings, nmh attempts to avoid multiple parsing
Jeffrey C Honig [Mon, 11 Aug 2003 01:20:52 +0000 (01:20 +0000)]
When compiling format strings, nmh attempts to avoid multiple parsing
of address and date fields by only inserting calls to the parse
functions (FT_PARSEADDR and FT_PARSEDATE) for a given component once.
The problem with this method is that the initial invocation may
actually be on a code path that is conditionally executed.  This can
result cached copies of data from the fields in previous messages to
be used.

My solution is to move this optimization from compile time to run time.
Address and Date parsing calls (FT_PARSEADDR and FT_PARSEDATE) will
always be included.  Run time flags are used to prevent these functions
from being run more than once per component per message.

The c_flags field has being converted from a boolean to a bit-field to
facilitate maintenance of the new CT_PARSED value.  The result value
that used to be in this field is now the bit CF_TRUE and the
overloaded use of this field by scan() is now the CT_DATEFAB bit.

Some unneeded flags (CT_ADDRPARSE, CT_MYMBOX) have also been removed.

20 years agomore detail for bugs fixed, so reader doesn't need to go to Bugzilla
Glenn Burkhardt [Fri, 4 Jul 2003 16:15:02 +0000 (16:15 +0000)]
more detail for bugs fixed, so reader doesn't need to go to Bugzilla

20 years agoupdate
Glenn Burkhardt [Fri, 4 Jul 2003 15:55:55 +0000 (15:55 +0000)]

20 years agorestored use of %manext5% for man section, which was lost
Glenn Burkhardt [Wed, 2 Jul 2003 02:24:19 +0000 (02:24 +0000)]
restored use of %manext5% for man section, which was lost
in version 1.4

20 years agoUpdated description of default template to reflect current
Glenn Burkhardt [Wed, 2 Jul 2003 02:03:19 +0000 (02:03 +0000)]
Updated description of default template to reflect current
change to In-Reply-To, and Fcc:

20 years agoDefault templates for 'comp', 'forw', 'dist', 'repl' now include
Glenn Burkhardt [Wed, 2 Jul 2003 02:01:50 +0000 (02:01 +0000)]
Default templates for 'comp', 'forw', 'dist', 'repl' now include
Fcc: +outbox

20 years agouse symbols for date and version so values are
Glenn Burkhardt [Mon, 30 Jun 2003 19:43:26 +0000 (19:43 +0000)]
use symbols for date and version so values are
automatically updated during build.

20 years agobump date so everything gets a new timestamp for 1.1
Glenn Burkhardt [Mon, 30 Jun 2003 19:40:05 +0000 (19:40 +0000)]
bump date so everything gets a new timestamp for 1.1

20 years agofix bug #1393, "sortm core dumps", using patch provided by
Glenn Burkhardt [Mon, 30 Jun 2003 18:58:07 +0000 (18:58 +0000)]
fix bug #1393, "sortm core dumps", using patch provided by
Robert Elz,  The core dump occurred
when "Subject:" was immediately followed by an
alphanumeric, and "-textfield subject" were used
as arguments.

20 years agoRe-write for clarity, using major contributions from
Glenn Burkhardt [Mon, 30 Jun 2003 16:48:50 +0000 (16:48 +0000)]
Re-write for clarity, using major contributions from
Bart Massey, and Jerry Peek.

20 years agomade RFC 2822 compliant, using an "In-reply-to:" format
Glenn Burkhardt [Mon, 30 Jun 2003 16:40:09 +0000 (16:40 +0000)]
made RFC 2822 compliant, using an "In-reply-to:" format
supplied by Jerry Peek.

20 years agoprevent double free of 'ce->cd_file' or later use of invalid data
Glenn Burkhardt [Fri, 27 Jun 2003 17:02:13 +0000 (17:02 +0000)]
prevent double free of 'ce->cd_file' or later use of invalid data

20 years agofix for bug #578 repl leaks umask; there are several other
Glenn Burkhardt [Thu, 26 Jun 2003 01:30:36 +0000 (01:30 +0000)]
fix for bug #578 repl leaks umask; there are several other
places in the code where the umask value is not restored,
so there might be other similar bugs

20 years agoChanged use of GNU "simply expanded variables" for MAN1, MAN5, MAN8, so
Glenn Burkhardt [Mon, 23 Jun 2003 00:44:28 +0000 (00:44 +0000)]
Changed use of GNU "simply expanded variables" for MAN1, MAN5, MAN8, so
one makefile will work with SysV make (e.g., Solaris) and GNU make

20 years agoallow gdbm/ndbm.h in addition to db1/ndbm.h; needs corresponding change in
Glenn Burkhardt [Sun, 22 Jun 2003 23:59:16 +0000 (23:59 +0000)]
allow gdbm/ndbm.h in addition to db1/ndbm.h; needs corresponding change in

20 years agoAllowed gdbm as substitute for Berkeley db1/ndbm.h libdb1 (check for
Glenn Burkhardt [Sun, 22 Jun 2003 23:58:07 +0000 (23:58 +0000)]
Allowed gdbm as substitute for Berkeley db1/ndbm.h libdb1 (check for
gdbm/ndbm.h, libgdbm now); send only stdout to /dev/null when checking for
'broken vi', this allows 'vim' on Solaris to work, since 'vim' closes stdin
and uses stderr for input when running a script.

20 years agoFix detection of non-mime messages when the charset is not enclosed
Kimmo Suominen [Thu, 2 Jan 2003 04:07:49 +0000 (04:07 +0000)]
Fix detection of non-mime messages when the charset is not enclosed
in double quotes.  (Not perfect yet, but 97% effective.)

20 years agoFixed a typo in the SRCS definition; had a .o where it should have been a .c
Jon Steinhart [Thu, 21 Nov 2002 21:22:24 +0000 (21:22 +0000)]
Fixed a typo in the SRCS definition; had a .o where it should have been a .c

20 years agoFixed a bug in the waitpid version where it would return incorrectly if a
Jon Steinhart [Wed, 20 Nov 2002 19:57:19 +0000 (19:57 +0000)]
Fixed a bug in the waitpid version where it would return incorrectly if a
child process was interrupted.

20 years agoRemoved the reference to the library directory since this now goes in bin.
Jon Steinhart [Tue, 19 Nov 2002 20:39:21 +0000 (20:39 +0000)]
Removed the reference to the library directory since this now goes in bin.

20 years agoChanged to move install-mh to the bin directory instead of the lib
Jon Steinhart [Tue, 19 Nov 2002 20:37:50 +0000 (20:37 +0000)]
Changed to move install-mh to the bin directory instead of the lib
directory.  A link is made from the lib to the bin just in case.

20 years agoThe file README-ATTACHMENTS was removed - it has been moved to the docs
Jon Steinhart [Mon, 18 Nov 2002 18:25:00 +0000 (18:25 +0000)]
The file README-ATTACHMENTS was removed - it has been moved to the docs
subdirectory.  I thought that this had already been done but I guess not.
It's unrelated to the rest of these changes.

The remainder of these changes affect the way that nmh is installed.  Nmh
has historically prompted the user for installation when any nmh command
is invoked if it doesn't think that it's installed.  This is a problem for
programs that want to, for example, interact with nmh programs via pipes.

These changes alter this behavior.  Now, when an nmh program thinks that
nmh isn't installed, it tells the user to run install-mh to install it.
A -check option has been added to install-mh that allows the existence of
an installation to be silently checked and indicated via the exit status.

The bulk of this change is in sbr/read_context.c.  In the process of making
these changes, I noticed a fair amount of useless code that I removed.  In

1. The program started with a test for whether or not defpath had already
been set.  This could only happen if context_read() was called more
than once, which it isn't.  This check also existed and was removed
from the following places:

2. A similar test for mypath was removed.  No need to test it since it
doesn't happen.  I'm just not a believer that

a = 1;

if (a != 1)

is a good way to write code!

3. I removed the code makes a copy of the $HOME environment variable as
returned by getenv().  It's never changed, so it doesn't need copying.

4. I removed code that copied the pw_dir member of the passwd structure
returned by getpwuid() if $HOME isn't set.  Yes, the returned structure
is static, but since the function is never called again the returned
values stay valid and don't need copying.

5. I removed the test for a NULL pw_dir member in the passwd structure
returned by getpwuid() since that never happens.

6. I removed code that removed a trailing / from mypath if mypath is more
than one character long.  Unnecessary as // is interpreted as / anyway.
mypath never shows up in an error message, so nobody will ever see it.
Besides, this code didn't handle the case of multiple trailing slashes.

7. I removed code that replaced the MH environment variable contents with
an absolute path if it was a relative one.  I'm a bit nervous about this
one, only testing will tell.  Any nmh program that's invoked will use
the same context_read() code to convert a relative path to an absolute
one anyway.  And there's no guarantee (or discussion) of this feature
in any of the documentation.

8. Althout context_read() tested the MH environment variable, install-mh
didn't.  This means that the behavior was not consistent between
install-mh and all other nmh programs.  I changed install-mh to be
consistent with context_read().

9. install-mh has been installed in the lib directory, not bin.  So a
user would be unlikely to find it when prompted to run it.  The
installation has been changed to add a link from bin to lib.

20 years agoChanged scan to always pass the folder argument. This is in line
Anders Eriksson [Mon, 21 Oct 2002 19:32:26 +0000 (19:32 +0000)]
Changed scan to always pass the folder argument. This is in line
with the man page.

21 years agoNew routine that provides interface to external programs.
Jon Steinhart [Mon, 9 Sep 2002 14:30:16 +0000 (14:30 +0000)]
New routine that provides interface to external programs.

21 years agoAdded external program hooks.
Jon Steinhart [Fri, 23 Aug 2002 20:37:01 +0000 (20:37 +0000)]
Added external program hooks.

21 years agoMoved this file here from the root directory.
Jon Steinhart [Thu, 22 Aug 2002 22:06:18 +0000 (22:06 +0000)]
Moved this file here from the root directory.

21 years agoAdded an improved user interface for sending messages with attachments.
Jon Steinhart [Mon, 19 Aug 2002 20:50:41 +0000 (20:50 +0000)]
Added an improved user interface for sending messages with attachments.

21 years agoRemove this file on the head as well.
Ken Hornstein [Mon, 8 Jul 2002 19:29:24 +0000 (19:29 +0000)]
Remove this file on the head as well.

21 years agoBring these changes over from the branch.
Ken Hornstein [Wed, 3 Jul 2002 14:49:24 +0000 (14:49 +0000)]
Bring these changes over from the branch.

21 years agoRemove these undefines (why were they in there?)
Ken Hornstein [Wed, 3 Jul 2002 14:08:11 +0000 (14:08 +0000)]
Remove these undefines (why were they in there?)

21 years agoUpdate for new version.
Ken Hornstein [Tue, 2 Jul 2002 22:10:55 +0000 (22:10 +0000)]
Update for new version.

21 years agoAdd/update copyright notice in all source code files.
Ken Hornstein [Tue, 2 Jul 2002 22:09:12 +0000 (22:09 +0000)]
Add/update copyright notice in all source code files.

21 years agoRemove autoconf-generated files (and note such files in .cvsignore)
Ken Hornstein [Tue, 2 Jul 2002 21:46:37 +0000 (21:46 +0000)]
Remove autoconf-generated files (and note such files in .cvsignore)

22 years agoKen Hornstein's Cyrus SASL checks were doing
Dan Harkless [Sat, 17 Mar 2001 11:28:27 +0000 (11:28 +0000)]
Ken Hornstein's Cyrus SASL checks were doing
`x"$with_cyrus_sasl" != "no"' instead of `... != x"no"'.

22 years agoFound some historical information about MH in RFC 808. Supplemented it with
Dan Harkless [Wed, 7 Mar 2001 05:26:50 +0000 (05:26 +0000)]
Found some historical information about MH in RFC 808.  Supplemented it with
info from Jerry Peek's MH book and added it to docs/README.about.

22 years agodtimp timezone fixes
Shantonu Sen [Tue, 6 Feb 2001 20:47:54 +0000 (20:47 +0000)]
dtimp timezone fixes