]> diplodocus.org Git - nmh/log
nmh
10 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.

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

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

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

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

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

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

10 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?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

10 years agoExposed a bunch of switches that are now documented.
David Levine [Sun, 11 Sep 2016 15:49:44 +0000 (11:49 -0400)]
Exposed a bunch of switches that are now documented.

10 years agoAdded Examples section to mhlogin man page.
David Levine [Sun, 11 Sep 2016 15:30:42 +0000 (11:30 -0400)]
Added Examples section to mhlogin man page.

10 years agoAdd a "file-nopermcheck" credential entry.
Ken Hornstein [Sun, 11 Sep 2016 04:41:18 +0000 (00:41 -0400)]
Add a "file-nopermcheck" credential entry.

10 years agoChange this so the MTS_SMTP is the default, to match the value
Ken Hornstein [Sun, 11 Sep 2016 04:05:25 +0000 (00:05 -0400)]
Change this so the MTS_SMTP is the default, to match the value
of mts_method and the original code.

10 years agoRemove the unused argument from mts_init() (as far as I can tell,
Ken Hornstein [Sun, 11 Sep 2016 04:01:28 +0000 (00:01 -0400)]
Remove the unused argument from mts_init() (as far as I can tell,
it has never been used, for anything).

10 years agoOnly get a write lock on the sequences file if we're performing a pack
Ken Hornstein [Thu, 8 Sep 2016 17:13:57 +0000 (13:13 -0400)]
Only get a write lock on the sequences file if we're performing a pack
operation.

10 years agoAdded some NMH_UNUSED's to prevent compile warnings without
David Levine [Tue, 6 Sep 2016 22:02:46 +0000 (18:02 -0400)]
Added some NMH_UNUSED's to prevent compile warnings without
OAUTH_SUPPORT.

10 years agoProtected call of mh_oauth_do_xoauth() with #ifdef OAUTH_SUPPORT to
David Levine [Tue, 6 Sep 2016 21:49:59 +0000 (17:49 -0400)]
Protected call of mh_oauth_do_xoauth() with #ifdef OAUTH_SUPPORT to
allow post(1) to link when configured without it.

10 years agoProtected use of setup_oauth_params() with #ifdef OAUTH_SUPPORT.
David Levine [Tue, 6 Sep 2016 21:36:16 +0000 (17:36 -0400)]
Protected use of setup_oauth_params() with #ifdef OAUTH_SUPPORT.

10 years agoUnder some circumstances, some version of MacOS X can return EPROTOTYPE
Ken Hornstein [Tue, 6 Sep 2016 19:32:28 +0000 (15:32 -0400)]
Under some circumstances, some version of MacOS X can return EPROTOTYPE
if you try to write to a connection that is being torn down.  Handle
that case.

10 years agoRemoved incorrect increment of read position pointer, which caused
David Levine [Tue, 6 Sep 2016 13:16:15 +0000 (09:16 -0400)]
Removed incorrect increment of read position pointer, which caused
first character of some very short (less than 4 characters) message
bodies to be dropped.  It seems that the message needed to start
with a "From " line to reveal the problem.

10 years agoMerge branch 'xoauth'
Ken Hornstein [Tue, 6 Sep 2016 00:32:03 +0000 (20:32 -0400)]
Merge branch 'xoauth'

10 years agoChange things so if -authservice wasn't given, throw an error.
Ken Hornstein [Tue, 6 Sep 2016 00:21:55 +0000 (20:21 -0400)]
Change things so if -authservice wasn't given, throw an error.
At the same time, improve the code so -authservice doesn't
have to be given before the other oauth flags.

10 years agoSwitch from our horrible awk script that parses the signal header file
Ken Hornstein [Mon, 5 Sep 2016 02:20:40 +0000 (22:20 -0400)]
Switch from our horrible awk script that parses the signal header file
to the POSIX function strsignal().

10 years agoFix up a few minor nits to make OAuth2 (finally!) work right in post(8).
Ken Hornstein [Mon, 5 Sep 2016 00:42:21 +0000 (20:42 -0400)]
Fix up a few minor nits to make OAuth2 (finally!) work right in post(8).
Change the tests to support the new error output.

10 years agoAdd new signal include file location for El Capitan. I am not sure
Ken Hornstein [Sun, 4 Sep 2016 03:46:45 +0000 (23:46 -0400)]
Add new signal include file location for El Capitan.  I am not sure
this is in general the right approach.

10 years agoAdded warning message on stderr if folder -nocreate is provided
David Levine [Mon, 29 Aug 2016 13:26:38 +0000 (09:26 -0400)]
Added warning message on stderr if folder -nocreate is provided
a non-existant folder.

(cherry picked from commit d51964a51fdc08d92dab9825a8357c9adba34aa7)

10 years agoAdded warning message on stderr if folder -nocreate is provided
David Levine [Mon, 29 Aug 2016 13:26:38 +0000 (09:26 -0400)]
Added warning message on stderr if folder -nocreate is provided
a non-existant folder.

10 years agoRemoved jsmn license from COPYRIGHT. In keeping what appears to
David Levine [Sun, 21 Aug 2016 17:04:59 +0000 (13:04 -0400)]
Removed jsmn license from COPYRIGHT.  In keeping what appears to
be standard practice, the COPYRIGHT file just contains the nmh
copyright.  We retain the jsmn license in thirdparty/jsmn/LICENSE.

10 years agoCheck result of setup_oauth_params() for != OK instead of non-zero.
David Levine [Sun, 21 Aug 2016 16:22:42 +0000 (12:22 -0400)]
Check result of setup_oauth_params() for != OK instead of non-zero.

10 years agoVery close, but it doesn't passes the tests just yet.
Ken Hornstein [Sun, 21 Aug 2016 04:39:36 +0000 (00:39 -0400)]
Very close, but it doesn't passes the tests just yet.

10 years agoRetrieve appropriate profile entries and pass them to post(8).
Ken Hornstein [Sat, 20 Aug 2016 05:18:13 +0000 (01:18 -0400)]
Retrieve appropriate profile entries and pass them to post(8).
Not quite working yet.

10 years agoStart of adding arguments for transmitting OAuth parameters to
Ken Hornstein [Wed, 17 Aug 2016 03:35:09 +0000 (23:35 -0400)]
Start of adding arguments for transmitting OAuth parameters to
post.

(cherry picked from commit 68246559a5087f3a3c13ef2a6240a7c18dd9c155)

10 years agoStart of adding arguments for transmitting OAuth parameters to
Ken Hornstein [Wed, 17 Aug 2016 03:35:09 +0000 (23:35 -0400)]
Start of adding arguments for transmitting OAuth parameters to
post.

10 years agoAdd $(ICONVLIB) to programs that need it.
Ken Hornstein [Mon, 15 Aug 2016 18:39:04 +0000 (14:39 -0400)]
Add $(ICONVLIB) to programs that need it.

(cherry picked from commit 8c9441dc98bb4ce98ae70528d5415d9f5507713e)

10 years agoAdd $(ICONVLIB) to programs that need it.
Ken Hornstein [Mon, 15 Aug 2016 18:39:04 +0000 (14:39 -0400)]
Add $(ICONVLIB) to programs that need it.

10 years agoCreate $MH_OBJ_DIR/test/testdir if it doesn't already exist. This
David Levine [Mon, 15 Aug 2016 14:58:33 +0000 (10:58 -0400)]
Create $MH_OBJ_DIR/test/testdir if it doesn't already exist.  This
allows a test to be run standalone, now that said directory must
exist before defining $MH_TEST_DIR.

(cherry picked from commit 0f53d91688c0fab28b900ad27a1610a755dea526)

10 years agoCreate $MH_OBJ_DIR/test/testdir if it doesn't already exist. This
David Levine [Mon, 15 Aug 2016 14:58:33 +0000 (10:58 -0400)]
Create $MH_OBJ_DIR/test/testdir if it doesn't already exist.  This
allows a test to be run standalone, now that said directory must
exist before defining $MH_TEST_DIR.

10 years agoPlug a couple of (harmless) memory leaks in mhfixmsg.
David Levine [Mon, 15 Aug 2016 14:31:43 +0000 (10:31 -0400)]
Plug a couple of (harmless) memory leaks in mhfixmsg.

(cherry picked from commit 58d22c00deb7bc9c771c5293079f6f89bc28274a)

10 years agoPlug a couple of (harmless) memory leaks in mhfixmsg.
David Levine [Mon, 15 Aug 2016 14:31:43 +0000 (10:31 -0400)]
Plug a couple of (harmless) memory leaks in mhfixmsg.

10 years agoHandle base64 decoding decoding of initial response for all AUTH
David Levine [Mon, 15 Aug 2016 00:45:43 +0000 (20:45 -0400)]
Handle base64 decoding decoding of initial response for all AUTH
mechanisms the same way, based on RFC 4954 spec.  Also, don't try
to decode = or * response.

(cherry picked from commit b3ebdfc56e7a0199a60d80f54872e86969d96933)

10 years agoHandle base64 decoding decoding of initial response for all AUTH
David Levine [Mon, 15 Aug 2016 00:45:43 +0000 (20:45 -0400)]
Handle base64 decoding decoding of initial response for all AUTH
mechanisms the same way, based on RFC 4954 spec.  Also, don't try
to decode = or * response.

10 years agoNewer versions of Automake want to include the test-driver script,
Ken Hornstein [Sun, 14 Aug 2016 17:26:59 +0000 (13:26 -0400)]
Newer versions of Automake want to include the test-driver script,
so make sure we ignore it.

(cherry picked from commit bd6f799b1d98c11b50a4121c9ac763bcf1b1b3fe)

10 years agoUse isascii() with isprint(), since using isprint() on
Ken Hornstein [Sun, 14 Aug 2016 17:25:51 +0000 (13:25 -0400)]
Use isascii() with isprint(), since using isprint() on
bytes > 127 is undefined.

(cherry picked from commit 7054379384884f0975c687ce9b2cd8c20e3f2c12)

10 years agoNewer versions of Automake want to include the test-driver script,
Ken Hornstein [Sun, 14 Aug 2016 17:26:59 +0000 (13:26 -0400)]
Newer versions of Automake want to include the test-driver script,
so make sure we ignore it.

10 years agoUse isascii() with isprint(), since using isprint() on
Ken Hornstein [Sun, 14 Aug 2016 17:25:51 +0000 (13:25 -0400)]
Use isascii() with isprint(), since using isprint() on
bytes > 127 is undefined.

10 years agoSet HOME in tests if unset, to avoid warning from w3m about not being
David Levine [Sun, 14 Aug 2016 17:11:50 +0000 (13:11 -0400)]
Set HOME in tests if unset, to avoid warning from w3m about not being
about to create config directory.

(cherry picked from commit 30a9c9b62fa92df289079080eb5ee57d2fda3951)

10 years agoSet HOME in tests if unset, to avoid warning from w3m about not being
David Levine [Sun, 14 Aug 2016 17:11:50 +0000 (13:11 -0400)]
Set HOME in tests if unset, to avoid warning from w3m about not being
about to create config directory.

10 years agoFixed typo in man page.
David Levine [Sun, 14 Aug 2016 15:04:07 +0000 (11:04 -0400)]
Fixed typo in man page.

10 years agoFixed a couple of typos in man pages.
David Levine [Sun, 14 Aug 2016 15:02:50 +0000 (11:02 -0400)]
Fixed a couple of typos in man pages.

10 years agoAttempt to decode base64-encoded strings in -snoop traffic.
David Levine [Sun, 14 Aug 2016 14:59:13 +0000 (10:59 -0400)]
Attempt to decode base64-encoded strings in -snoop traffic.

10 years agoAttempt to decode base64-encoded strings in -snoop traffic.
David Levine [Sun, 14 Aug 2016 14:57:51 +0000 (10:57 -0400)]
Attempt to decode base64-encoded strings in -snoop traffic.

10 years agoCanonicalize MH_TEST_DIR in TESTS_ENVIRONMENT.
David Levine [Wed, 10 Aug 2016 15:58:45 +0000 (11:58 -0400)]
Canonicalize MH_TEST_DIR in TESTS_ENVIRONMENT.

(cherry picked from commit 28c31eb83bf6113dd72182bb5f13c4da99372d9e)

10 years agoUse pwd -P to canonicalize MH_TEST_DIR.
David Levine [Wed, 10 Aug 2016 15:47:36 +0000 (11:47 -0400)]
Use pwd -P to canonicalize MH_TEST_DIR.

(cherry picked from commit 6f94c7d978b034d34319236e8a868a5b225605c0)

10 years agoAdded debug printouts.
David Levine [Wed, 10 Aug 2016 15:41:01 +0000 (11:41 -0400)]
Added debug printouts.

(cherry picked from commit 5d8bc1288d5bd672bfb81b347e4c7742fbe644d1)

10 years agoCanonicalized MH_TEST_DIR, and replaced use of `pwd` with it, to
David Levine [Wed, 10 Aug 2016 15:19:00 +0000 (11:19 -0400)]
Canonicalized MH_TEST_DIR, and replaced use of `pwd` with it, to
try to prevent test failures on fbsd10 test host.

(cherry picked from commit 1846c42228ff68f328cb046027bc7a03ec3ba596)

10 years agoCanonicalize MH_TEST_DIR in TESTS_ENVIRONMENT.
David Levine [Wed, 10 Aug 2016 15:58:45 +0000 (11:58 -0400)]
Canonicalize MH_TEST_DIR in TESTS_ENVIRONMENT.

10 years agoUse pwd -P to canonicalize MH_TEST_DIR.
David Levine [Wed, 10 Aug 2016 15:47:36 +0000 (11:47 -0400)]
Use pwd -P to canonicalize MH_TEST_DIR.

10 years agoAdded debug printouts.
David Levine [Wed, 10 Aug 2016 15:41:01 +0000 (11:41 -0400)]
Added debug printouts.

10 years agoCanonicalized MH_TEST_DIR, and replaced use of `pwd` with it, to
David Levine [Wed, 10 Aug 2016 15:19:00 +0000 (11:19 -0400)]
Canonicalized MH_TEST_DIR, and replaced use of `pwd` with it, to
try to prevent test failures on fbsd10 test host.

10 years agoFixed comments describing decodeBase64().
David Levine [Fri, 22 Jul 2016 14:08:24 +0000 (10:08 -0400)]
Fixed comments describing decodeBase64().

(cherry picked from commit 06b87ce464beb93a7929541c355edf580ccec023)

10 years agoFixed comments describing decodeBase64().
David Levine [Fri, 22 Jul 2016 14:08:24 +0000 (10:08 -0400)]
Fixed comments describing decodeBase64().

10 years agoFactored out base64 decoding code into decodeBase64().
David Levine [Thu, 21 Jul 2016 01:25:01 +0000 (21:25 -0400)]
Factored out base64 decoding code into decodeBase64().

(cherry picked from commit 522c66eae1a144e0631dfaa61f1632e341ea7ce6)

10 years agoMoved md5.c from uip to sbr.
David Levine [Thu, 21 Jul 2016 01:14:25 +0000 (21:14 -0400)]
Moved md5.c from uip to sbr.

(cherry picked from commit 98c792e2effa2656e4fce979d6f6eec44d64131c)

10 years agoFactored out base64 decoding code into decodeBase64().
David Levine [Thu, 21 Jul 2016 01:25:01 +0000 (21:25 -0400)]
Factored out base64 decoding code into decodeBase64().

10 years agoMoved md5.c from uip to sbr.
David Levine [Thu, 21 Jul 2016 01:14:25 +0000 (21:14 -0400)]
Moved md5.c from uip to sbr.

10 years agoUpdated send(1) man page to note that sendfrom looks in
David Levine [Fri, 8 Jul 2016 15:01:07 +0000 (11:01 -0400)]
Updated send(1) man page to note that sendfrom looks in
Envelope-From and Sender headers as well as the From header.

(cherry picked from commit b347135ed8e4c15c6562d7b3d7924bd9ef7f1589)

10 years agoUpdated send(1) man page to note that sendfrom looks in
David Levine [Fri, 8 Jul 2016 15:01:07 +0000 (11:01 -0400)]
Updated send(1) man page to note that sendfrom looks in
Envelope-From and Sender headers as well as the From header.

10 years agoMerge remote-tracking branch 'origin' into xoauth
David Levine [Fri, 8 Jul 2016 14:48:59 +0000 (10:48 -0400)]
Merge remote-tracking branch 'origin' into xoauth

10 years agoAdded Envelope-From and Sender support to sendfrom.
David Levine [Fri, 8 Jul 2016 14:35:52 +0000 (10:35 -0400)]
Added Envelope-From and Sender support to sendfrom.

10 years agoChanged addresses to use example.com.
David Levine [Fri, 8 Jul 2016 14:28:20 +0000 (10:28 -0400)]
Changed addresses to use example.com.

10 years agoexport MH_TEST_DIR so that test/dist/test-dist can be run standalone.
David Levine [Fri, 8 Jul 2016 13:59:58 +0000 (09:59 -0400)]
export MH_TEST_DIR so that test/dist/test-dist can be run standalone.

10 years agoMoved sendfrom code from contrib into send(1).
David Levine [Tue, 5 Jul 2016 16:10:05 +0000 (12:10 -0400)]
Moved sendfrom code from contrib into send(1).

10 years agoMoved sendfrom code from contrib into send(1).
David Levine [Tue, 5 Jul 2016 16:02:59 +0000 (12:02 -0400)]
Moved sendfrom code from contrib into send(1).

10 years agoAdded context_find_prefix().
David Levine [Tue, 5 Jul 2016 13:57:07 +0000 (09:57 -0400)]
Added context_find_prefix().

10 years agoAdded context_find_prefix().
David Levine [Mon, 4 Jul 2016 22:25:53 +0000 (18:25 -0400)]
Added context_find_prefix().

10 years agoWrapped code block of conditional statement with {}, so that the
David Levine [Sun, 26 Jun 2016 01:22:37 +0000 (21:22 -0400)]
Wrapped code block of conditional statement with {}, so that the
second statement is now included in the conditional.  Found by
gcc 6 -Wmisleading-indentation.

(cherry picked from commit 9626eb33ed5ff7c59776081e1a58a20a1eed96be)

10 years agoMoved free(cp) to right after last (and only) use of cp. The statement
David Levine [Sun, 26 Jun 2016 01:19:37 +0000 (21:19 -0400)]
Moved free(cp) to right after last (and only) use of cp.  The statement
was flagged by gcc 6 -Wmisleading-indentation.  In its original location,
it would not always have been called, resulting in leaked memory.

(cherry picked from commit 79f012b76eba04d50a36a4a37c57458a8d521434)

10 years agoFixed indentation to prevent warning from gcc 6 -Wmisleading-indentation.
David Levine [Sun, 26 Jun 2016 01:17:05 +0000 (21:17 -0400)]
Fixed indentation to prevent warning from gcc 6 -Wmisleading-indentation.

(cherry picked from commit a814c930041c1e238f1826b1ac9c46b67e4cfb70)

10 years agoWrapped code block of conditional statement with {}, so that the
David Levine [Sun, 26 Jun 2016 01:22:37 +0000 (21:22 -0400)]
Wrapped code block of conditional statement with {}, so that the
second statement is now included in the conditional.  Found by
gcc 6 -Wmisleading-indentation.

10 years agoMoved free(cp) to right after last (and only) use of cp. The statement
David Levine [Sun, 26 Jun 2016 01:19:37 +0000 (21:19 -0400)]
Moved free(cp) to right after last (and only) use of cp.  The statement
was flagged by gcc 6 -Wmisleading-indentation.  In its original location,
it would not always have been called, resulting in leaked memory.

10 years agoFixed indentation to prevent warning from gcc 6 -Wmisleading-indentation.
David Levine [Sun, 26 Jun 2016 01:17:05 +0000 (21:17 -0400)]
Fixed indentation to prevent warning from gcc 6 -Wmisleading-indentation.

10 years agoMerge remote-tracking branch 'origin' into xoauth
David Levine [Sun, 26 Jun 2016 01:16:36 +0000 (21:16 -0400)]
Merge remote-tracking branch 'origin' into xoauth

10 years agoAdded const to filename args of cpydata(). Then added const to some
David Levine [Sun, 12 Jun 2016 14:38:19 +0000 (10:38 -0400)]
Added const to filename args of cpydata().  Then added const to some
args in mhfixmsg.c.

(cherry picked from commit 9f7d48c36f01ba29974834cbcdc24e4c2e1f07d9)

10 years agoAdded const to arg of m_backup().
David Levine [Sun, 12 Jun 2016 14:36:43 +0000 (10:36 -0400)]
Added const to arg of m_backup().

(cherry picked from commit d42ab414c8bce17b6b437ef9ebfd194a8ac4111c)