]> diplodocus.org Git - nmh/log
nmh
11 years agoAdded checks of return value of fwrite() calls where missing.
David Levine [Mon, 15 Sep 2014 01:24:24 +0000 (20:24 -0500)]
Added checks of return value of fwrite() calls where missing.

11 years agoFixed formatting of rtrim/nortrim in mhl man page.
David Levine [Mon, 15 Sep 2014 00:31:43 +0000 (19:31 -0500)]
Fixed formatting of rtrim/nortrim in mhl man page.

11 years agoAn "rtrim" flag has been added to mhl to remove any trailing
David Levine [Mon, 15 Sep 2014 00:14:10 +0000 (19:14 -0500)]
An "rtrim" flag has been added to mhl to remove any trailing
whitespace from filtered text lines.  A corresponding "nortrim" flag
has also been added.

11 years agoIf a component has trailing whitespace, e.g., body:component="> ",
David Levine [Mon, 15 Sep 2014 00:04:21 +0000 (19:04 -0500)]
If a component has trailing whitespace, e.g., body:component="> ",
mhl now trims that whitespace off when filtering blank text lines.

11 years agoFixed all anomalies detected by clang static analyzer (with
David Levine [Sat, 13 Sep 2014 03:12:33 +0000 (22:12 -0500)]
Fixed all anomalies detected by clang static analyzer (with
default checkers on Linux).  One was notable:  there was a break
missing from a switch case in fmt_scan.c, which caused the result
of the sday function escape to be garbage.

11 years agoFix typo in man page
Ken Hornstein [Fri, 12 Sep 2014 19:06:52 +0000 (15:06 -0400)]
Fix typo in man page

11 years agoOn some platforms, -D_FORTIFY_SOURCE=2 warns about ignoring the
David Levine [Sun, 7 Sep 2014 14:56:21 +0000 (09:56 -0500)]
On some platforms, -D_FORTIFY_SOURCE=2 warns about ignoring the
return value from mbtowc() even when it is called to reset the
shift state.  So wrap that in an if statement with a null body.

11 years agoAdded -D_FORTIFY_SOURCE=2 now that the build is clean with it.
David Levine [Sun, 7 Sep 2014 14:18:20 +0000 (09:18 -0500)]
Added -D_FORTIFY_SOURCE=2 now that the build is clean with it.
Removed -Wno-unused-result because it shold no longer be necessary.
Adjusting all settings of CPPFLAGS to have consistent form.

11 years agoAdded a couple of new directories and a note about valgrind
David Levine [Sun, 7 Sep 2014 01:26:42 +0000 (20:26 -0500)]
Added a couple of new directories and a note about valgrind
warnings from debuginfo to README.developers.

11 years agoCheck return values of system calls in uip/ and test/ .c files, found
David Levine [Sat, 6 Sep 2014 13:00:52 +0000 (08:00 -0500)]
Check return values of system calls in uip/ and test/ .c files, found
with gcc's -D_FORTIFY_SOURCE=2.

11 years agoQuote "$SEARCHPATH" in mhn.defaults.sh to allow spaces, etc., in
David Levine [Sat, 6 Sep 2014 02:18:28 +0000 (21:18 -0500)]
Quote "$SEARCHPATH" in mhn.defaults.sh to allow spaces, etc., in
PATH components.

11 years agoDoubled size of buffers used by m_getfld(), scan, and fmttest to
David Levine [Tue, 2 Sep 2014 02:09:04 +0000 (21:09 -0500)]
Doubled size of buffers used by m_getfld(), scan, and fmttest to
8192, on any platform, so that -width 0 and -outsize max are
likely to include at least some part of the body of each message.

11 years agoFixed typo in mh-profile.man.
David Levine [Tue, 2 Sep 2014 01:27:33 +0000 (20:27 -0500)]
Fixed typo in mh-profile.man.

11 years agoDon't let scan() use too large a width (BUFSIZ for now) to prevent
David Levine [Tue, 2 Sep 2014 01:14:52 +0000 (20:14 -0500)]
Don't let scan() use too large a width (BUFSIZ for now) to prevent
allocating a huge output buffer.

11 years agoA value of 0 for the width switch of scan(1), inc(1), ap(1), dp(1),
David Levine [Sun, 31 Aug 2014 20:40:57 +0000 (15:40 -0500)]
A value of 0 for the width switch of scan(1), inc(1), ap(1), dp(1),
fmttest(1), and mhl(1) now means as many characters as the format
engine can produce [Bug #15274].  That amount is limited by internal
buffers.

11 years agoFixed read of body in fmttest to limit size to that of rbuf, if
David Levine [Sun, 31 Aug 2014 20:39:47 +0000 (15:39 -0500)]
Fixed read of body in fmttest to limit size to that of rbuf, if
smaller than outwidth, to avoid overrunning it.

11 years agofmt_scan() no longer subtracts 1 from the width. This has the effect
David Levine [Fri, 29 Aug 2014 13:50:51 +0000 (08:50 -0500)]
fmt_scan() no longer subtracts 1 from the width.  This has the effect
of no longer counting the trailing newline in the output of scan(1),
inc(1), and the other programs that rely on it.

11 years agoVery very rough cut at trying to parse email addresses with Bison.
Ken Hornstein [Fri, 29 Aug 2014 02:29:21 +0000 (22:29 -0400)]
Very very rough cut at trying to parse email addresses with Bison.

11 years agoCheck return values of system calls in several sbr .c files, found
David Levine [Tue, 26 Aug 2014 03:06:11 +0000 (22:06 -0500)]
Check return values of system calls in several sbr .c files, found
with gcc's -D_FORTIFY_SOURCE=2.  Updated checks added previously to
mhfixmsg.c to be consistent.

11 years agoMoved reverse_alternative_parts() from mhfixmsg.c to mhparse.c
David Levine [Tue, 26 Aug 2014 01:49:39 +0000 (20:49 -0500)]
Moved reverse_alternative_parts() from mhfixmsg.c to mhparse.c
and added declaration to mhparse.h.

11 years agoRemoved msh relics from scansbr.c, including a global.
David Levine [Tue, 26 Aug 2014 00:50:23 +0000 (19:50 -0500)]
Removed msh relics from scansbr.c, including a global.

11 years agoAdded size_t cast of another MB_CUR_MAX to silence the compiler
David Levine [Tue, 26 Aug 2014 00:29:34 +0000 (19:29 -0500)]
Added size_t cast of another MB_CUR_MAX to silence the compiler
on FreeBSD 9.

11 years agoAdded cast of MB_CUR_MAX to size_t to silence compiler warning on
David Levine [Mon, 25 Aug 2014 02:46:34 +0000 (21:46 -0500)]
Added cast of MB_CUR_MAX to size_t to silence compiler warning on
FreeBSD.

11 years agoDynamically allocate space for the output of fmt_scan(), using
David Levine [Mon, 25 Aug 2014 02:19:10 +0000 (21:19 -0500)]
Dynamically allocate space for the output of fmt_scan(), using
charstring_t, so a fixed sized output buffer is no longer needed.
Also got rid of scanl global.

11 years agoAdded const to last argument of trace_cb signature, it'll be
David Levine [Sun, 24 Aug 2014 17:06:40 +0000 (12:06 -0500)]
Added const to last argument of trace_cb signature, it'll be
needed for use with charstring.

11 years agoAdded charstring "class".
David Levine [Sun, 24 Aug 2014 13:23:55 +0000 (08:23 -0500)]
Added charstring "class".

11 years agoRefer to RFC 2046 instead of 1521 in mhlist.man.
David Levine [Wed, 20 Aug 2014 12:53:56 +0000 (07:53 -0500)]
Refer to RFC 2046 instead of 1521 in mhlist.man.

11 years agoChanged dist_contrib_DATA to dist_contrib_SCRIPTS so that all
David Levine [Tue, 19 Aug 2014 01:47:03 +0000 (20:47 -0500)]
Changed dist_contrib_DATA to dist_contrib_SCRIPTS so that all
of the scripts will be installed with execute permissions.

11 years agoUpdated mhfixmsg(1) man page to refer to mh-mkstemp(1) instead of
David Levine [Tue, 19 Aug 2014 01:36:00 +0000 (20:36 -0500)]
Updated mhfixmsg(1) man page to refer to mh-mkstemp(1) instead of
mktemp.

11 years agoChecked return value of write() calls in mhfixmsg.c,
David Levine [Sun, 17 Aug 2014 02:01:26 +0000 (21:01 -0500)]
Checked return value of write() calls in mhfixmsg.c,
found with gcc's -D_FORTIFY_SOURCE=2.

11 years agoRemoved h/msh, hopefully the last msh relic.
David Levine [Sat, 16 Aug 2014 02:00:57 +0000 (21:00 -0500)]
Removed h/msh, hopefully the last msh relic.

11 years agoncurses package is required to run all of test suite on Linux and Cygwin.
David Levine [Sat, 9 Aug 2014 14:20:31 +0000 (09:20 -0500)]
ncurses package is required to run all of test suite on Linux and Cygwin.

11 years agoPrint information about the compiler toolchain on Darwin and FreeBSD.
Lyndon Nerenberg [Fri, 8 Aug 2014 21:32:54 +0000 (14:32 -0700)]
Print information about the compiler toolchain on Darwin and FreeBSD.

11 years agoAdd new build tool: tools/showbuildenv
Lyndon Nerenberg [Thu, 7 Aug 2014 00:48:18 +0000 (17:48 -0700)]
Add new build tool: tools/showbuildenv

This prints some basic information about the build environment.
It's intended use is to print some information about the specific
build environment for each of the builds in the buildbot cluster.
In particular, the patch level of the OS, and the versions of
3rd-party packages installed on the system, compiler versions, etc.

11 years agoRemoved second argument from m_Eom() in m_getfld.c because
David Levine [Mon, 4 Aug 2014 03:08:23 +0000 (22:08 -0500)]
Removed second argument from m_Eom() in m_getfld.c because
it was unused.

11 years agoHere's a better fix to m_Eom() in m_getfld.c than commit
David Levine [Mon, 4 Aug 2014 02:05:03 +0000 (21:05 -0500)]
Here's a better fix to m_Eom() in m_getfld.c than commit
d2520ac7054ad75d60342606bf13c821305d958c.  The comparison
of the return value of Getc() with EOF must be as an
integer, not a char.

11 years agoRemoved eom_action from m_getfld.c because it was only used by
David Levine [Mon, 4 Aug 2014 02:01:16 +0000 (21:01 -0500)]
Removed eom_action from m_getfld.c because it was only used by
m_eomsbr(), which was removed by commit
68e8c25f906e7353269502d2292c8e99aa8c6605.

11 years agoRemoved mhlsbr(). It was only used by msh, too.
David Levine [Mon, 4 Aug 2014 01:35:07 +0000 (20:35 -0500)]
Removed mhlsbr().  It was only used by msh, too.

11 years agoRemoved m_eomsbr() from m_getfld.c, and its scan_eom_action()
David Levine [Mon, 4 Aug 2014 01:10:45 +0000 (20:10 -0500)]
Removed m_eomsbr() from m_getfld.c, and its scan_eom_action()
wrapper.  It was only used by msh, which was removed by commit
e6917522a770cf2dba9997ca047977bc55fac061.

11 years agoAdded -debug switch to pick(1) and deprecated $MHPDEBUG.
David Levine [Sun, 3 Aug 2014 12:53:15 +0000 (07:53 -0500)]
Added -debug switch to pick(1) and deprecated $MHPDEBUG.

11 years agoFixed refile(1) -retainsequences when the source and destination
David Levine [Sun, 3 Aug 2014 02:37:34 +0000 (21:37 -0500)]
Fixed refile(1) -retainsequences when the source and destination
folders are the same.

11 years agoSeparated out list of programs that are required to build from a
David Levine [Sun, 27 Jul 2014 13:32:13 +0000 (08:32 -0500)]
Separated out list of programs that are required to build from a
source code snapshot from those that are required to build from a
distribution.

11 years agoFixed sed usage in flex fixup to not use -s (or -e, because
David Levine [Thu, 24 Jul 2014 18:10:23 +0000 (13:10 -0500)]
Fixed sed usage in flex fixup to not use -s (or -e, because
even that's not needed).

11 years agoRemoved "true" from end of flex fixups. I don't know why it was
David Levine [Thu, 24 Jul 2014 02:20:34 +0000 (21:20 -0500)]
Removed "true" from end of flex fixups.  I don't know why it was
there.

11 years agoApply flex fixup to dtimep.c with flex 2.5.37 as well as 2.5.36.
David Levine [Thu, 24 Jul 2014 02:10:47 +0000 (21:10 -0500)]
Apply flex fixup to dtimep.c with flex 2.5.37 as well as 2.5.36.

11 years agoWhen mhparam(1) is going to output the value for spoollocking,
David Levine [Wed, 23 Jul 2014 02:50:30 +0000 (21:50 -0500)]
When mhparam(1) is going to output the value for spoollocking,
call mts_init() first in case it was set in mts.conf.

11 years agoUpdated test-spoollocking to restore mts.conf when it's finished
David Levine [Wed, 23 Jul 2014 02:17:54 +0000 (21:17 -0500)]
Updated test-spoollocking to restore mts.conf when it's finished
(successfully) so as to not upset subsequent tests.  Also fixed
removal of existing spoollocking option each time through.

11 years agoNote in mh-folders(5) man page that spoollocking can be overridden
David Levine [Wed, 23 Jul 2014 01:46:04 +0000 (20:46 -0500)]
Note in mh-folders(5) man page that spoollocking can be overridden
in mts.conf as well as with configure.

11 years agoFix bug #42718; ali(1) still refers to removed options -normalize and
Ken Hornstein [Wed, 9 Jul 2014 16:05:49 +0000 (12:05 -0400)]
Fix bug #42718; ali(1) still refers to removed options -normalize and
-nonormalize.

11 years agoIf the user didn't specify any of the tls switches to post(8), try to
David Levine [Wed, 9 Jul 2014 00:58:12 +0000 (19:58 -0500)]
If the user didn't specify any of the tls switches to post(8), try to
help them by implying -initialtls if they're using port 465 (smtps,
until IANA revoked that registration in 1998).

11 years agoHere's an even simpler fix to enable TLS by default.
David Levine [Mon, 7 Jul 2014 03:22:38 +0000 (22:22 -0500)]
Here's an even simpler fix to enable TLS by default.

11 years agoFix to commit 03e76aecdf671ca13b5912af8206e9bdcb6c0919 to enable
David Levine [Sun, 6 Jul 2014 21:46:12 +0000 (16:46 -0500)]
Fix to commit 03e76aecdf671ca13b5912af8206e9bdcb6c0919 to enable
TLS by default.  Boolean logic is our friend.

11 years agoRevert "Default to enabling (Cyrus) SASL, if available."
Lyndon Nerenberg [Fri, 4 Jul 2014 20:24:37 +0000 (13:24 -0700)]
Revert "Default to enabling (Cyrus) SASL, if available."

This reverts commit fd23674a5829d5092c99a07110086f02f0b4a238.

11 years agoTurn back the sasl test. Everything broke as a result.
Lyndon Nerenberg [Fri, 4 Jul 2014 02:31:44 +0000 (19:31 -0700)]
Turn back the sasl test.  Everything broke as a result.
Not surprising.

Revert "Comments should say why a chance matters ..."

This reverts commit 7e6d0b76b1869b4fecc2412ac68f9739ee5916ea.

11 years agoComments should say why a chance matters ...
Lyndon Nerenberg [Fri, 4 Jul 2014 00:49:31 +0000 (17:49 -0700)]
Comments should say why a chance matters ...

11 years agoDefault to enabling (Cyrus) SASL, if available.
Lyndon Nerenberg [Thu, 3 Jul 2014 23:40:37 +0000 (16:40 -0700)]
Default to enabling (Cyrus) SASL, if available.

11 years agoFix the release notes to put things in the correct section,
Lyndon Nerenberg [Thu, 3 Jul 2014 23:33:56 +0000 (16:33 -0700)]
Fix the release notes to put things in the correct section,

11 years agoNote that post uses the submission port now.
Lyndon Nerenberg [Thu, 3 Jul 2014 23:25:13 +0000 (16:25 -0700)]
Note that post uses the submission port now.

11 years agoEnable TLS by default.
Lyndon Nerenberg [Thu, 3 Jul 2014 23:11:38 +0000 (16:11 -0700)]
Enable TLS by default.

11 years agoCheck return value of setlocale(3) and admonish on failure.
David Levine [Tue, 17 Jun 2014 02:04:47 +0000 (21:04 -0500)]
Check return value of setlocale(3) and admonish on failure.

11 years agoAdd missing variable initializations on fmt_scan().
Lyndon Nerenberg [Tue, 17 Jun 2014 00:03:06 +0000 (17:03 -0700)]
Add missing variable initializations on fmt_scan().

11 years agoEnsure getline() is in scope on FreeBSD.
Lyndon Nerenberg [Mon, 16 Jun 2014 23:03:25 +0000 (16:03 -0700)]
Ensure getline() is in scope on FreeBSD.

On FreeBSD, to make the getline() prototype visible, you must
'#define _WITH_GETLINE' before including <stdio.h>.

11 years agoFix to commit 0d3875d020fb17d34918f5e81ee7f87fbc5d1565: it seems
David Levine [Mon, 16 Jun 2014 03:43:16 +0000 (22:43 -0500)]
Fix to commit 0d3875d020fb17d34918f5e81ee7f87fbc5d1565:  it seems
that only Linux uses the locale name of en_US.utf8, so added check
for the more common en_US.utf-8 to the tests that use it.

11 years agoReordered #includes of sbr/terminal.c to allow compilation on
David Levine [Mon, 16 Jun 2014 03:05:16 +0000 (22:05 -0500)]
Reordered #includes of sbr/terminal.c to allow compilation on
Solaris 10.  Thanks to Michael Urban for report the problem and
verifying the fix.

11 years agoSkip (parts of) tests that require en_US.utf8 locale if it's
David Levine [Sat, 14 Jun 2014 16:52:42 +0000 (11:52 -0500)]
Skip (parts of) tests that require en_US.utf8 locale if it's
not available.  Thanks to Alexander Zangerl for reporting the
issue.

11 years agoTest to make sure inc works properly with a POP server that has
Ken Hornstein [Fri, 13 Jun 2014 19:17:48 +0000 (15:17 -0400)]
Test to make sure inc works properly with a POP server that has
multiple messages on it.

11 years agoSupport multiple messages with fakepop.
Ken Hornstein [Fri, 13 Jun 2014 19:07:26 +0000 (15:07 -0400)]
Support multiple messages with fakepop.

11 years agoAlways default the username to the local username, even when not
Ken Hornstein [Wed, 11 Jun 2014 01:08:02 +0000 (21:08 -0400)]
Always default the username to the local username, even when not
doing SASL.  Fix suggested by Michael Urban.

11 years agoUse variable-size (but in one case, fixed but larger) buffers for the SASL
Ken Hornstein [Tue, 10 Jun 2014 23:06:54 +0000 (19:06 -0400)]
Use variable-size (but in one case, fixed but larger) buffers for the SASL
exchange to deal with larger SASL messages (specifically, when doing GSSAPI
with certain ticket extensions).

11 years agomh-profile.man: rewrite the Profile Lookup section for clarity
Paul Fox [Tue, 10 Jun 2014 03:21:35 +0000 (23:21 -0400)]
mh-profile.man: rewrite the Profile Lookup section for clarity

thanks to Ralph Corderoy for the text.

11 years agoIf "curl" is available, create a nmh-access-url entry that uses it.
Ken Hornstein [Mon, 9 Jun 2014 16:00:17 +0000 (12:00 -0400)]
If "curl" is available, create a nmh-access-url entry that uses it.

11 years agoFix curl example for nmh-access-url entry.
Ken Hornstein [Mon, 9 Jun 2014 15:36:05 +0000 (11:36 -0400)]
Fix curl example for nmh-access-url entry.

11 years agoReturn an appropriate error if the input characters are 8-bit, but the
Ken Hornstein [Sun, 8 Jun 2014 03:14:12 +0000 (23:14 -0400)]
Return an appropriate error if the input characters are 8-bit, but the
locale character set is US-ASCII.

11 years agoWhoops, this should be LC_CTYPE. Fixing that exposes the lack of an
Ken Hornstein [Sun, 8 Jun 2014 02:40:12 +0000 (22:40 -0400)]
Whoops, this should be LC_CTYPE.  Fixing that exposes the lack of an
appropriate environment variable in test-utf8-body

11 years agomhlist: don't truncate anything when -verbose
Paul Fox [Wed, 4 Jun 2014 16:18:12 +0000 (12:18 -0400)]
mhlist: don't truncate anything when -verbose

without this change to the -verbose output, there's no easy way to use
mhlist to get an unmodified content-type or content-description.  (the
non-verbose output isn't changed.)

11 years agoClarified description in comments of context_find_by_type().
David Levine [Fri, 30 May 2014 02:08:59 +0000 (21:08 -0500)]
Clarified description in comments of context_find_by_type().

11 years agoAdded static to declaration of docc().
David Levine [Fri, 30 May 2014 02:07:25 +0000 (21:07 -0500)]
Added static to declaration of docc().

11 years agoUndid commit 475fef2edee9db3c63fc089df76f8e93e3d598cd, it didn't
David Levine [Fri, 30 May 2014 02:05:36 +0000 (21:05 -0500)]
Undid commit 475fef2edee9db3c63fc089df76f8e93e3d598cd, it didn't
seem popular.  We'd be better off with a proper method, or using
formail(1), to extract the addresses from a message.

11 years agoSplit assignment and export of shell variable.
David Levine [Fri, 30 May 2014 02:02:49 +0000 (21:02 -0500)]
Split assignment and export of shell variable.

11 years agoAdded mention of "Reply to <address>?" prompt to repl(1) man
David Levine [Wed, 28 May 2014 02:35:23 +0000 (21:35 -0500)]
Added mention of "Reply to <address>?" prompt to repl(1) man
page and code, as comment.  Suggested by Norm so that scripts
can depend on it.

11 years agoAdded context_find_by_type(), helper function to search first, if
David Levine [Mon, 26 May 2014 14:17:34 +0000 (09:17 -0500)]
Added context_find_by_type(), helper function to search first, if
subtype is non-NULL, for invoname-string-type/subtype and then
invoname-string-type.  Also gets rid of some fixed-size temp buffers.

11 years agoFixed test-mkstemp to work with valgrind.
David Levine [Fri, 23 May 2014 22:07:39 +0000 (17:07 -0500)]
Fixed test-mkstemp to work with valgrind.

11 years agoFixed to commit 378589b17424bd78acbfc57d505383ffb8c256cb:
David Levine [Fri, 23 May 2014 01:39:45 +0000 (20:39 -0500)]
Fixed to commit 378589b17424bd78acbfc57d505383ffb8c256cb:
when a -file switch will be used, insert -[no]concat before
the filename (and therefore, the -file switch itself).

11 years agoDon't pass -[no]concat from show(1) to mhl(1).
David Levine [Thu, 22 May 2014 03:11:42 +0000 (22:11 -0500)]
Don't pass -[no]concat from show(1) to mhl(1).

11 years agoFixed typos in comments.
David Levine [Thu, 22 May 2014 01:56:25 +0000 (20:56 -0500)]
Fixed typos in comments.

11 years agoOn platforms with no MIMETYPEPROC, declare the content to be
David Levine [Thu, 22 May 2014 01:50:22 +0000 (20:50 -0500)]
On platforms with no MIMETYPEPROC, declare the content to be
binary if it contains any NUL characters.

11 years agoExplain how to get a literal % in format files.
Ken Hornstein [Mon, 19 May 2014 17:37:26 +0000 (13:37 -0400)]
Explain how to get a literal % in format files.

11 years agoDocumented steps to build RPM from tarball, without using autogen.sh.
David Levine [Mon, 19 May 2014 02:55:13 +0000 (21:55 -0500)]
Documented steps to build RPM from tarball, without using autogen.sh.

11 years agoAdded autogen.sh to EXTRA_DIST.
David Levine [Mon, 19 May 2014 02:43:20 +0000 (21:43 -0500)]
Added autogen.sh to EXTRA_DIST.

11 years agoHandle unknown message types in the generic content handler rather
Ken Hornstein [Fri, 16 May 2014 17:02:43 +0000 (13:02 -0400)]
Handle unknown message types in the generic content handler rather
than in the RFC822 handler; this will cause them to be displayed using
an output marker rather than throw an error.

11 years agoOutput a newline if the last character in a text/plain part is
Ken Hornstein [Fri, 16 May 2014 16:14:21 +0000 (12:14 -0400)]
Output a newline if the last character in a text/plain part is
not a newline (but only for mhshow).

11 years agoMove the prototype for show_content_aux() to a common header file; it
Ken Hornstein [Fri, 16 May 2014 04:04:24 +0000 (00:04 -0400)]
Move the prototype for show_content_aux() to a common header file; it
got an extra argument recently but none of the other users of it
noticed.

When fixing this I discovered that the usage of show_content_aux()
by mhstoresbr.c was wrong; the prototype had an extra argument in
the middle of it.  Apparently this has been broken for 15 years!

11 years agoSwitch from %p to %l (%p is no longer supported, although we silently
Ken Hornstein [Fri, 16 May 2014 03:01:49 +0000 (23:01 -0400)]
Switch from %p to %l (%p is no longer supported, although we silently
accept it).

11 years agofix comment syntax
Paul Fox [Thu, 15 May 2014 18:02:07 +0000 (14:02 -0400)]
fix comment syntax

11 years agoclarify scan_content() logic for choosing encoding
Paul Fox [Tue, 13 May 2014 13:36:42 +0000 (09:36 -0400)]
clarify scan_content() logic for choosing encoding

11 years agoAdded support for mhbuild-disposition-<type>[/<subtype>] profile
David Levine [Thu, 15 May 2014 15:28:03 +0000 (10:28 -0500)]
Added support for mhbuild-disposition-<type>[/<subtype>] profile
entries when mhbuild expands Attach: headers.  Default to
'attachment', but override with 'inline' entries for text/calendar
and message/rfc822 in mhn.defaults.

11 years agochange mhlist to use decimal math when abbreviating sizes
Paul Fox [Thu, 15 May 2014 12:55:45 +0000 (08:55 -0400)]
change mhlist to use decimal math when abbreviating sizes

the K/M/G/T units imply factors of 1000, so make the code
match.  (the alternative would be to change the units to
Ki/Mi/Gi/Ti.)  mhlist output might someday be configurable
using mh-format, in which case the user will be able to choose.

11 years agoadd $(kibi) function, as complement to %(kilo)
Paul Fox [Tue, 13 May 2014 14:10:09 +0000 (10:10 -0400)]
add $(kibi) function, as complement to %(kilo)

%(kibi) will convert a number to IEC prefix units, i.e. Ki, Mi, Gi,
Ti, representing factors of 1024.  (by comparison, %(kilo) represents
factors of 1000.)

11 years agorename %(units) to %(kilo)
Paul Fox [Tue, 13 May 2014 13:43:43 +0000 (09:43 -0400)]
rename %(units) to %(kilo)

per discussion here:
  http://lists.nongnu.org/archive/html/nmh-workers/2014-05/msg00092.html

11 years agoAdded --dereference option, if supported, to file(1) command
David Levine [Tue, 13 May 2014 12:02:11 +0000 (07:02 -0500)]
Added --dereference option, if supported, to file(1) command
in NMH_MIMETYPEPROC and NMH_MIMEENCODINGPROC macros.