]> diplodocus.org Git - nmh/log
nmh
10 years agoFix mhlogin(1) title.
Eric Gillespie [Sun, 10 Apr 2016 18:46:52 +0000 (18:46 +0000)]
Fix mhlogin(1) title.

10 years agoAdded -user to mhlogin man page.
David Levine [Sun, 10 Apr 2016 15:42:29 +0000 (11:42 -0400)]
Added -user to mhlogin man page.

10 years agoFix to commit 84932d0a96c79bfb2f0384ebab806dc51a35f600 to
David Levine [Sun, 10 Apr 2016 15:16:55 +0000 (11:16 -0400)]
Fix to commit 84932d0a96c79bfb2f0384ebab806dc51a35f600 to
insert blank line between header and content for non-text
content.

(cherry picked from commit fe36a7ee2f4304fd3797443d4f2f950d6dc2475d)

10 years agocheck curl_ctx->res_len > 0 not res_body != NULL
Eric Gillespie [Sun, 10 Apr 2016 06:19:19 +0000 (06:19 +0000)]
check curl_ctx->res_len > 0 not res_body != NULL

res_body is not a pointer and is never NULL

(Thanks clang!)

10 years agooops, pass int to m_getfld not size_t
Eric Gillespie [Sun, 10 Apr 2016 06:17:35 +0000 (06:17 +0000)]
oops, pass int to m_getfld not size_t

10 years agosupport multiple oauth users; mhlogin now requires -user
Eric Gillespie [Sun, 10 Apr 2016 06:09:12 +0000 (23:09 -0700)]
support multiple oauth users; mhlogin now requires -user

10 years agoplug some memory leaks, in success cases only
Eric Gillespie [Sun, 10 Apr 2016 05:03:14 +0000 (05:03 +0000)]
plug some memory leaks, in success cases only

(staying clean at least on non-adios paths is not hard)

10 years agofix mhlogin -browser test
Eric Gillespie [Sun, 10 Apr 2016 04:53:34 +0000 (04:53 +0000)]
fix mhlogin -browser test

10 years agotest mhlogin -browser
Eric Gillespie [Sun, 3 Apr 2016 01:32:23 +0000 (01:32 +0000)]
test mhlogin -browser

10 years agoDon't call sm_auth_sasl() for XAUTH2 with -sasl. Instead,
David Levine [Sun, 27 Mar 2016 16:00:16 +0000 (12:00 -0400)]
Don't call sm_auth_sasl() for XAUTH2 with -sasl.  Instead,
call only sm_auth_xoauth2().

10 years agoAdded start_test()/finish_test() to README.developers.
David Levine [Sat, 26 Mar 2016 23:09:50 +0000 (19:09 -0400)]
Added start_test()/finish_test() to README.developers.

10 years agoMigrated the oauth tests to start_test()/finish_test() so that
David Levine [Sat, 26 Mar 2016 23:05:10 +0000 (19:05 -0400)]
Migrated the oauth tests to start_test()/finish_test() so that
they don't have any output on success, but do report the particular
test on failure.

10 years agoAdded start_test() and finish_test() functions to test/common.sh.in.
David Levine [Sat, 26 Mar 2016 22:59:31 +0000 (18:59 -0400)]
Added start_test() and finish_test() functions to test/common.sh.in.
See usage information in the (new) cleanup() function in that file.
This allow us to isolate test failures based on naming of individual
tests within a single test file.  As part of this, added set -e to
setup_test().  This required minor updates to test/new/basic and
test/pick/test-stderr to conform.  So, migrated test/new/test-basic
to start_test()/finish_test().

10 years agoAdded -browser switch to mhlogin(1).
David Levine [Fri, 25 Mar 2016 01:25:19 +0000 (21:25 -0400)]
Added -browser switch to mhlogin(1).

10 years agoMerge remote-tracking branch 'origin' into xoauth
David Levine [Fri, 25 Mar 2016 00:24:15 +0000 (20:24 -0400)]
Merge remote-tracking branch 'origin' into xoauth

10 years agoChanged minchars swit values for -[no]concat switches to show(1)
David Levine [Thu, 24 Mar 2016 23:57:15 +0000 (19:57 -0400)]
Changed minchars swit values for -[no]concat switches to show(1)
from negative to 0, so that they can be abbreviated and so that they
appear with -help.  Added them to the man page, and fixed text that
was copied from mhshow(1) man page.

10 years agoUse WIFXEXITED to check return status of system(), because
David Levine [Thu, 24 Mar 2016 23:55:58 +0000 (19:55 -0400)]
Use WIFXEXITED to check return status of system(), because
comparison with NOTOK wasn't valid.

10 years agoChanged sign of minchars for the SASL-related switches from
David Levine [Thu, 24 Mar 2016 01:40:31 +0000 (21:40 -0400)]
Changed sign of minchars for the SASL-related switches from
negative to positive so the won't be hidden from help messages.
I think.

10 years agoMerge remote-tracking branch 'origin' into xoauth
David Levine [Thu, 24 Mar 2016 00:41:46 +0000 (20:41 -0400)]
Merge remote-tracking branch 'origin' into xoauth

 merge is necessary,

10 years agoReplaced -oauth service switch with -saslmech xoauth2
David Levine [Thu, 24 Mar 2016 00:25:32 +0000 (20:25 -0400)]
Replaced -oauth service switch with -saslmech xoauth2
-authservice service, because OAUTH2 is a SASL mechanism.

10 years agoAnother pass at cleaning up (some of) the manpages.
Lyndon Nerenberg [Mon, 21 Mar 2016 00:28:27 +0000 (17:28 -0700)]
Another pass at cleaning up (some of) the manpages.

This continues work I started a couple of years ago, but then got
derailed on.  There are two main goals behind these updates:

1) replace some low-level troff constructs with more modern
   man(7) facilities, and

2) adopt a more consistent visual style to the layout and
   formatting of the manpages, particularly in reference to
   typeset pages.

This time around I have updated README.manpages to describe the new
guidelines.  They are mostly non-intrusive, and serve to clean up
a lot of visual clutter that has crept in over the years.

10 years agoAdded check of return value of write() to quash compiler warning.
David Levine [Sat, 19 Mar 2016 14:15:43 +0000 (10:15 -0400)]
Added check of return value of write() to quash compiler warning.

10 years agoRecover properly if the character conversion fails.
Ken Hornstein [Sat, 19 Mar 2016 04:06:24 +0000 (00:06 -0400)]
Recover properly if the character conversion fails.

10 years agoFix substitution code so it uses the right pointer for the utf-8 test.
Ken Hornstein [Sat, 19 Mar 2016 04:04:56 +0000 (00:04 -0400)]
Fix substitution code so it uses the right pointer for the utf-8 test.

10 years agoMerge remote-tracking branch 'origin' into xoauth
David Levine [Fri, 18 Mar 2016 12:30:21 +0000 (08:30 -0400)]
Merge remote-tracking branch 'origin' into xoauth

10 years agoHave fix_boundary() return NOTOK if it couldn't fix a boundary,
David Levine [Fri, 18 Mar 2016 02:05:54 +0000 (22:05 -0400)]
Have fix_boundary() return NOTOK if it couldn't fix a boundary,
so that mhfixmsg won't modify the message.

10 years agoAdded oauth support to whatnow.
David Levine [Thu, 17 Mar 2016 01:32:48 +0000 (21:32 -0400)]
Added oauth support to whatnow.

10 years agoAdded oauth switch to whatnow.
David Levine [Sun, 13 Mar 2016 19:40:23 +0000 (15:40 -0400)]
Added oauth switch to whatnow.

10 years agoAdded use of local variable user to prevent compiler warning
David Levine [Sun, 13 Mar 2016 17:11:21 +0000 (13:11 -0400)]
Added use of local variable user to prevent compiler warning
when built without OAuth2 support.

10 years agoSort JSON output from oauth tests so that comparisons don't
David Levine [Sun, 13 Mar 2016 16:58:25 +0000 (12:58 -0400)]
Sort JSON output from oauth tests so that comparisons don't
depend on it being in a specific order.  Also, clean up test
tmp files.

10 years agoSet MH_VERSION, OAUTH_SUPPORT, and CURL_USER_AGENT in tests/common.sh.in
David Levine [Sun, 13 Mar 2016 16:57:18 +0000 (12:57 -0400)]
Set MH_VERSION, OAUTH_SUPPORT, and CURL_USER_AGENT in tests/common.sh.in
so that oauth tests can be run individually (not just via make check).

10 years agoAdded OAuth2 support to build_nmh.
David Levine [Sun, 13 Mar 2016 15:00:05 +0000 (11:00 -0400)]
Added OAuth2 support to build_nmh.

10 years agoMerge branch 'master' into xoauth
David Levine [Sun, 13 Mar 2016 14:42:39 +0000 (10:42 -0400)]
Merge branch 'master' into xoauth

10 years agoHave -nocrlflinebreaks apply to the message parts that -decodetypes
David Levine [Sat, 12 Mar 2016 18:25:36 +0000 (13:25 -0500)]
Have -nocrlflinebreaks apply to the message parts that -decodetypes
designates.

10 years agoAdded EXAMPLES and BUGS sections.
David Levine [Sat, 12 Mar 2016 15:41:03 +0000 (10:41 -0500)]
Added EXAMPLES and BUGS sections.

10 years agoImplement the -reverse option to pick(1) to change the search order.
Eric Gillespie [Sat, 12 Mar 2016 05:15:46 +0000 (00:15 -0500)]
Implement the -reverse option to pick(1) to change the search order.

10 years agoUpdated date on mh-folders(5) man page.
David Levine [Sat, 27 Feb 2016 16:44:51 +0000 (11:44 -0500)]
Updated date on mh-folders(5) man page.

10 years agoAdded application/ics to default list if types to decode.
David Levine [Sat, 27 Feb 2016 16:33:39 +0000 (11:33 -0500)]
Added application/ics to default list if types to decode.

10 years agomh-folders.man: note that folders should not be named numerically
Paul Fox [Thu, 25 Feb 2016 16:33:14 +0000 (11:33 -0500)]
mh-folders.man: note that folders should not be named numerically

10 years agoAdded -[no]crlflinebreaks switches to mhfixmsg(1).
David Levine [Thu, 25 Feb 2016 01:32:10 +0000 (20:32 -0500)]
Added -[no]crlflinebreaks switches to mhfixmsg(1).

10 years agoAdded check for successful decode of a different part with
David Levine [Sun, 21 Feb 2016 16:59:41 +0000 (11:59 -0500)]
Added check for successful decode of a different part with
attempted -decodetext of binary text to test-mhfixmsg.

10 years agoDon't consider failure to build a text/plain part to be an error.
David Levine [Sun, 21 Feb 2016 16:22:53 +0000 (11:22 -0500)]
Don't consider failure to build a text/plain part to be an error.
This allows mhfixmsg to succeed even if there isn't a suitable
mhfixmsg-format-text/subtype profile entry for every text part in
the message.

10 years agoAdded -decodetypes switch to mhfixmsg(1).
David Levine [Sat, 20 Feb 2016 18:41:52 +0000 (13:41 -0500)]
Added -decodetypes switch to mhfixmsg(1).

10 years agoAdd missing -infile switch name to mhfixmsg-format-text/calendar
David Levine [Fri, 29 Jan 2016 02:16:43 +0000 (21:16 -0500)]
Add missing -infile switch name to mhfixmsg-format-text/calendar
rule in mhn.defaults.

10 years agomhical enhancement: If a datetime is missing the time, assume
David Levine [Sat, 23 Jan 2016 20:14:33 +0000 (15:14 -0500)]
mhical enhancement:  If a datetime is missing the time, assume
midnight.  If there is no end datetime (DTEND) and the DTSTART
doesn't contain a time, assume that the event is for the entire day.

10 years agoSet MH to the resolved, absolute pathname inside context_read() so
Richard M Kreuter [Wed, 20 Jan 2016 02:39:11 +0000 (21:39 -0500)]
Set MH to the resolved, absolute pathname inside context_read() so
that exec'd children can find it.

10 years agoAdded all of mhshow's documented switches to show's handling, on the
Richard M Kreuter [Wed, 20 Jan 2016 02:19:16 +0000 (21:19 -0500)]
Added all of mhshow's documented switches to show's handling, on the
notion that nmh's pieces should know about each other.

10 years agoAdded mention of mhfixmsg -fixcte to error message for improper C-T-E in
David Levine [Wed, 20 Jan 2016 02:03:30 +0000 (21:03 -0500)]
Added mention of mhfixmsg -fixcte to error message for improper C-T-E in
multipart message.  Thanks to Conrad Hughes for suggesting this.

10 years agoMoved addition of -ansi -pedantic to CFLAGS with gcc from
David Levine [Mon, 30 Nov 2015 03:21:11 +0000 (22:21 -0500)]
Moved addition of -ansi -pedantic to CFLAGS with gcc from
configure.ac to docs/contrib/build_nmh, so that they're not
included by default with builds by users.

10 years agoAllow a RRULE in an iCalendar request to not have an INTERVAL on its
David Levine [Thu, 19 Nov 2015 20:27:49 +0000 (15:27 -0500)]
Allow a RRULE in an iCalendar request to not have an INTERVAL on its
yearly FREQ, because INTERVAL defaults to 1.

10 years agoRemove any enclosing quotes from a timezone identifier in an
David Levine [Wed, 18 Nov 2015 23:35:59 +0000 (18:35 -0500)]
Remove any enclosing quotes from a timezone identifier in an
iCalendar event request.  See comment added to format_datetime()
that says that I don't believe that RFC 5545 allows them to be
quoted.  But Oliver Kiddle found them in the wild.

10 years agoIf format_datetime() returns null, store a copy of node->value on c->c_text
David Levine [Wed, 18 Nov 2015 23:02:43 +0000 (18:02 -0500)]
If format_datetime() returns null, store a copy of node->value on c->c_text
to prevent a double free().

10 years agoIf str == buffer, then do NOT do a strncpy(buffer, str). Many systems
Ken Hornstein [Sun, 23 Aug 2015 02:16:22 +0000 (22:16 -0400)]
If str == buffer, then do NOT do a strncpy(buffer, str).  Many systems
this works, but on some systems it causes a SIGABRT.  POSIX says the
behavior on overlapping copies with str*cpy() is officially undefined.

10 years agoAdd support for setting the environment variable MH_TEST_NOCLEANUP to
Ken Hornstein [Sun, 23 Aug 2015 02:14:41 +0000 (22:14 -0400)]
Add support for setting the environment variable MH_TEST_NOCLEANUP to
prevent a test from cleaning up the test working directory.

10 years agoAdd support for the -sendmail flag to send/post, to support changing the
Leonardo Taccari [Fri, 21 Aug 2015 17:26:53 +0000 (13:26 -0400)]
Add support for the -sendmail flag to send/post, to support changing the
sendmail executable.

10 years agoUnquoted addresses in mhshow and scan output. Suggested by
David Levine [Tue, 14 Jul 2015 02:32:36 +0000 (22:32 -0400)]
Unquoted addresses in mhshow and scan output.  Suggested by
Anthony Bentley.

11 years agoChange the reference to the valgrind suppression file from $MH_OBJ_DIR to
Ken Hornstein [Fri, 20 Mar 2015 16:09:54 +0000 (12:09 -0400)]
Change the reference to the valgrind suppression file from $MH_OBJ_DIR to
$srcdir so "make distcheck" works.

11 years agoInclude a new valgrind warning suppression for MacOS X.
Ken Hornstein [Fri, 20 Mar 2015 16:02:14 +0000 (12:02 -0400)]
Include a new valgrind warning suppression for MacOS X.

11 years agoMake sure the valgrind suppression file is honored, and add some extra
Alexander Zangerl [Fri, 20 Mar 2015 14:26:02 +0000 (10:26 -0400)]
Make sure the valgrind suppression file is honored, and add some extra
suppressions needed when running under the Debian fakeroot environment.

11 years agoFix error message to correctly report the program that failed to execute
Ken Hornstein [Tue, 17 Mar 2015 15:02:38 +0000 (11:02 -0400)]
Fix error message to correctly report the program that failed to execute
when doing HTML conversion.
Also, remove perl function prototypes as they are not considered best
practice.

11 years agoRearrange all callers of post(8) so that the filename is always last.
Ken Hornstein [Sat, 7 Mar 2015 03:58:58 +0000 (22:58 -0500)]
Rearrange all callers of post(8) so that the filename is always last.

11 years agomhparse.c: verify all MIME-Version: headers encountered
Paul Fox [Wed, 4 Mar 2015 18:10:38 +0000 (13:10 -0500)]
mhparse.c: verify all MIME-Version: headers encountered

in addition to verifying, silently ignore duplicate version headers.

11 years agoMerge remote-tracking branch 'origin/convertargs'
David Levine [Mon, 23 Feb 2015 03:21:40 +0000 (21:21 -0600)]
Merge remote-tracking branch 'origin/convertargs'

11 years agouse %l uniformly on all the text-mode browser display strings
Paul Fox [Sat, 14 Feb 2015 16:36:24 +0000 (11:36 -0500)]
use %l uniformly on all the text-mode browser display strings

otherwise behavior changes depending on which browser was present
when nmh is configured/installed.

11 years agoFilter converted text/html to remove blank lines and leading space
David Levine [Sat, 14 Feb 2015 05:30:03 +0000 (23:30 -0600)]
Filter converted text/html to remove blank lines and leading space
that lynx inserts.  Also, changed ISO-8859-1 to US-ASCII because it
is, so it doesn't need to be converted.

11 years agoRemoved m_chkids(), per suggestion of Marcin Cieslak.
David Levine [Sat, 14 Feb 2015 04:22:21 +0000 (22:22 -0600)]
Removed m_chkids(), per suggestion of Marcin Cieslak.

11 years agoRemoved unnecessary #include of h/signals.h.
David Levine [Sat, 14 Feb 2015 03:31:48 +0000 (21:31 -0600)]
Removed unnecessary #include of h/signals.h.

11 years agoRemoved #include of signal.h because it's in h/signals.h.
David Levine [Sat, 14 Feb 2015 03:30:41 +0000 (21:30 -0600)]
Removed #include of signal.h because it's in h/signals.h.

11 years agoReset done in inc_done() to prevent endless loop when setegid()
Marcin Cieslak [Sat, 14 Feb 2015 03:01:09 +0000 (21:01 -0600)]
Reset done in inc_done() to prevent endless loop when setegid()
fails (in which case adios() is called, which calls done()).

11 years agoThat didn't work, so removed offset.
David Levine [Fri, 13 Feb 2015 03:33:05 +0000 (21:33 -0600)]
That didn't work, so removed offset.

11 years agoUse +0000 isntead of -0000 offset because FreeBSD displays it that way.
David Levine [Fri, 13 Feb 2015 03:27:45 +0000 (21:27 -0600)]
Use +0000 isntead of -0000 offset because FreeBSD displays it that way.

11 years agoReplaced setgid() calls with setegid() so that it works with dot
Marcin Cieslak [Fri, 13 Feb 2015 03:09:26 +0000 (21:09 -0600)]
Replaced setgid() calls with setegid() so that it works with dot
locking on FreeBSD.  setegid() should be supported on modern POSIX
systems.

11 years agoAdded showmimeproc to test/common.sh.in so that test-show will test
David Levine [Fri, 13 Feb 2015 02:22:32 +0000 (20:22 -0600)]
Added showmimeproc to test/common.sh.in so that test-show will test
it in the workspace, not the user's installation.  Also added all of
the other procs defined in config/config.c that are currently unused,
just in case they some day are.

11 years agoRemoved a few more msh (MS_MSH and mshproc) and vmh (vmhproc) relics.
David Levine [Fri, 13 Feb 2015 02:03:11 +0000 (20:03 -0600)]
Removed a few more msh (MS_MSH and mshproc) and vmh (vmhproc) relics.

11 years agoReplaced individual assignment of array elements, one of which was
David Levine [Thu, 12 Feb 2015 03:38:51 +0000 (21:38 -0600)]
Replaced individual assignment of array elements, one of which was
out of range, with array initialization.

11 years agoFixed the error message in lockit() when it fails to create tmp file.
Marcin Cieslak [Tue, 10 Feb 2015 14:18:05 +0000 (14:18 +0000)]
Fixed the error message in lockit() when it fails to create tmp file.

11 years agoFixed "inc" to be installed setgid mail with dot locking. MAILGROUP=1
Marcin Cieslak [Tue, 10 Feb 2015 14:18:05 +0000 (14:18 +0000)]
Fixed "inc" to be installed setgid mail with dot locking.  MAILGROUP=1
was not set in the config.h because we no longer use "LOCKTYPE"
configure variable.

11 years agoupdate tests for new message separator header from mhshow
Paul Fox [Sun, 8 Feb 2015 20:13:31 +0000 (15:13 -0500)]
update tests for new message separator header from mhshow

also added test names to tests, in any file i touched

11 years agoupdate man pages for new mhshow message separator header
Paul Fox [Sun, 8 Feb 2015 21:06:44 +0000 (16:06 -0500)]
update man pages for new mhshow message separator header

11 years agoadd new message separator header to mhshow
Paul Fox [Sun, 8 Feb 2015 20:22:07 +0000 (15:22 -0500)]
add new message separator header to mhshow

new switches to mhshow (-headerform and -[no]header) control whether
and what is displayed before the display of every message's content.
the default separator looks like "[ Message folder:msg ]".  the
implementation parallels the -markform feature.

since mhshow is often started by show, show now passes the -[no]header
options through to mhshow.  (also, show no longer attempts to pass
such options through to cat (in the case of -noshowproc)).

11 years agofix typo in mh-format.man
Paul Fox [Fri, 6 Feb 2015 18:03:36 +0000 (13:03 -0500)]
fix typo in mh-format.man

11 years agoTest that show always shows message numbers.
Eric Gillespie [Thu, 5 Feb 2015 20:46:28 +0000 (12:46 -0800)]
Test that show always shows message numbers.

show shows message numbers in two different formats when showing one
non-MIME, multiple non-MIME messages, or one MIME message.

show does not show any message numbers when showing multiple messages
any of which is MIME.

This is not a new bug, just one that has bothered me since I started
using mhshow with 1.6.

11 years agotest/common.sh: allow giving individual tests a name
Paul Fox [Fri, 6 Feb 2015 16:57:58 +0000 (11:57 -0500)]
test/common.sh: allow giving individual tests a name

11 years agoman pages -- clarify what -part and -type do when used together
Paul Fox [Fri, 6 Feb 2015 16:32:44 +0000 (11:32 -0500)]
man pages -- clarify what -part and -type do when used together

11 years agoMerge remote-tracking branch 'origin' into convertargs
David Levine [Sun, 8 Feb 2015 15:23:34 +0000 (09:23 -0600)]
Merge remote-tracking branch 'origin' into convertargs

11 years agoAdded support to mhfixmsg -reformat for multipart/related. If it has
David Levine [Sun, 8 Feb 2015 15:21:13 +0000 (09:21 -0600)]
Added support to mhfixmsg -reformat for multipart/related.  If it has
only a single part that is not text/plain and can be converted to
text/plain, a text/plain part is added and the type of the part is
changed to multipart/alternative.  If the multipart/related has more
than one part but does not have a text/plain part, try to add one.

11 years agoFixed test-convert to work on Cygwin and other platforms that
David Levine [Thu, 5 Feb 2015 01:19:54 +0000 (19:19 -0600)]
Fixed test-convert to work on Cygwin and other platforms that
default to UTF-8 locale.

11 years agoMerge remote-tracking branch 'origin' into convertargs
David Levine [Thu, 5 Feb 2015 01:18:33 +0000 (19:18 -0600)]
Merge remote-tracking branch 'origin' into convertargs

11 years agoRemoved unused local variable from move_preferred_part().
David Levine [Thu, 5 Feb 2015 01:05:16 +0000 (19:05 -0600)]
Removed unused local variable from move_preferred_part().

11 years agopending-release-notes: add mhshow's "-prefer", and mh-format's %(kibi/kilo)
Paul Fox [Wed, 4 Feb 2015 23:52:53 +0000 (18:52 -0500)]
pending-release-notes: add mhshow's "-prefer", and mh-format's %(kibi/kilo)

11 years agotest-subpart: add mhlist and mhshow tests for -type/-part/-prefer
Paul Fox [Wed, 4 Feb 2015 19:44:36 +0000 (14:44 -0500)]
test-subpart: add mhlist and mhshow tests for -type/-part/-prefer

11 years agoupdate mhshow, mhlist, and mhstore man pages for -prefer switch
Paul Fox [Wed, 4 Feb 2015 17:07:27 +0000 (12:07 -0500)]
update mhshow, mhlist, and mhstore man pages for -prefer switch

11 years agoimplement -prefer, for multipart/alternative preferences
Paul Fox [Wed, 4 Feb 2015 02:55:41 +0000 (21:55 -0500)]
implement -prefer, for multipart/alternative preferences

11 years agomhshow.man: more detail on use of -part and -type switches
Paul Fox [Wed, 4 Feb 2015 04:03:46 +0000 (23:03 -0500)]
mhshow.man: more detail on use of -part and -type switches

11 years agomhshow: ensure that -part always shows every part requested
Paul Fox [Tue, 3 Feb 2015 17:39:53 +0000 (12:39 -0500)]
mhshow: ensure that -part always shows every part requested

previously, "mhshow -part 1 -part 1.3" would show 1.1 but not 1.3.

11 years agomhshow: fix display of alternatives after certain nested multiparts
Paul Fox [Sat, 31 Jan 2015 00:52:24 +0000 (19:52 -0500)]
mhshow: fix display of alternatives after certain nested multiparts

adjust return codes so that we now have a clear indication of whether
there was a hard error (NOTOK), a failure to display due to type
mismatch (DONE), or complete success (OK).  use those codes in
show_multi_internal() to decide whether we're finished with this
multipart or not.

prior to this change, it was impossible to show part 1.2 of a
message constructed like the following, because the disinction
between (the new, as described above) DONE and OK states was
lost while processing multipart/related part 1.1.
 msg part  type/subtype              size description
  28       multipart/mixed           1040
     1     multipart/alternative      623
     1.1   multipart/related          275
     1.1.1 text/html                  105
     1.2   text/plain                  33
     2     text/plain                  83

this fix is related to 9cc2510 and c9794733.  hopefully it's right
this time.

11 years agomhshow: simplify code -- the DONE status was adding no value
Paul Fox [Sat, 31 Jan 2015 01:14:59 +0000 (20:14 -0500)]
mhshow: simplify code -- the DONE status was adding no value

11 years agodrop the second argument to part_ok(), since it is always 1
Paul Fox [Sat, 31 Jan 2015 00:41:37 +0000 (19:41 -0500)]
drop the second argument to part_ok(), since it is always 1

the second argument hasn't been used since "historical" times.
also add some commentary to part_ok().

11 years agoAdd a note about new bindir option to mhparam.
Lyndon Nerenberg [Tue, 27 Jan 2015 23:17:20 +0000 (15:17 -0800)]
Add a note about new bindir option to mhparam.

11 years ago'mhparam bindir' now prints NMH's idea of $(bindir).
Lyndon Nerenberg [Tue, 27 Jan 2015 23:07:19 +0000 (15:07 -0800)]
'mhparam bindir' now prints NMH's idea of $(bindir).