]> diplodocus.org Git - nmh/log
nmh
9 years agomhfixmsg now replaces RFC 2047 encoding with RFC 2231 encoding of
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.

9 years agoCleaned up a bit, mostly in comments for each function.
David Levine [Sat, 1 Oct 2016 16:49:12 +0000 (12:49 -0400)]
Cleaned up a bit, mostly in comments for each function.

9 years agoSigh, the return value from SSL_get_error() isn't suitable to give
Ken Hornstein [Sat, 1 Oct 2016 05:02:34 +0000 (01:02 -0400)]
Sigh, the return value from SSL_get_error() isn't suitable to give
to ERR_get_error(), so use a different function to get the error.

9 years agoPrint even more errors.
Ken Hornstein [Sat, 1 Oct 2016 01:24:43 +0000 (21:24 -0400)]
Print even more errors.

9 years agoAdd -initialtls/-notls flags to msgchk.
Ken Hornstein [Fri, 30 Sep 2016 19:15:08 +0000 (15:15 -0400)]
Add -initialtls/-notls flags to msgchk.

9 years agoMake sure we retry if possible upon a TLS read, and give a more meaningful
Ken Hornstein [Fri, 30 Sep 2016 19:07:03 +0000 (15:07 -0400)]
Make sure we retry if possible upon a TLS read, and give a more meaningful
error if we can't.

9 years agoAdded --sysconfdir to nmh.cygport.
David Levine [Fri, 30 Sep 2016 14:35:06 +0000 (10:35 -0400)]
Added --sysconfdir to nmh.cygport.

9 years agoReplaced some hard-coded strings with variables in nmh.cygport.
David Levine [Fri, 30 Sep 2016 13:18:27 +0000 (09:18 -0400)]
Replaced some hard-coded strings with variables in nmh.cygport.

9 years agoFix typos and drop declaractions of 2 undefined functions.
Eric Gillespie [Fri, 30 Sep 2016 07:55:55 +0000 (00:55 -0700)]
Fix typos and drop declaractions of 2 undefined functions.

9 years agoback out use of RFC 2047 decoding on the filename
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.

9 years agoAdded start_test/finish_test.
David Levine [Tue, 27 Sep 2016 12:29:05 +0000 (08:29 -0400)]
Added start_test/finish_test.

9 years agoUpdated start_test() and finish_test() to not update the test name
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.

9 years agoDo RFC 2047 decoding on filename for mhstore
Oliver Kiddle [Mon, 26 Sep 2016 23:42:55 +0000 (01:42 +0200)]
Do RFC 2047 decoding on filename for mhstore

9 years agoReplaced use of GNU sed extension.
David Levine [Mon, 26 Sep 2016 20:50:38 +0000 (16:50 -0400)]
Replaced use of GNU sed extension.

9 years agoAdded debug statements to test-mhparam.
David Levine [Mon, 26 Sep 2016 19:41:22 +0000 (15:41 -0400)]
Added debug statements to test-mhparam.

9 years agoFixed typo in -help message.
David Levine [Mon, 26 Sep 2016 18:33:55 +0000 (14:33 -0400)]
Fixed typo in -help message.

9 years agoReworked BUGS section of nmh(7) man page, and added excerpt
David Levine [Mon, 26 Sep 2016 16:07:50 +0000 (12:07 -0400)]
Reworked BUGS section of nmh(7) man page, and added excerpt
to end of each -help message and to end of install-mh output.

9 years agoMerge remote-tracking branch 'origin' into smtputf8
David Levine [Mon, 26 Sep 2016 12:58:55 +0000 (08:58 -0400)]
Merge remote-tracking branch 'origin' into smtputf8

9 years agoAdded MH(7) man page, as an alias of nmh(7).
David Levine [Sun, 25 Sep 2016 16:58:05 +0000 (12:58 -0400)]
Added MH(7) man page, as an alias of nmh(7).

9 years agoAdded mention of replaliases to mh-mime(7) man page.
David Levine [Sun, 25 Sep 2016 16:18:42 +0000 (12:18 -0400)]
Added mention of replaliases to mh-mime(7) man page.

9 years agoMerge remote-tracking branch 'origin' into smtputf8
David Levine [Sun, 25 Sep 2016 13:28:05 +0000 (09:28 -0400)]
Merge remote-tracking branch 'origin' into smtputf8

9 years agoReplace profile-based hack to allow getname() to handle 8-bit
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.

9 years agoRemoved send and post -eai switches. Instead, post now enables
David Levine [Sat, 24 Sep 2016 21:01:32 +0000 (17:01 -0400)]
Removed send and post -eai switches.  Instead, post now enables
SMTPUTF8 if it finds any 8-bit characters in header field bodies.

9 years agoDisabled incompatible locale check because the output varies too
David Levine [Sat, 24 Sep 2016 16:21:40 +0000 (12:21 -0400)]
Disabled incompatible locale check because the output varies too
much between platforms.

(cherry picked from commit 38e17e1b8ba306ed6137b174f2f196d09d02816f)

9 years agoDisabled incompatible locale check because the output varies too
David Levine [Sat, 24 Sep 2016 16:21:40 +0000 (12:21 -0400)]
Disabled incompatible locale check because the output varies too
much between platforms.

9 years agoWrapped some variables and arguments to prevent compile warnings
David Levine [Sat, 24 Sep 2016 16:10:28 +0000 (12:10 -0400)]
Wrapped some variables and arguments to prevent compile warnings
when configured without SASL and OAUTH support.

9 years agoAdded incompatible locale test to test/mhl/test-rfc6532. It's
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.

(cherry picked from commit 2cfa2ea56602d3bb0465a46c0b144017b497b558)

9 years agoAdded incompatible locale test to test/mhl/test-rfc6532. It's
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.

9 years agoAdded descriptive/usage information to top of replaliases.
David Levine [Sat, 24 Sep 2016 13:44:39 +0000 (09:44 -0400)]
Added descriptive/usage information to top of replaliases.

9 years agoChange from an autoconf test for SSL_library_init to SSL_new,
Ken Hornstein [Sat, 24 Sep 2016 06:01:05 +0000 (02:01 -0400)]
Change from an autoconf test for SSL_library_init to SSL_new,
for compatibility with OpenSSL 1.1.0.

9 years agoImprove and update comments a bit, and also improve the error messages
Ken Hornstein [Sat, 24 Sep 2016 03:12:58 +0000 (23:12 -0400)]
Improve and update comments a bit, and also improve the error messages
when we don't have Cyrus-SASL support compiled in.

9 years agoSpecify that mhbuild -autoheaderencoding picks either base64 or q-p,
David Levine [Sat, 24 Sep 2016 02:13:04 +0000 (22:13 -0400)]
Specify that mhbuild -autoheaderencoding picks either base64 or q-p,
but not utf-8.

9 years agoAdd our sample localpostprox, and also pick up replaliases while we're
Ken Hornstein [Sat, 24 Sep 2016 02:04:44 +0000 (22:04 -0400)]
Add our sample localpostprox, and also pick up replaliases while we're
at it.

9 years agoRenamed mhbuild -headerencoding 8bit to utf-8.
David Levine [Sat, 24 Sep 2016 01:54:26 +0000 (21:54 -0400)]
Renamed mhbuild -headerencoding 8bit to utf-8.

9 years agoMake it so we always return the chosen mechanism, even if we aren't
Ken Hornstein [Fri, 23 Sep 2016 23:52:09 +0000 (19:52 -0400)]
Make it so we always return the chosen mechanism, even if we aren't
using the Cyrus SASL library; this makes XOAUTH2 work without
Cyrus-SASL.

9 years agoMissed removing SASLminc() from authservice switch.
Ken Hornstein [Fri, 23 Sep 2016 23:51:36 +0000 (19:51 -0400)]
Missed removing SASLminc() from authservice switch.

9 years agoSwitch to AM_DISTCHECK_CONFIGURE_FLAGS.
Ken Hornstein [Fri, 23 Sep 2016 23:30:21 +0000 (19:30 -0400)]
Switch to AM_DISTCHECK_CONFIGURE_FLAGS.

9 years agoMake the SASL flags work even without support for Cyrus-SASL.
Ken Hornstein [Fri, 23 Sep 2016 19:08:25 +0000 (15:08 -0400)]
Make the SASL flags work even without support for Cyrus-SASL.

9 years agoMove things around so you can still initialize netsec with SASL
Ken Hornstein [Fri, 23 Sep 2016 19:07:51 +0000 (15:07 -0400)]
Move things around so you can still initialize netsec with SASL
parameters even if you don't have Cyrus-SASL enabled.

9 years agoMove some of the SASL variables outside of the ifdef, so OAUTH
Ken Hornstein [Fri, 23 Sep 2016 18:48:50 +0000 (14:48 -0400)]
Move some of the SASL variables outside of the ifdef, so OAUTH
can make use of them.  Also, clean up some warnings.

9 years agoUpdate documentation a bit.
Ken Hornstein [Fri, 23 Sep 2016 18:22:29 +0000 (14:22 -0400)]
Update documentation a bit.

9 years agoWhoops, a typo from the last merge; when the one variable got
Ken Hornstein [Fri, 23 Sep 2016 18:21:23 +0000 (14:21 -0400)]
Whoops, a typo from the last merge; when the one variable got
reformatted continuation escapes weren't included.

9 years agoMerge branch 'pop-tls'
Ken Hornstein [Fri, 23 Sep 2016 18:14:26 +0000 (14:14 -0400)]
Merge branch 'pop-tls'

9 years agoDon't output snoop information when doing RETR or TOP.
Ken Hornstein [Fri, 23 Sep 2016 18:13:23 +0000 (14:13 -0400)]
Don't output snoop information when doing RETR or TOP.

9 years agoSwitch decodeBase64() second argument to an unsigned char **.
Ken Hornstein [Fri, 23 Sep 2016 18:00:59 +0000 (14:00 -0400)]
Switch decodeBase64() second argument to an unsigned char **.

9 years agoDon't always output a decoded SASL token; if it's a large binary blob, just
Ken Hornstein [Fri, 23 Sep 2016 17:59:52 +0000 (13:59 -0400)]
Don't always output a decoded SASL token; if it's a large binary blob, just
stick with the base64 output.

9 years agoAdded SMTPUTF8 (RFC 6531) support:
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.

9 years agoRearranged statements to avoid compile warning about mixed
David Levine [Fri, 23 Sep 2016 12:21:57 +0000 (08:21 -0400)]
Rearranged statements to avoid compile warning about mixed
declarations and code.

9 years agoFixed typo (NOTLSSW).
David Levine [Fri, 23 Sep 2016 12:20:27 +0000 (08:20 -0400)]
Fixed typo (NOTLSSW).

9 years agoGarbage collect the saslmaxssf flag, and update documentation for
Ken Hornstein [Fri, 23 Sep 2016 03:27:36 +0000 (23:27 -0400)]
Garbage collect the saslmaxssf flag, and update documentation for
new -initialtls flag and -notls flags for inc.

9 years agoForgot to reset the snoop callback one time.
Ken Hornstein [Fri, 23 Sep 2016 03:10:59 +0000 (23:10 -0400)]
Forgot to reset the snoop callback one time.

9 years agoFix some typos and warnings.
Ken Hornstein [Fri, 23 Sep 2016 01:26:39 +0000 (21:26 -0400)]
Fix some typos and warnings.

9 years agoSwitched to "server" instead of "client" for SASL remote hostname.
Ken Hornstein [Fri, 23 Sep 2016 00:01:34 +0000 (20:01 -0400)]
Switched to "server" instead of "client" for SASL remote hostname.

9 years agoGarbage collect unused code.
Ken Hornstein [Thu, 22 Sep 2016 23:31:57 +0000 (19:31 -0400)]
Garbage collect unused code.

9 years agoWhoops, turns out I originally ran this test with XOAUTH set. Fix the
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.

9 years agoChange the tests to make them work with the new program output
Ken Hornstein [Thu, 22 Sep 2016 23:12:36 +0000 (19:12 -0400)]
Change the tests to make them work with the new program output
and slight change in the interface.

9 years agoAdd error reporting for one case, and move around the return code
Ken Hornstein [Thu, 22 Sep 2016 23:12:12 +0000 (19:12 -0400)]
Add error reporting for one case, and move around the return code
in the SASL callback a bit.

9 years agoAdd the SASL callback; things work now!
Ken Hornstein [Thu, 22 Sep 2016 23:11:32 +0000 (19:11 -0400)]
Add the SASL callback; things work now!

9 years agoDisable the original call to BIO_flush() now that we're doing our
Ken Hornstein [Thu, 22 Sep 2016 23:10:23 +0000 (19:10 -0400)]
Disable the original call to BIO_flush() now that we're doing our
own buffering.

9 years agoI had forgotten that nesec_set_tls() has to be called AFTER the
Ken Hornstein [Thu, 22 Sep 2016 23:05:39 +0000 (19:05 -0400)]
I had forgotten that nesec_set_tls() has to be called AFTER the
descriptors are set.

9 years agoFixed test-mhfixmsg by using octal instead of hex bytes with
David Levine [Thu, 22 Sep 2016 18:08:10 +0000 (14:08 -0400)]
Fixed test-mhfixmsg by using octal instead of hex bytes with
printf(1).

9 years agoRemoved temporary debuggin printout.
David Levine [Thu, 22 Sep 2016 17:54:50 +0000 (13:54 -0400)]
Removed temporary debuggin printout.

9 years agoAdded start_test/finish_test.
David Levine [Thu, 22 Sep 2016 17:39:55 +0000 (13:39 -0400)]
Added start_test/finish_test.

9 years agoAdded temporary diagnostic printout.
David Levine [Thu, 22 Sep 2016 17:39:42 +0000 (13:39 -0400)]
Added temporary diagnostic printout.

9 years agoAllow -decodetext binary, though 8bit is still the default because
David Levine [Thu, 22 Sep 2016 17:07:32 +0000 (13:07 -0400)]
Allow -decodetext binary, though 8bit is still the default because
binary can produce messages that are not RFC 2045 compliant.

9 years agoSpecify full path to mhl in test because it might not be on PATH.
David Levine [Thu, 22 Sep 2016 12:24:49 +0000 (08:24 -0400)]
Specify full path to mhl in test because it might not be on PATH.

9 years agoAlright, things compile now, but don't link yet; need to write the
Ken Hornstein [Thu, 22 Sep 2016 04:05:13 +0000 (00:05 -0400)]
Alright, things compile now, but don't link yet; need to write the
SMTP sasl callback.

9 years agoOkay, fixed a few more things. Almost there?
Ken Hornstein [Thu, 22 Sep 2016 04:04:43 +0000 (00:04 -0400)]
Okay, fixed a few more things.  Almost there?

9 years agoMerge branch 'pop-tls' of git.sv.gnu.org:/srv/git/nmh into pop-tls
Ken Hornstein [Thu, 22 Sep 2016 03:33:29 +0000 (23:33 -0400)]
Merge branch 'pop-tls' of git.sv.gnu.org:/srv/git/nmh into pop-tls

9 years agoChange things so we can take two file descriptors, one for input
Ken Hornstein [Thu, 22 Sep 2016 03:32:11 +0000 (23:32 -0400)]
Change things so we can take two file descriptors, one for input
and one for output.

9 years agoOkay! Squashed a few bugs, now have POP OAuth tests working.
Ken Hornstein [Wed, 21 Sep 2016 20:51:21 +0000 (16:51 -0400)]
Okay!  Squashed a few bugs, now have POP OAuth tests working.

9 years agoFixed test-rfc6532: MIME-Version isn't ignored by mhl.headers.
David Levine [Wed, 21 Sep 2016 17:49:21 +0000 (13:49 -0400)]
Fixed test-rfc6532:  MIME-Version isn't ignored by mhl.headers.
Maybe it should be?

9 years agoAdded test/mhl/test-rfc6532.
David Levine [Wed, 21 Sep 2016 15:54:49 +0000 (11:54 -0400)]
Added test/mhl/test-rfc6532.

9 years agoAdd support for a base64-decoding snoop callback.
Ken Hornstein [Wed, 21 Sep 2016 04:06:52 +0000 (00:06 -0400)]
Add support for a base64-decoding snoop callback.

9 years agoGarbage-collect all of this unused code.
Ken Hornstein [Wed, 21 Sep 2016 03:30:51 +0000 (23:30 -0400)]
Garbage-collect all of this unused code.

9 years agoWe have OAauth working! But the tests don't work yet.
Ken Hornstein [Wed, 21 Sep 2016 02:11:25 +0000 (22:11 -0400)]
We have OAauth working!  But the tests don't work yet.

9 years agoShuffle some stuff around, change some prototypes, and modify the
Ken Hornstein [Wed, 21 Sep 2016 00:09:37 +0000 (20:09 -0400)]
Shuffle some stuff around, change some prototypes, and modify the
oauth code a bit to fit our new structure.

9 years agoPlugged memory leak in openBase64().
David Levine [Tue, 20 Sep 2016 16:23:04 +0000 (12:23 -0400)]
Plugged memory leak in openBase64().

9 years agoMaybe ... it works? Sort of! Needs more testing, and for me to finish
Ken Hornstein [Tue, 20 Sep 2016 03:29:39 +0000 (23:29 -0400)]
Maybe ... it works?  Sort of!  Needs more testing, and for me to finish
OAuth support.

9 years agoMore work, but not there just yet.
Ken Hornstein [Mon, 19 Sep 2016 23:59:40 +0000 (19:59 -0400)]
More work, but not there just yet.

9 years agoOkay, we're finally getting to implementation stage! Hopefully we'll be
Ken Hornstein [Mon, 19 Sep 2016 02:03:18 +0000 (22:03 -0400)]
Okay, we're finally getting to implementation stage!  Hopefully we'll be
able to make it all work with POP first, then SMTP.

9 years agoMoved LDFLAGS to AM_LDFLAGS.
David Levine [Sun, 18 Sep 2016 16:22:10 +0000 (12:22 -0400)]
Moved LDFLAGS to AM_LDFLAGS.

9 years agoMoved CFLAGS additions to AM_CFLAGS.
David Levine [Sun, 18 Sep 2016 14:29:17 +0000 (10:29 -0400)]
Moved CFLAGS additions to AM_CFLAGS.

9 years agoMoved restore of CFLAGS outside of AC_CHECK_HEADER, so that it's done
David Levine [Sun, 18 Sep 2016 13:57:06 +0000 (09:57 -0400)]
Moved restore of CFLAGS outside of AC_CHECK_HEADER, so that it's done
unconditionally.

9 years agoI think I've written all of these functions; now we just need to
Ken Hornstein [Sun, 18 Sep 2016 05:15:20 +0000 (01:15 -0400)]
I think I've written all of these functions; now we just need to
have everyone else use them.

9 years agoAdded AM_CPPFLAGS to CFLAGS that are used for curl checks, because
David Levine [Sat, 17 Sep 2016 21:11:23 +0000 (17:11 -0400)]
Added AM_CPPFLAGS to CFLAGS that are used for curl checks, because
they're needed on Cygwin.  (Without _GNU_SOURCE, sys/types.h doesn't
include sys/select.h.)  Also added AM_CFLAGS, which we don't currently
use but might in the future.

9 years agoUpdated Makefile.am to correspond to file replacement in commit
David Levine [Sat, 17 Sep 2016 14:15:11 +0000 (10:15 -0400)]
Updated Makefile.am to correspond to file replacement in commit
4a007bacfa67e69923b15500e2b2c3a6bcde541a.

9 years agoUpdated cygport script in preparation for nmh 1.7 release.
David Levine [Sat, 17 Sep 2016 14:08:22 +0000 (10:08 -0400)]
Updated cygport script in preparation for nmh 1.7 release.

9 years agoReplaced cygwin build script with cygport script.
David Levine [Sat, 17 Sep 2016 14:06:56 +0000 (10:06 -0400)]
Replaced cygwin build script with cygport script.

9 years agoAdded libcurl to Cygwin package requirements, if configured
David Levine [Sat, 17 Sep 2016 14:05:35 +0000 (10:05 -0400)]
Added libcurl to Cygwin package requirements, if configured
with --with-oauth.

9 years agoAdded oauth to mhparam examples.
David Levine [Fri, 16 Sep 2016 21:47:31 +0000 (17:47 -0400)]
Added oauth to mhparam examples.

9 years agoStill closer, but not quite there yet.
Ken Hornstein [Fri, 16 Sep 2016 19:59:27 +0000 (15:59 -0400)]
Still closer, but not quite there yet.

9 years agoMoved LFLAGS additions to AM_LFLAGS.
David Levine [Fri, 16 Sep 2016 16:08:55 +0000 (12:08 -0400)]
Moved LFLAGS additions to AM_LFLAGS.

9 years agoUse CPPFLAGS instead of AM_CPPFLAGS for FreeBSD additions.
David Levine [Fri, 16 Sep 2016 15:56:42 +0000 (11:56 -0400)]
Use CPPFLAGS instead of AM_CPPFLAGS for FreeBSD additions.
Otherwise, it will miss -liconv.  I think.

9 years agoCleaned up cppflags.m4 a bit and fixed its mode.
David Levine [Fri, 16 Sep 2016 15:15:45 +0000 (11:15 -0400)]
Cleaned up cppflags.m4 a bit and fixed its mode.

9 years agoMoved CPPFLAGS additions to AM_CPPFLAGS.
David Levine [Fri, 16 Sep 2016 12:28:18 +0000 (08:28 -0400)]
Moved CPPFLAGS additions to AM_CPPFLAGS.

9 years agoOkay, a bit closer.
Ken Hornstein [Fri, 16 Sep 2016 02:36:17 +0000 (22:36 -0400)]
Okay, a bit closer.

9 years agoAdded 2 second timeout to curl command in post() in oauth.c, for
David Levine [Fri, 16 Sep 2016 00:00:02 +0000 (20:00 -0400)]
Added 2 second timeout to curl command in post() in oauth.c, for
localhost requests only, because the default timeout on Cygwin is 5
minutes.

9 years agoAdded NMH_ADDL_CPPFLAGS macro in new m4/cppflags.m4, to remove
David Levine [Thu, 15 Sep 2016 22:58:14 +0000 (18:58 -0400)]
Added NMH_ADDL_CPPFLAGS macro in new m4/cppflags.m4, to remove
explicit OS dependencies when deciding whether -DGNU_SOURCE is
needed.  (Cygwin now needs it.)

9 years agoFleshed out some more, but we're not there just yet.
Ken Hornstein [Thu, 15 Sep 2016 20:00:07 +0000 (16:00 -0400)]
Fleshed out some more, but we're not there just yet.