]>
diplodocus.org Git - nmh/log
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)).
Paul Fox [Fri, 6 Feb 2015 18:03:36 +0000 (13:03 -0500)]
fix typo in mh-format.man
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.
Paul Fox [Fri, 6 Feb 2015 16:57:58 +0000 (11:57 -0500)]
test/common.sh: allow giving individual tests a name
Paul Fox [Fri, 6 Feb 2015 16:32:44 +0000 (11:32 -0500)]
man pages -- clarify what -part and -type do when used together
David Levine [Sun, 8 Feb 2015 15:23:34 +0000 (09:23 -0600)]
Merge remote-tracking branch 'origin' into convertargs
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.
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.
David Levine [Thu, 5 Feb 2015 01:18:33 +0000 (19:18 -0600)]
Merge remote-tracking branch 'origin' into convertargs
David Levine [Thu, 5 Feb 2015 01:05:16 +0000 (19:05 -0600)]
Removed unused local variable from move_preferred_part().
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)
Paul Fox [Wed, 4 Feb 2015 19:44:36 +0000 (14:44 -0500)]
test-subpart: add mhlist and mhshow tests for -type/-part/-prefer
Paul Fox [Wed, 4 Feb 2015 17:07:27 +0000 (12:07 -0500)]
update mhshow, mhlist, and mhstore man pages for -prefer switch
Paul Fox [Wed, 4 Feb 2015 02:55:41 +0000 (21:55 -0500)]
implement -prefer, for multipart/alternative preferences
Paul Fox [Wed, 4 Feb 2015 04:03:46 +0000 (23:03 -0500)]
mhshow.man: more detail on use of -part and -type switches
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.
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.
Paul Fox [Sat, 31 Jan 2015 01:14:59 +0000 (20:14 -0500)]
mhshow: simplify code -- the DONE status was adding no value
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().
Lyndon Nerenberg [Tue, 27 Jan 2015 23:17:20 +0000 (15:17 -0800)]
Add a note about new bindir option to mhparam.
Lyndon Nerenberg [Tue, 27 Jan 2015 23:07:19 +0000 (15:07 -0800)]
'mhparam bindir' now prints NMH's idea of $(bindir).
David Levine [Wed, 21 Jan 2015 01:10:56 +0000 (19:10 -0600)]
Added a line break to mhbuild man page because the
%docdir%/contrib/replaliases line caused format complaints from groff.
David Levine [Mon, 19 Jan 2015 03:31:20 +0000 (21:31 -0600)]
Merge remote-tracking branch 'origin' into convertargs
David Levine [Mon, 12 Jan 2015 01:10:23 +0000 (19:10 -0600)]
Fixed check of return value of show_content_aux().
David Levine [Mon, 12 Jan 2015 01:05:11 +0000 (19:05 -0600)]
Have show_content_aux2(), and therefore show_content_aux(), return
the status of the process used to show, instead of (usually) OK.
(cherry picked from commit
a70006bbdf676639961877b02a19e9e1f1d0ec78 )
David Levine [Mon, 12 Jan 2015 01:05:11 +0000 (19:05 -0600)]
Have show_content_aux2(), and therefore show_content_aux(), return
the status of the process used to show, instead of (usually) OK.
David Levine [Sat, 10 Jan 2015 23:23:54 +0000 (17:23 -0600)]
Fixed typo in mh-format.man page, which I wouldn't have noticed
if I didn't go back in to update its date.
David Levine [Sat, 10 Jan 2015 23:12:49 +0000 (17:12 -0600)]
Added multiply format function, requested by Norm.
David Levine [Thu, 8 Jan 2015 02:32:20 +0000 (20:32 -0600)]
Merge remote-tracking branch 'origin' into convertargs
David Levine [Thu, 8 Jan 2015 02:15:06 +0000 (20:15 -0600)]
Pass along arguments to calaccept(), etc., functions in replaliases.
David Levine [Thu, 8 Jan 2015 02:13:41 +0000 (20:13 -0600)]
Fix to commit
6b073f7b67a0afd64012ff7d00818ec1bd07b5f2 to properly
detect a Content-Type header in output from converted content.
David Levine [Wed, 7 Jan 2015 03:39:42 +0000 (21:39 -0600)]
Another fix to convertarg handling of multipart/related. Two,
actually. One is a simple bug fix, the other restricts concatenation
to text/plain, not just text, parts.
David Levine [Tue, 6 Jan 2015 04:32:00 +0000 (22:32 -0600)]
Specifically look for Content-Type header in converted content.
David Levine [Tue, 6 Jan 2015 01:10:33 +0000 (19:10 -0600)]
Fixed convertarg handling of text part in multipart/related.
David Levine [Sun, 4 Jan 2015 17:22:18 +0000 (11:22 -0600)]
Forgot to commit test-mhical.
David Levine [Sun, 4 Jan 2015 16:52:28 +0000 (10:52 -0600)]
Added mhical(1), to display, reply to, and cancel iCalendar (RFC 5545)
event requests.
David Levine [Sun, 4 Jan 2015 15:57:23 +0000 (09:57 -0600)]
Added yacc/bison support to configure.ac.
David Levine [Mon, 29 Dec 2014 13:44:38 +0000 (07:44 -0600)]
Added rtm alias.
David Levine [Mon, 29 Dec 2014 12:06:59 +0000 (06:06 -0600)]
More cleanup of the cp in tests/common.sh.in.
David Levine [Mon, 29 Dec 2014 04:15:04 +0000 (22:15 -0600)]
Added -h and -p options to replaliases. The -p argument can be useful
with improperly structured messages, such as those that use
multipart/related when they should have used multipart/alternative.
Alos, removed -editor mhbuild because it precludes use of WhatNow
attach.
David Levine [Mon, 29 Dec 2014 03:12:06 +0000 (21:12 -0600)]
Replaced explicit list of files to be copied in test/common.sh.in
with *. It wasn't trivial, per the comments in the file about
portability to posh, but close.
David Levine [Sun, 28 Dec 2014 21:51:36 +0000 (15:51 -0600)]
OK, this fixes the problem referenced in the last commit. It
removes the copy of the etc files only during make distcheck.
David Levine [Sun, 28 Dec 2014 19:42:35 +0000 (13:42 -0600)]
Reverted commit
a2b00e7053ca3be3d1389588580c71498222a267 . It caused
make check to pull etc files from where they were already installed,
not from the test directory.
David Levine [Sun, 28 Dec 2014 18:46:22 +0000 (12:46 -0600)]
Removed export of most of the variables in test/common.sh.in. The
test scripts source common.sh so they don't need them to be exported.
David Levine [Sun, 28 Dec 2014 18:32:14 +0000 (12:32 -0600)]
Removed copy of all of the etc files from test/common.sh.in.
Instead, for make distcheck, pass the location of the installed etc
directory via DISTCHECK_CONFIGURE_FLAGS, configure, and
TESTS_ENVIRONMENT to a new nmhetcdirinst variable. Outside of make
distcheck, nmhetcdir is valid by itself.
David Levine [Sun, 28 Dec 2014 18:12:40 +0000 (12:12 -0600)]
Rearranged the variable settings at the top of test/common.sh.in.
David Levine [Sat, 27 Dec 2014 17:25:48 +0000 (11:25 -0600)]
Changed direct access to etc files in a couple of tests to be the
installed (for the test) versions, not the copies made by common.sh.
David Levine [Sat, 27 Dec 2014 17:19:43 +0000 (11:19 -0600)]
Replaced nmhexecdir with nmhlibexecdir in test/common.sh.in (and
test-mhparam) for consisitency with the Makefile.
David Levine [Thu, 25 Dec 2014 17:10:52 +0000 (11:10 -0600)]
Added -fixtype switch to mhfixmsg(1). It ensures that each part of
a message has the correct MIME type shown in its Content-Type header.
David Levine [Thu, 25 Dec 2014 17:04:28 +0000 (11:04 -0600)]
Added const to char * arguments of uprf().
David Levine [Thu, 25 Dec 2014 06:05:36 +0000 (00:05 -0600)]
Added ct_str_type() and ct_str_subtype() functions, to translate
MIME type and subtype names to the the internal MIME parser codes.
David Levine [Thu, 25 Dec 2014 06:04:34 +0000 (00:04 -0600)]
Merged two adjacent if (verbose) blocks.
David Levine [Thu, 25 Dec 2014 00:25:43 +0000 (18:25 -0600)]
Fixed memory leak in mime_type(). get_file_info() always allocates
its return value.
David Levine [Wed, 24 Dec 2014 20:35:41 +0000 (14:35 -0600)]
Always initialize those two variables made static in commit
771706ac9fed2b902bd4d3ddccb15ee27b0f58ae in case they were
set in previous calls.
David Levine [Mon, 22 Dec 2014 01:50:58 +0000 (19:50 -0600)]
And removed another improperly copied comment.
David Levine [Mon, 22 Dec 2014 01:46:25 +0000 (19:46 -0600)]
Removed improperly copied comment from test-mhfixmsg.
David Levine [Mon, 22 Dec 2014 01:41:12 +0000 (19:41 -0600)]
In expand_pseudoheader(), set Content-Type to 7-bit for ASCII text.
David Levine [Sun, 21 Dec 2014 22:21:27 +0000 (16:21 -0600)]
Added mention of profile components that are described
in other man pages. Suggested by Michael Richardson.
David Levine [Sun, 21 Dec 2014 16:31:41 +0000 (10:31 -0600)]
Rearranged code to avoid "might be clobbered by longjmp" warnings from
gcc 4.9.2
David Levine [Sun, 21 Dec 2014 16:22:41 +0000 (10:22 -0600)]
Removed unnecessary #includes of setjmp.h.
David Levine [Sat, 20 Dec 2014 20:27:03 +0000 (14:27 -0600)]
Removed widths from mhbuild-convert-text/html lines that should
have been removed by commit
5ab36412b5fc49feb41fa816129c68fd6d946e8b .
David Levine [Sat, 20 Dec 2014 20:07:37 +0000 (14:07 -0600)]
Fixed use of text_plain_ct in mhbuildsbr.c so that it works with
multiple text parts. Found by Clang static analyzer.
David Levine [Sat, 20 Dec 2014 16:42:11 +0000 (10:42 -0600)]
Set COLUMNS in test-cd if using readline so that its wrapping doesn't
disturb the test output. The problem arose with a long workspace path.
David Levine [Sat, 20 Dec 2014 16:36:10 +0000 (10:36 -0600)]
posh didn't like use of file wildcard in common.sh.in.
David Levine [Sat, 20 Dec 2014 15:21:50 +0000 (09:21 -0600)]
Removed R from default PARINIT environment variable so that par(1)
does not consider an input word that is too long to be an error.
David Levine [Thu, 18 Dec 2014 02:43:37 +0000 (20:43 -0600)]
Fixed format engine output of negative number with 0 fill character.
Improper output was reported by Bob Carragher.
David Levine [Mon, 15 Dec 2014 04:11:00 +0000 (22:11 -0600)]
Added -convertargs switch to repl(1), to pass arguments to programs
specified in the user's profile or mhn.defaults to convert message
content.
David Levine [Sat, 13 Dec 2014 14:30:35 +0000 (08:30 -0600)]
Rearranged mhn.defaults.sh a bit: consolidated web-browser specific
settings and put most of the mhstore-store- directives in a here doc.
David Levine [Sat, 13 Dec 2014 14:04:13 +0000 (08:04 -0600)]
Clarified in repl(1) man page that -noformat is only the
default when no -filter switch is used.
David Levine [Sat, 6 Dec 2014 15:30:52 +0000 (09:30 -0600)]
Only remove extraneous trailing semicolon from Content-Type and
Content-Disposition headers because those are the only ones that
parse_mime() warns about, but it does appear on others.
Eric Gillespie [Sat, 6 Dec 2014 05:08:40 +0000 (21:08 -0800)]
Terminate last arg in proxy argv n popsbr.c:parse_proxy().
This bug seems to have existed since this code was born. I guess
others have been lucky?
Ken Hornstein [Tue, 2 Dec 2014 18:41:55 +0000 (13:41 -0500)]
Set all Content structure elements to NULL as they are free()'d; in a few
cases a content structure is reused and you can get into problems with
double-free()ing elements depending on your MIME composition content syntax.
Ken Hornstein [Tue, 2 Dec 2014 18:12:45 +0000 (13:12 -0500)]
Merge commit '
8206fbf ', due to my screwup of committing it on a detached
HEAD after a git-bisect.
Ken Hornstein [Tue, 2 Dec 2014 18:00:47 +0000 (13:00 -0500)]
Turns out those warnings for ali(1) actually happen when the prefix is
33 characters, not 35.
Ken Hornstein [Tue, 2 Dec 2014 14:35:02 +0000 (09:35 -0500)]
Explicitly depend on $(srcdir)/config/version.h rather than depend
on VPATH.
Paul Fox [Mon, 1 Dec 2014 18:32:26 +0000 (13:32 -0500)]
cast isspace() arg to unsigned char in previous commit
Paul Fox [Mon, 1 Dec 2014 13:57:44 +0000 (08:57 -0500)]
handle extraneous trailing ';' characters that are followed by whitespace
David Levine [Mon, 1 Dec 2014 03:35:19 +0000 (21:35 -0600)]
mhfixmsg now removes an extraneous trailing semicolon from header
parameter lists.
David Levine [Sun, 23 Nov 2014 01:00:32 +0000 (19:00 -0600)]
Use Nmh-Attach for attach header field name, and accept Attach.
David Levine [Sun, 23 Nov 2014 00:55:39 +0000 (18:55 -0600)]
Have to check for missing type parameter in message/related part
even though it's required according to RFC 2387 Sec. 3.1.
David Levine [Sun, 23 Nov 2014 00:54:48 +0000 (18:54 -0600)]
Expanded explanation of mhfixmsg return status in its man page.
David Levine [Fri, 21 Nov 2014 04:28:28 +0000 (22:28 -0600)]
Look at type of parent multipart/related when determining whether
a non-plain text part already has a text/plain sibling.
David Levine [Fri, 21 Nov 2014 04:27:58 +0000 (22:27 -0600)]
Added support for multipart/related to MIME parser.
David Levine [Fri, 21 Nov 2014 02:25:14 +0000 (20:25 -0600)]
Added some checks to mhfixmsg.c to avoid dereferecing null pointers
after a failed transformation.
David Levine [Fri, 21 Nov 2014 01:48:58 +0000 (19:48 -0600)]
Fixed double fclose() in InitMultiPart() and leaks introduced in
commit
5be8db81 .
Paul Fox [Thu, 20 Nov 2014 20:41:34 +0000 (15:41 -0500)]
prevent spurious errors when requesting specific message parts
no one should be reporting NOTOK for failure to display parts that
weren't actually requested. failure should be reserved for parts that
we really attempted to display.
(this fix is an extension of
c9794733 .)
David Levine [Thu, 20 Nov 2014 03:04:33 +0000 (21:04 -0600)]
Updated simple integration example in mhfixmsg(1) man page
and added return status values.
David Levine [Thu, 20 Nov 2014 02:17:45 +0000 (20:17 -0600)]
Updated test-mhfixmsg to support -[no]changecur.
David Levine [Thu, 20 Nov 2014 02:13:01 +0000 (20:13 -0600)]
Added -[no]changecur switches to mhfixmsg(1).
David Levine [Mon, 17 Nov 2014 00:13:47 +0000 (18:13 -0600)]
Updated test-repl to compare with new -help message.
David Levine [Sun, 16 Nov 2014 23:14:32 +0000 (17:14 -0600)]
Fixed repl help message to show "-[no]cc all|to|cc|me" instead of
different options for -cc and -nocc.
David Levine [Sun, 16 Nov 2014 23:10:52 +0000 (17:10 -0600)]
Fixed leak in content_charset(): if get_param() found the charset,
it returns a copy.
David Levine [Sat, 15 Nov 2014 16:20:42 +0000 (10:20 -0600)]
Moved mhstore declarations from uip/mhn.c, uip/mhstore.c, and
uip/mhstoresbr.c to h/mhparse.h.
David Levine [Sat, 15 Nov 2014 14:40:36 +0000 (08:40 -0600)]
Removed "If this draft originated on the local host, then" phrase
from mh-alias man page. Alias resolution applies no matter where
the draft originated.
David Levine [Sat, 8 Nov 2014 05:08:13 +0000 (23:08 -0600)]
Changed content_charset() to not cache, so the user can always, and
should, free the return value.
David Levine [Sat, 8 Nov 2014 04:46:17 +0000 (22:46 -0600)]
Cleaned up leaks from calls to content_charset() in mhfixmsg.
David Levine [Sat, 8 Nov 2014 04:42:34 +0000 (22:42 -0600)]
Added deallocation of cts to freects_done().
David Levine [Wed, 5 Nov 2014 03:47:13 +0000 (21:47 -0600)]
Fixed repl(1) man page to show "msg" instead of "msgs" because
it only allows reply to one message.
David Levine [Tue, 4 Nov 2014 23:04:30 +0000 (17:04 -0600)]
Fixed mlistfree() so that it doesn't dereference a free'd list node
in order to find the next node.
David Levine [Tue, 4 Nov 2014 23:00:28 +0000 (17:00 -0600)]
Fixed commit
6cc9e85e73ff6f6c67ae6e645d184bbf57ecc2f0 to properly
return other than the first mbox/address if there's a match in
getmymbox/getmyaddr.