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.
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.
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.
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.
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.
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.
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.
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.
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.)