David Levine [Wed, 21 May 2008 16:56:47 +0000 (16:56 +0000)]
* configure.in, INSTALL: if --enable-masquerade is not
specified to configure, enable all supported masquerade forms.
This allows users to masquerade with the default
configuration. That seems to be more worthwhile now than
trying to prevent users from using it, especially with
single-user installations or those where a user can edit
etc/mts.conf. (Ported from trunk.)
David Levine [Wed, 21 May 2008 16:35:42 +0000 (16:35 +0000)]
* configure.in, INSTALL: if --enable-masquerade is not
specified to configure, enable all supported masquerade forms.
This allows users to masquerade with the default
configuration. That seems to be more worthwhile now than
trying to prevent users from using it, especially with
single-user installations or those where a user can edit
etc/mts.conf. (Ported from trunk.)
Peter Maydell [Sun, 4 May 2008 21:00:18 +0000 (21:00 +0000)]
Port from trunk: bug #23167: sbr/ruserpass.c (ruserpass): make bad
permissions on .netrc be an instantly fatal error. Previously we returned an
error value; however, no caller was checking it. So now ruserpass() has a
void return type.
Peter Maydell [Sun, 4 May 2008 16:22:51 +0000 (16:22 +0000)]
* Fixes ported from trunk:
* bug #23163: various minor fixes for the benefit of older Unixes
(specifically SunOS 4): reintroduce strerror() substitute implementation;
provide memmove() substitute implementation
* bug #23163: fix accidentally broken 'build outside source directory'
* bug #23162: sbr/dtime.c: fix stray HAVE_TM_GMTOFF that wasn't updated
to the new macro name.
Peter Maydell [Sat, 5 Apr 2008 19:04:41 +0000 (19:04 +0000)]
* bug #18655: fix use of admonish() for a fatal error (should
be adios(); only actual effect would be wrong exit code).
Thanks to Craig Leres for spotting this.
Joel Reicher [Sun, 4 Nov 2007 11:54:32 +0000 (11:54 +0000)]
Return type of (*done)() changed to void. default_done() replaced by
exit(). All dead code "return 1" lines removed from *_done()s and replaced
by explicit "return 1" following done() calls in main()s (they should
never be reached). This should make cleaning up program termination
structures easier.
Joel Reicher [Sun, 4 Nov 2007 04:47:17 +0000 (04:47 +0000)]
Change link-time overriding of done() to run-time reassigning of equivalent
(*done)(). This should make changing the return type of done and the
rationalisation of exit code easier.
Bill Wohler [Mon, 24 Sep 2007 07:02:03 +0000 (07:02 +0000)]
The MH web site is now http://rand-mh.sourceforge.net/ and the MH
book is now at http://rand-mh.sourceforge.net/book/.
Changed Questions
1.02 ...current version? mailutils 1.2
1.03 Where can I get MH? Debian 4.0 nmh 1.1-RC4, update links, mu 1.2
1.04 ...references for MH? Refer to SourceForge
1.06 How...print a MH manual? Refer to SourceForge
2.17 How...build MH on a Mac? Use fink
4.05 ...tools to archive MH? Mention swish++, mairix, and namazu
Peter Maydell [Sun, 29 Apr 2007 19:36:14 +0000 (19:36 +0000)]
For gcc, make the default CFLAGS include -Wno-pointer-sign if the compiler
recognises it. gcc 4 now by default produces a large volume of these
warnings, which I believe are probably spurious and definitely a lot of
work to go through and fix. So we suppress them for now so that the other
warnings are more easily visible.
Joel Reicher [Fri, 13 Apr 2007 11:53:08 +0000 (11:53 +0000)]
Change all chars being passed to the ctype macros (isalph(), etc.) to
be unsigned chars, following through to change any other types as
necessary (e.g. comparison between two pointers). Not all chars have
been changed to unsigned chars; just those that were in danger of being
sign extended when passed to the int-taking ctype macros.
Joel Reicher [Tue, 10 Apr 2007 03:32:48 +0000 (03:32 +0000)]
Application of patch #5218: patch for bug #9742. Fixes a typo in the
size arg of snprintf(). mhlist output which used to have incorrect lines
such as
1.2 multipart/mixed 772
1.21 text/plain 9
1.22 multipart/mixed 162
now have the correct
1.2 multipart/mixed 772
1.2.1 text/plain 9
1.2.2 multipart/mixed 162
David Levine [Tue, 24 Oct 2006 14:31:40 +0000 (14:31 +0000)]
* uip/sendsbr.c: with attachformat values of 1 or 2, add
name= portion to Content-Type header. This makes them
consistent with attachformat value 0. And it allows mhstore
to use that (file)name when extracting attachments.
Joel Reicher [Sun, 4 Jun 2006 08:37:24 +0000 (08:37 +0000)]
Fixed bug introduced when changing from check_folder() to new
create_folder() function. The folder name needed to be expanded to an
absolute path first. Similar things may have happened with other
conversions.
Joel Reicher [Thu, 27 Apr 2006 12:00:28 +0000 (12:00 +0000)]
Created pluspath function to check for '+' prefix and change flag for
path() appropriately. This eliminates some duplicate prefix processing,
but not all. The path functions need to be restructed; this is the first
step.
Joel Reicher [Mon, 24 Apr 2006 07:10:03 +0000 (07:10 +0000)]
ssequal() does not check for a substring, but for a prefix, so added a
comment to this effect. If this is sufficient, the function body should
remain unchanged but the name and comments should be modified. If not,
then the function needs to be corrected.
Joel Reicher [Fri, 14 Apr 2006 14:10:15 +0000 (14:10 +0000)]
Created function open_form() to open form file or fallback to default
components file, with error handling. Replaced duplicated code with call
to this function.
Joel Reicher [Tue, 11 Apr 2006 14:09:11 +0000 (14:09 +0000)]
Created app_msgarg() (append message arg) and a simple resizable array
struct to go with it that do almost exactly what the code they've replaced
was doing.
Replaced this (duplicated) code in many files with a call to app_msgarg().
Paul Fox [Fri, 31 Mar 2006 15:14:49 +0000 (15:14 +0000)]
this commit:
- adds range support to character classes
- fixes out-of-bounds references to the case-folding array
when doing case comparisons for 8-bit message text
- makes character classes as case tolerant as the rest
of the pick regexp machine. (where lowercase chars in
patterns should match uppercase in the text.)
- fixes an uninitialized pointer warning, which might actually have
been a real bug
David Levine [Thu, 30 Mar 2006 22:19:50 +0000 (22:19 +0000)]
* uip/sendsbr.c: with attachformat values of 1 or 2, only
generate Content-Disposition headers for MIME attachments, not
for the message contents themselves. Microsoft Outlook Build
10.0.6626, at least, doesn't show the message contents if they
have Content-Disposition.
Bill Wohler [Fri, 10 Mar 2006 06:58:28 +0000 (06:58 +0000)]
Since faqs.org appears to be moribund, I'm now using my site as the
official location of the MH FAQ. I added some missing quotes in
various places, so now Emacs highlighting works better.
New Questions
5.26 How do I fix a bogus In-Reply-To or missing References field?
Changed Questions
1.02 current version? nmh 1.2
1.04 references for MH? New FAQ official site. MH-E manual URL
5.15 make sense of replcomps? Use 1.1 version
David Levine [Tue, 21 Feb 2006 03:58:31 +0000 (03:58 +0000)]
* h/mh.h, h/prototypes.h, uip/mhbuildsbr.c, uip/send.c,
uip/sendsbr.c, uip/viamail.c, uip/whatnowsbr.c, man/send.man:
added -attachformat switch to send, to support alternate MIME
header contents when using -attach. See send man page for
description.
David Levine [Tue, 31 Jan 2006 02:50:57 +0000 (02:50 +0000)]
Added -nocontentid (and -contentid, for symmetry) switch to mhbuild. This allows users to disable generation of the Content-ID: header in MIME messages, in order to placate broken version(s) of Outlook.
Josh Bressers [Fri, 6 Jan 2006 21:51:43 +0000 (21:51 +0000)]
* patch #3968: Move the add() function from its own file (add.c) and
into utils.c. There was also a duplicate add() function in mf.c which
has been removed.
Peter Maydell [Sat, 24 Dec 2005 17:17:38 +0000 (17:17 +0000)]
Rework detection and handling of ndbm: we now check for a working
(library,header) combination, and configure defines variables for each
which the makefile and C file just use, rather than a bunch of HAVE_foo
switches. As a bonus, we no longer unnecessarily link every binary with
the ndbm library even though only slocal uses it. Also you can now tell
configure where to get the header/library so even if we guess wrong you
can overrule us.