]> diplodocus.org Git - nmh/log
nmh
10 years agoAdd support for setting the environment variable MH_TEST_NOCLEANUP to
Ken Hornstein [Sun, 23 Aug 2015 02:14:41 +0000 (22:14 -0400)]
Add support for setting the environment variable MH_TEST_NOCLEANUP to
prevent a test from cleaning up the test working directory.

10 years agoAdd support for the -sendmail flag to send/post, to support changing the
Leonardo Taccari [Fri, 21 Aug 2015 17:26:53 +0000 (13:26 -0400)]
Add support for the -sendmail flag to send/post, to support changing the
sendmail executable.

10 years agoUnquoted addresses in mhshow and scan output. Suggested by
David Levine [Tue, 14 Jul 2015 02:32:36 +0000 (22:32 -0400)]
Unquoted addresses in mhshow and scan output.  Suggested by
Anthony Bentley.

11 years agoChange the reference to the valgrind suppression file from $MH_OBJ_DIR to
Ken Hornstein [Fri, 20 Mar 2015 16:09:54 +0000 (12:09 -0400)]
Change the reference to the valgrind suppression file from $MH_OBJ_DIR to
$srcdir so "make distcheck" works.

11 years agoInclude a new valgrind warning suppression for MacOS X.
Ken Hornstein [Fri, 20 Mar 2015 16:02:14 +0000 (12:02 -0400)]
Include a new valgrind warning suppression for MacOS X.

11 years agoMake sure the valgrind suppression file is honored, and add some extra
Alexander Zangerl [Fri, 20 Mar 2015 14:26:02 +0000 (10:26 -0400)]
Make sure the valgrind suppression file is honored, and add some extra
suppressions needed when running under the Debian fakeroot environment.

11 years agoFix error message to correctly report the program that failed to execute
Ken Hornstein [Tue, 17 Mar 2015 15:02:38 +0000 (11:02 -0400)]
Fix error message to correctly report the program that failed to execute
when doing HTML conversion.
Also, remove perl function prototypes as they are not considered best
practice.

11 years agoRearrange all callers of post(8) so that the filename is always last.
Ken Hornstein [Sat, 7 Mar 2015 03:58:58 +0000 (22:58 -0500)]
Rearrange all callers of post(8) so that the filename is always last.

11 years agomhparse.c: verify all MIME-Version: headers encountered
Paul Fox [Wed, 4 Mar 2015 18:10:38 +0000 (13:10 -0500)]
mhparse.c: verify all MIME-Version: headers encountered

in addition to verifying, silently ignore duplicate version headers.

11 years agoMerge remote-tracking branch 'origin/convertargs'
David Levine [Mon, 23 Feb 2015 03:21:40 +0000 (21:21 -0600)]
Merge remote-tracking branch 'origin/convertargs'

11 years agouse %l uniformly on all the text-mode browser display strings
Paul Fox [Sat, 14 Feb 2015 16:36:24 +0000 (11:36 -0500)]
use %l uniformly on all the text-mode browser display strings

otherwise behavior changes depending on which browser was present
when nmh is configured/installed.

11 years agoFilter converted text/html to remove blank lines and leading space
David Levine [Sat, 14 Feb 2015 05:30:03 +0000 (23:30 -0600)]
Filter converted text/html to remove blank lines and leading space
that lynx inserts.  Also, changed ISO-8859-1 to US-ASCII because it
is, so it doesn't need to be converted.

11 years agoRemoved m_chkids(), per suggestion of Marcin Cieslak.
David Levine [Sat, 14 Feb 2015 04:22:21 +0000 (22:22 -0600)]
Removed m_chkids(), per suggestion of Marcin Cieslak.

11 years agoRemoved unnecessary #include of h/signals.h.
David Levine [Sat, 14 Feb 2015 03:31:48 +0000 (21:31 -0600)]
Removed unnecessary #include of h/signals.h.

11 years agoRemoved #include of signal.h because it's in h/signals.h.
David Levine [Sat, 14 Feb 2015 03:30:41 +0000 (21:30 -0600)]
Removed #include of signal.h because it's in h/signals.h.

11 years agoReset done in inc_done() to prevent endless loop when setegid()
Marcin Cieslak [Sat, 14 Feb 2015 03:01:09 +0000 (21:01 -0600)]
Reset done in inc_done() to prevent endless loop when setegid()
fails (in which case adios() is called, which calls done()).

11 years agoThat didn't work, so removed offset.
David Levine [Fri, 13 Feb 2015 03:33:05 +0000 (21:33 -0600)]
That didn't work, so removed offset.

11 years agoUse +0000 isntead of -0000 offset because FreeBSD displays it that way.
David Levine [Fri, 13 Feb 2015 03:27:45 +0000 (21:27 -0600)]
Use +0000 isntead of -0000 offset because FreeBSD displays it that way.

11 years agoReplaced setgid() calls with setegid() so that it works with dot
Marcin Cieslak [Fri, 13 Feb 2015 03:09:26 +0000 (21:09 -0600)]
Replaced setgid() calls with setegid() so that it works with dot
locking on FreeBSD.  setegid() should be supported on modern POSIX
systems.

11 years agoAdded showmimeproc to test/common.sh.in so that test-show will test
David Levine [Fri, 13 Feb 2015 02:22:32 +0000 (20:22 -0600)]
Added showmimeproc to test/common.sh.in so that test-show will test
it in the workspace, not the user's installation.  Also added all of
the other procs defined in config/config.c that are currently unused,
just in case they some day are.

11 years agoRemoved a few more msh (MS_MSH and mshproc) and vmh (vmhproc) relics.
David Levine [Fri, 13 Feb 2015 02:03:11 +0000 (20:03 -0600)]
Removed a few more msh (MS_MSH and mshproc) and vmh (vmhproc) relics.

11 years agoReplaced individual assignment of array elements, one of which was
David Levine [Thu, 12 Feb 2015 03:38:51 +0000 (21:38 -0600)]
Replaced individual assignment of array elements, one of which was
out of range, with array initialization.

11 years agoFixed the error message in lockit() when it fails to create tmp file.
Marcin Cieslak [Tue, 10 Feb 2015 14:18:05 +0000 (14:18 +0000)]
Fixed the error message in lockit() when it fails to create tmp file.

11 years agoFixed "inc" to be installed setgid mail with dot locking. MAILGROUP=1
Marcin Cieslak [Tue, 10 Feb 2015 14:18:05 +0000 (14:18 +0000)]
Fixed "inc" to be installed setgid mail with dot locking.  MAILGROUP=1
was not set in the config.h because we no longer use "LOCKTYPE"
configure variable.

11 years agoupdate tests for new message separator header from mhshow
Paul Fox [Sun, 8 Feb 2015 20:13:31 +0000 (15:13 -0500)]
update tests for new message separator header from mhshow

also added test names to tests, in any file i touched

11 years agoupdate man pages for new mhshow message separator header
Paul Fox [Sun, 8 Feb 2015 21:06:44 +0000 (16:06 -0500)]
update man pages for new mhshow message separator header

11 years agoadd new message separator header to mhshow
Paul Fox [Sun, 8 Feb 2015 20:22:07 +0000 (15:22 -0500)]
add new message separator header to mhshow

new switches to mhshow (-headerform and -[no]header) control whether
and what is displayed before the display of every message's content.
the default separator looks like "[ Message folder:msg ]".  the
implementation parallels the -markform feature.

since mhshow is often started by show, show now passes the -[no]header
options through to mhshow.  (also, show no longer attempts to pass
such options through to cat (in the case of -noshowproc)).

11 years agofix typo in mh-format.man
Paul Fox [Fri, 6 Feb 2015 18:03:36 +0000 (13:03 -0500)]
fix typo in mh-format.man

11 years agoTest that show always shows message numbers.
Eric Gillespie [Thu, 5 Feb 2015 20:46:28 +0000 (12:46 -0800)]
Test that show always shows message numbers.

show shows message numbers in two different formats when showing one
non-MIME, multiple non-MIME messages, or one MIME message.

show does not show any message numbers when showing multiple messages
any of which is MIME.

This is not a new bug, just one that has bothered me since I started
using mhshow with 1.6.

11 years agotest/common.sh: allow giving individual tests a name
Paul Fox [Fri, 6 Feb 2015 16:57:58 +0000 (11:57 -0500)]
test/common.sh: allow giving individual tests a name

11 years agoman pages -- clarify what -part and -type do when used together
Paul Fox [Fri, 6 Feb 2015 16:32:44 +0000 (11:32 -0500)]
man pages -- clarify what -part and -type do when used together

11 years agoMerge remote-tracking branch 'origin' into convertargs
David Levine [Sun, 8 Feb 2015 15:23:34 +0000 (09:23 -0600)]
Merge remote-tracking branch 'origin' into convertargs

11 years agoAdded support to mhfixmsg -reformat for multipart/related. If it has
David Levine [Sun, 8 Feb 2015 15:21:13 +0000 (09:21 -0600)]
Added support to mhfixmsg -reformat for multipart/related.  If it has
only a single part that is not text/plain and can be converted to
text/plain, a text/plain part is added and the type of the part is
changed to multipart/alternative.  If the multipart/related has more
than one part but does not have a text/plain part, try to add one.

11 years agoFixed test-convert to work on Cygwin and other platforms that
David Levine [Thu, 5 Feb 2015 01:19:54 +0000 (19:19 -0600)]
Fixed test-convert to work on Cygwin and other platforms that
default to UTF-8 locale.

11 years agoMerge remote-tracking branch 'origin' into convertargs
David Levine [Thu, 5 Feb 2015 01:18:33 +0000 (19:18 -0600)]
Merge remote-tracking branch 'origin' into convertargs

11 years agoRemoved unused local variable from move_preferred_part().
David Levine [Thu, 5 Feb 2015 01:05:16 +0000 (19:05 -0600)]
Removed unused local variable from move_preferred_part().

11 years agopending-release-notes: add mhshow's "-prefer", and mh-format's %(kibi/kilo)
Paul Fox [Wed, 4 Feb 2015 23:52:53 +0000 (18:52 -0500)]
pending-release-notes: add mhshow's "-prefer", and mh-format's %(kibi/kilo)

11 years agotest-subpart: add mhlist and mhshow tests for -type/-part/-prefer
Paul Fox [Wed, 4 Feb 2015 19:44:36 +0000 (14:44 -0500)]
test-subpart: add mhlist and mhshow tests for -type/-part/-prefer

11 years agoupdate mhshow, mhlist, and mhstore man pages for -prefer switch
Paul Fox [Wed, 4 Feb 2015 17:07:27 +0000 (12:07 -0500)]
update mhshow, mhlist, and mhstore man pages for -prefer switch

11 years agoimplement -prefer, for multipart/alternative preferences
Paul Fox [Wed, 4 Feb 2015 02:55:41 +0000 (21:55 -0500)]
implement -prefer, for multipart/alternative preferences

11 years agomhshow.man: more detail on use of -part and -type switches
Paul Fox [Wed, 4 Feb 2015 04:03:46 +0000 (23:03 -0500)]
mhshow.man: more detail on use of -part and -type switches

11 years agomhshow: ensure that -part always shows every part requested
Paul Fox [Tue, 3 Feb 2015 17:39:53 +0000 (12:39 -0500)]
mhshow: ensure that -part always shows every part requested

previously, "mhshow -part 1 -part 1.3" would show 1.1 but not 1.3.

11 years agomhshow: fix display of alternatives after certain nested multiparts
Paul Fox [Sat, 31 Jan 2015 00:52:24 +0000 (19:52 -0500)]
mhshow: fix display of alternatives after certain nested multiparts

adjust return codes so that we now have a clear indication of whether
there was a hard error (NOTOK), a failure to display due to type
mismatch (DONE), or complete success (OK).  use those codes in
show_multi_internal() to decide whether we're finished with this
multipart or not.

prior to this change, it was impossible to show part 1.2 of a
message constructed like the following, because the disinction
between (the new, as described above) DONE and OK states was
lost while processing multipart/related part 1.1.
 msg part  type/subtype              size description
  28       multipart/mixed           1040
     1     multipart/alternative      623
     1.1   multipart/related          275
     1.1.1 text/html                  105
     1.2   text/plain                  33
     2     text/plain                  83

this fix is related to 9cc2510 and c9794733.  hopefully it's right
this time.

11 years agomhshow: simplify code -- the DONE status was adding no value
Paul Fox [Sat, 31 Jan 2015 01:14:59 +0000 (20:14 -0500)]
mhshow: simplify code -- the DONE status was adding no value

11 years agodrop the second argument to part_ok(), since it is always 1
Paul Fox [Sat, 31 Jan 2015 00:41:37 +0000 (19:41 -0500)]
drop the second argument to part_ok(), since it is always 1

the second argument hasn't been used since "historical" times.
also add some commentary to part_ok().

11 years agoAdd a note about new bindir option to mhparam.
Lyndon Nerenberg [Tue, 27 Jan 2015 23:17:20 +0000 (15:17 -0800)]
Add a note about new bindir option to mhparam.

11 years ago'mhparam bindir' now prints NMH's idea of $(bindir).
Lyndon Nerenberg [Tue, 27 Jan 2015 23:07:19 +0000 (15:07 -0800)]
'mhparam bindir' now prints NMH's idea of $(bindir).

11 years agoAdded a line break to mhbuild man page because the
David Levine [Wed, 21 Jan 2015 01:10:56 +0000 (19:10 -0600)]
Added a line break to mhbuild man page because the
%docdir%/contrib/replaliases line caused format complaints from groff.

11 years agoMerge remote-tracking branch 'origin' into convertargs
David Levine [Mon, 19 Jan 2015 03:31:20 +0000 (21:31 -0600)]
Merge remote-tracking branch 'origin' into convertargs

11 years agoFixed check of return value of show_content_aux().
David Levine [Mon, 12 Jan 2015 01:10:23 +0000 (19:10 -0600)]
Fixed check of return value of show_content_aux().

11 years agoHave show_content_aux2(), and therefore show_content_aux(), return
David Levine [Mon, 12 Jan 2015 01:05:11 +0000 (19:05 -0600)]
Have show_content_aux2(), and therefore show_content_aux(), return
the status of the process used to show, instead of (usually) OK.

(cherry picked from commit a70006bbdf676639961877b02a19e9e1f1d0ec78)

11 years agoHave show_content_aux2(), and therefore show_content_aux(), return
David Levine [Mon, 12 Jan 2015 01:05:11 +0000 (19:05 -0600)]
Have show_content_aux2(), and therefore show_content_aux(), return
the status of the process used to show, instead of (usually) OK.

11 years agoFixed typo in mh-format.man page, which I wouldn't have noticed
David Levine [Sat, 10 Jan 2015 23:23:54 +0000 (17:23 -0600)]
Fixed typo in mh-format.man page, which I wouldn't have noticed
if I didn't go back in to update its date.

11 years agoAdded multiply format function, requested by Norm.
David Levine [Sat, 10 Jan 2015 23:12:49 +0000 (17:12 -0600)]
Added multiply format function, requested by Norm.

11 years agoMerge remote-tracking branch 'origin' into convertargs
David Levine [Thu, 8 Jan 2015 02:32:20 +0000 (20:32 -0600)]
Merge remote-tracking branch 'origin' into convertargs

11 years agoPass along arguments to calaccept(), etc., functions in replaliases.
David Levine [Thu, 8 Jan 2015 02:15:06 +0000 (20:15 -0600)]
Pass along arguments to calaccept(), etc., functions in replaliases.

11 years agoFix to commit 6b073f7b67a0afd64012ff7d00818ec1bd07b5f2 to properly
David Levine [Thu, 8 Jan 2015 02:13:41 +0000 (20:13 -0600)]
Fix to commit 6b073f7b67a0afd64012ff7d00818ec1bd07b5f2 to properly
detect a Content-Type header in output from converted content.

11 years agoAnother fix to convertarg handling of multipart/related. Two,
David Levine [Wed, 7 Jan 2015 03:39:42 +0000 (21:39 -0600)]
Another fix to convertarg handling of multipart/related.  Two,
actually.  One is a simple bug fix, the other restricts concatenation
to text/plain, not just text, parts.

11 years agoSpecifically look for Content-Type header in converted content.
David Levine [Tue, 6 Jan 2015 04:32:00 +0000 (22:32 -0600)]
Specifically look for Content-Type header in converted content.

11 years agoFixed convertarg handling of text part in multipart/related.
David Levine [Tue, 6 Jan 2015 01:10:33 +0000 (19:10 -0600)]
Fixed convertarg handling of text part in multipart/related.

11 years agoForgot to commit test-mhical.
David Levine [Sun, 4 Jan 2015 17:22:18 +0000 (11:22 -0600)]
Forgot to commit test-mhical.

11 years agoAdded mhical(1), to display, reply to, and cancel iCalendar (RFC 5545)
David Levine [Sun, 4 Jan 2015 16:52:28 +0000 (10:52 -0600)]
Added mhical(1), to display, reply to, and cancel iCalendar (RFC 5545)
event requests.

11 years agoAdded yacc/bison support to configure.ac.
David Levine [Sun, 4 Jan 2015 15:57:23 +0000 (09:57 -0600)]
Added yacc/bison support to configure.ac.

11 years agoAdded rtm alias.
David Levine [Mon, 29 Dec 2014 13:44:38 +0000 (07:44 -0600)]
Added rtm alias.

11 years agoMore cleanup of the cp in tests/common.sh.in.
David Levine [Mon, 29 Dec 2014 12:06:59 +0000 (06:06 -0600)]
More cleanup of the cp in tests/common.sh.in.

11 years agoAdded -h and -p options to replaliases. The -p argument can be useful
David Levine [Mon, 29 Dec 2014 04:15:04 +0000 (22:15 -0600)]
Added -h and -p options to replaliases.  The -p argument can be useful
with improperly structured messages, such as those that use
multipart/related when they should have used multipart/alternative.
Alos, removed -editor mhbuild because it precludes use of WhatNow
attach.

11 years agoReplaced explicit list of files to be copied in test/common.sh.in
David Levine [Mon, 29 Dec 2014 03:12:06 +0000 (21:12 -0600)]
Replaced explicit list of files to be copied in test/common.sh.in
with *.  It wasn't trivial, per the comments in the file about
portability to posh, but close.

11 years agoOK, this fixes the problem referenced in the last commit. It
David Levine [Sun, 28 Dec 2014 21:51:36 +0000 (15:51 -0600)]
OK, this fixes the problem referenced in the last commit.  It
removes the copy of the etc files only during make distcheck.

11 years agoReverted commit a2b00e7053ca3be3d1389588580c71498222a267. It caused
David Levine [Sun, 28 Dec 2014 19:42:35 +0000 (13:42 -0600)]
Reverted commit a2b00e7053ca3be3d1389588580c71498222a267.  It caused
make check to pull etc files from where they were already installed,
not from the test directory.

11 years agoRemoved export of most of the variables in test/common.sh.in. The
David Levine [Sun, 28 Dec 2014 18:46:22 +0000 (12:46 -0600)]
Removed export of most of the variables in test/common.sh.in.  The
test scripts source common.sh so they don't need them to be exported.

11 years agoRemoved copy of all of the etc files from test/common.sh.in.
David Levine [Sun, 28 Dec 2014 18:32:14 +0000 (12:32 -0600)]
Removed copy of all of the etc files from test/common.sh.in.
Instead, for make distcheck, pass the location of the installed etc
directory via DISTCHECK_CONFIGURE_FLAGS, configure, and
TESTS_ENVIRONMENT to a new nmhetcdirinst variable.  Outside of make
distcheck, nmhetcdir is valid by itself.

11 years agoRearranged the variable settings at the top of test/common.sh.in.
David Levine [Sun, 28 Dec 2014 18:12:40 +0000 (12:12 -0600)]
Rearranged the variable settings at the top of test/common.sh.in.

11 years agoChanged direct access to etc files in a couple of tests to be the
David Levine [Sat, 27 Dec 2014 17:25:48 +0000 (11:25 -0600)]
Changed direct access to etc files in a couple of tests to be the
installed (for the test) versions, not the copies made by common.sh.

11 years agoReplaced nmhexecdir with nmhlibexecdir in test/common.sh.in (and
David Levine [Sat, 27 Dec 2014 17:19:43 +0000 (11:19 -0600)]
Replaced nmhexecdir with nmhlibexecdir in test/common.sh.in (and
test-mhparam) for consisitency with the Makefile.

11 years agoAdded -fixtype switch to mhfixmsg(1). It ensures that each part of
David Levine [Thu, 25 Dec 2014 17:10:52 +0000 (11:10 -0600)]
Added -fixtype switch to mhfixmsg(1).  It ensures that each part of
a message has the correct MIME type shown in its Content-Type header.

11 years agoAdded const to char * arguments of uprf().
David Levine [Thu, 25 Dec 2014 17:04:28 +0000 (11:04 -0600)]
Added const to char * arguments of uprf().

11 years agoAdded ct_str_type() and ct_str_subtype() functions, to translate
David Levine [Thu, 25 Dec 2014 06:05:36 +0000 (00:05 -0600)]
Added ct_str_type() and ct_str_subtype() functions, to translate
MIME type and subtype names to the the internal MIME parser codes.

11 years agoMerged two adjacent if (verbose) blocks.
David Levine [Thu, 25 Dec 2014 06:04:34 +0000 (00:04 -0600)]
Merged two adjacent if (verbose) blocks.

11 years agoFixed memory leak in mime_type(). get_file_info() always allocates
David Levine [Thu, 25 Dec 2014 00:25:43 +0000 (18:25 -0600)]
Fixed memory leak in mime_type().  get_file_info() always allocates
its return value.

11 years agoAlways initialize those two variables made static in commit
David Levine [Wed, 24 Dec 2014 20:35:41 +0000 (14:35 -0600)]
Always initialize those two variables made static in commit
771706ac9fed2b902bd4d3ddccb15ee27b0f58ae in case they were
set in previous calls.

11 years agoAnd removed another improperly copied comment.
David Levine [Mon, 22 Dec 2014 01:50:58 +0000 (19:50 -0600)]
And removed another improperly copied comment.

11 years agoRemoved improperly copied comment from test-mhfixmsg.
David Levine [Mon, 22 Dec 2014 01:46:25 +0000 (19:46 -0600)]
Removed improperly copied comment from test-mhfixmsg.

11 years agoIn expand_pseudoheader(), set Content-Type to 7-bit for ASCII text.
David Levine [Mon, 22 Dec 2014 01:41:12 +0000 (19:41 -0600)]
In expand_pseudoheader(), set Content-Type to 7-bit for ASCII text.

11 years agoAdded mention of profile components that are described
David Levine [Sun, 21 Dec 2014 22:21:27 +0000 (16:21 -0600)]
Added mention of profile components that are described
in other man pages.  Suggested by Michael Richardson.

11 years agoRearranged code to avoid "might be clobbered by longjmp" warnings from
David Levine [Sun, 21 Dec 2014 16:31:41 +0000 (10:31 -0600)]
Rearranged code to avoid "might be clobbered by longjmp" warnings from
gcc 4.9.2

11 years agoRemoved unnecessary #includes of setjmp.h.
David Levine [Sun, 21 Dec 2014 16:22:41 +0000 (10:22 -0600)]
Removed unnecessary #includes of setjmp.h.

11 years agoRemoved widths from mhbuild-convert-text/html lines that should
David Levine [Sat, 20 Dec 2014 20:27:03 +0000 (14:27 -0600)]
Removed widths from mhbuild-convert-text/html lines that should
have been removed by commit 5ab36412b5fc49feb41fa816129c68fd6d946e8b.

11 years agoFixed use of text_plain_ct in mhbuildsbr.c so that it works with
David Levine [Sat, 20 Dec 2014 20:07:37 +0000 (14:07 -0600)]
Fixed use of text_plain_ct in mhbuildsbr.c so that it works with
multiple text parts.  Found by Clang static analyzer.

11 years agoSet COLUMNS in test-cd if using readline so that its wrapping doesn't
David Levine [Sat, 20 Dec 2014 16:42:11 +0000 (10:42 -0600)]
Set COLUMNS in test-cd if using readline so that its wrapping doesn't
disturb the test output.  The problem arose with a long workspace path.

11 years agoposh didn't like use of file wildcard in common.sh.in.
David Levine [Sat, 20 Dec 2014 16:36:10 +0000 (10:36 -0600)]
posh didn't like use of file wildcard in common.sh.in.

11 years agoRemoved R from default PARINIT environment variable so that par(1)
David Levine [Sat, 20 Dec 2014 15:21:50 +0000 (09:21 -0600)]
Removed R from default PARINIT environment variable so that par(1)
does not consider an input word that is too long to be an error.

11 years agoFixed format engine output of negative number with 0 fill character.
David Levine [Thu, 18 Dec 2014 02:43:37 +0000 (20:43 -0600)]
Fixed format engine output of negative number with 0 fill character.
Improper output was reported by Bob Carragher.

11 years agoAdded -convertargs switch to repl(1), to pass arguments to programs
David Levine [Mon, 15 Dec 2014 04:11:00 +0000 (22:11 -0600)]
Added -convertargs switch to repl(1), to pass arguments to programs
specified in the user's profile or mhn.defaults to convert message
content.

11 years agoRearranged mhn.defaults.sh a bit: consolidated web-browser specific
David Levine [Sat, 13 Dec 2014 14:30:35 +0000 (08:30 -0600)]
Rearranged mhn.defaults.sh a bit:  consolidated web-browser specific
settings and put most of the mhstore-store- directives in a here doc.

11 years agoClarified in repl(1) man page that -noformat is only the
David Levine [Sat, 13 Dec 2014 14:04:13 +0000 (08:04 -0600)]
Clarified in repl(1) man page that -noformat is only the
default when no -filter switch is used.

11 years agoStrip carriage returns fakehttprequest logging.
Eric Gillespie [Tue, 9 Dec 2014 07:37:51 +0000 (23:37 -0800)]
Strip carriage returns fakehttprequest logging.

11 years agoNote curl dependencies for Linux and FreeBSD.
Eric Gillespie [Tue, 9 Dec 2014 07:29:07 +0000 (23:29 -0800)]
Note curl dependencies for Linux and FreeBSD.

11 years agoTeach mhparam about oauth support.
Eric Gillespie [Tue, 9 Dec 2014 07:26:27 +0000 (23:26 -0800)]
Teach mhparam about oauth support.

11 years agoImplement OAuth 2.0 [1] for XOAUTH2 in SMTP [2] and POP3 [3].
Eric Gillespie [Tue, 9 Dec 2014 07:20:01 +0000 (23:20 -0800)]
Implement OAuth 2.0 [1] for XOAUTH2 in SMTP [2] and POP3 [3].

Google defined XOAUTH2 for SMTP, and that's what we use here.  If other
providers implement XOAUTH2 or some similar OAuth-based SMTP authentication
protocol, it should be simple to extend this.

[1] https://tools.ietf.org/html/rfc6749
[2] https://developers.google.com/gmail/xoauth2_protocol
[3] http://googleappsdeveloper.blogspot.com/2014/10/updates-on-authentication-for-gmail.html

Technically, XOAUTH2 is a SASL auth mechanism, but the implementation is so
trivial, I can't justify the code complexity or additional dependency
requirement of using Cyrus SASL for this.  So it's completely separate.

Changes:

- New dependencies:

  - jsmn (JSON processing library) bundled directly rather than linked to as
    an external library because there is no clear winner among JSON
    libraries for C and this one is tiny

  - libcurl is nearly ubiquitous and too heavy-weight to bundle, so link to
    the library the user must install separately

- Add oauth.h / oauth.c which do almost all the work, with quite a bit of
  help from curl and jsmn.

- Add new mhlogin program to authorize nmh to use the Gmail account and
  store the access and refresh tokens.

- Add new user_agent global to version.c (version.sh); not too happy with
  such a generic name, but the others had no mh_ prefix or anything...

- Add XOAUTH2 support to:
  mts/smtp/smtp.c uip/post.c uip/send.c uip/popsbr.c uip/inc.c uip/msgchk.c

- Split duplicated serving code out of fakepop.c and fakesmtp.c to new
  server.c and also use that for new fakehttp.c.

- Add XOAUTH2 support to fakepop.c and fakesmtp.c.

11 years agoimport jsmn 86:19001fb4adb3
Eric Gillespie [Tue, 9 Dec 2014 05:47:58 +0000 (21:47 -0800)]
import jsmn 86:19001fb4adb3