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.
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).
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.
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).
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.)
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.
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.
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).
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.
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!
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.
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.
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.)
Paul Fox [Wed, 7 May 2014 23:36:56 +0000 (19:36 -0400)]
make scan_content() work correctly with content containing NULs
switched from fgets to getline for unambiguous reads in the face of
NUL bytes. added a checkfornuls flag, and use it to cause the correct
encoding when content-types of application or text contain NULs.
David Levine [Mon, 5 May 2014 02:51:52 +0000 (21:51 -0500)]
Replaced use of norm_charmap() in mhshow and mhfixmsg with
case-insensitive string comparison against the charset name.
norm_charmap() is intended for use with result of nl_langinfo(),
and didn't add much value here.
David Levine [Sun, 4 May 2014 14:03:33 +0000 (09:03 -0500)]
In mhshow, copy result of call to norm_charmap() and get_charset()
because they return a static buffer. Thanks to Alexander Zangerl
for tracking this down, when using an ISO-8859-1 locale.
Paul Fox [Thu, 24 Apr 2014 01:44:54 +0000 (21:44 -0400)]
mhshow: apply marker form to all part separators
the mhshow "-markform" format is now used for all part separators, not
just those being left out. the format now overloads the %(unseen)
function to indicate that the content of the part being marked has
been suppressed. the built-in default and example formats both make
use of this function.
if this is displayed using "mshow -part 2", in the presence of an
MHSHOW variable which _only_ describes a rule for displaying images,
then we don't want to get an error about how nothing in part 1 was
displayable.
Ken Hornstein [Sun, 20 Apr 2014 22:08:47 +0000 (18:08 -0400)]
Move clsfolds() before the call to context_save(); that is required
when using private sequences, since seq_save() only moves the sequence
information into the context structure; a subsequent call to context_save()
is required to actually write out the context file.