David Levine [Tue, 11 Oct 2016 12:53:32 +0000 (08:53 -0400)]
Moved gcc warning options from AM_CFLAGS back to CFLAGS, to
make it easier for packagers to override. This is a partial
rollback of commit f7eb978bd395752d3d9037ea4436b8e2db41f135.
David Levine [Mon, 10 Oct 2016 13:54:51 +0000 (09:54 -0400)]
Changed test suite's require_locale() to set the locale that it
finds, and added upper case versions of locale names to each test.
This should allow the tests to succeed on old Solaris.
David Levine [Thu, 6 Oct 2016 22:01:50 +0000 (18:01 -0400)]
A better fix than e87f37c27828723317a71291e31b34f39ec09098, because
c_reqencoding should be set for text content in replies if we don't
want it to be encoded. Scan the text content to see if it is 7- or
8-bit, and set c_reqencoding accordingly.
David Levine [Thu, 6 Oct 2016 13:11:45 +0000 (09:11 -0400)]
Enable SMTP 8BITMIME for messages with 8-bit content:
1) In post, look for a Content-Transfer-Encoding header. It has to
be the header for the message, not any MIME parts. If found,
post trusts that it's correct. If there isn't one, post scans
the entire message body for any 8-bit bytes.
2) If the message body is 8-bit:
If the server supports 8BITMIME, enable it.
If the server doesn't support 8BITMIME, fail with a message to
user that they need to encode the message for 7-bit transport.
David Levine [Wed, 5 Oct 2016 01:24:10 +0000 (21:24 -0400)]
Enabled check for 8-bit content in all text parts, not just those
with no specified character set, so that a Content-Transfer-Encoding
header will be added if needed.
Ken Hornstein [Sun, 2 Oct 2016 05:47:15 +0000 (01:47 -0400)]
Move the read buffer shuffling to BEFORE where we call the network
read routines; otherwise we can end up calling the lower layers with
a length of zero, which messes everything up.
Also make sure we reshuffle our pointers around if that happens.
David Levine [Sat, 1 Oct 2016 18:37:27 +0000 (14:37 -0400)]
mhfixmsg now replaces RFC 2047 encoding with RFC 2231 encoding of
name and filename parameters in Content-Type and Content-Disposition
headers, respectively.
David Levine [Thu, 29 Sep 2016 19:13:05 +0000 (15:13 -0400)]
Welcome message enhancements:
1) Disable if Welcome: disable component is in profile.
2) If MHCONTEXT is set, only print the message if the context file
already has a Version: reference where the version is old.
Oliver Kiddle [Wed, 28 Sep 2016 07:58:54 +0000 (09:58 +0200)]
back out use of RFC 2047 decoding on the filename
The RFCs clearly state that an encoded word should not be used in
the MIME parameters and the scheme from RFC2231 should be used
instead. nmh supports that. Unfortunately, other mail clients,
in particular gmail and IBM/Lotus Notes, produce messages with
the invalid encoding.
David Levine [Tue, 27 Sep 2016 12:28:47 +0000 (08:28 -0400)]
Updated start_test() and finish_test() to not update the test name
if there was a test failure. run_test disables exit on non-zero
status, but does increment failed.
David Levine [Sat, 24 Sep 2016 21:08:01 +0000 (17:08 -0400)]
Replace profile-based hack to allow getname() to handle 8-bit
addresses with a global data-based hack. At least the global
data is hidden in addrsbr.c.
David Levine [Sat, 24 Sep 2016 14:42:58 +0000 (10:42 -0400)]
Added incompatible locale test to test/mhl/test-rfc6532. It's
a placeholder to show that 8-bit header field values aren't
properly handled if the locale is incompatible.
David Levine [Sat, 24 Sep 2016 14:42:58 +0000 (10:42 -0400)]
Added incompatible locale test to test/mhl/test-rfc6532. It's
a placeholder to show that 8-bit header field values aren't
properly handled if the locale is incompatible.
David Levine [Fri, 23 Sep 2016 15:55:20 +0000 (11:55 -0400)]
Added SMTPUTF8 (RFC 6531) support:
1) Allow 8-bit characters in addresses.
2) Disable RFC 2047 encoding of (all) header field bodies, via
mhbuild -headerencoding 8bit.
3) Have post enable it in the SMTP transaction.
4) If enabled, add the commands to the SMTP transaction
(MAIL FROM: <address> BODY=8BITMIME SMTPUTF8).
Some things may changed, such as the 8bit encoding algorithm name.
Ken Hornstein [Thu, 22 Sep 2016 23:24:50 +0000 (19:24 -0400)]
Whoops, turns out I originally ran this test with XOAUTH set. Fix the
output and make sure the common script unsets XOAUTH so this doesn't
happen again.