]>
diplodocus.org Git - nmh/log
David Levine [Sun, 12 Jun 2016 14:36:43 +0000 (10:36 -0400)]
Added const to arg of m_backup().
David Levine [Sun, 12 Jun 2016 14:35:47 +0000 (10:35 -0400)]
Added const to first arg of adios().
David Levine [Sun, 12 Jun 2016 14:05:16 +0000 (10:05 -0400)]
If parse_mime() fails and the -file switch was used, pass the input
message to it unchanged so that pipelines won't break.
(cherry picked from commit
564b5b785c7cc709f92a83afb547267ed7418f18 )
David Levine [Sun, 12 Jun 2016 14:05:16 +0000 (10:05 -0400)]
If parse_mime() fails and the -file switch was used, pass the input
message to it unchanged so that pipelines won't break.
David Levine [Mon, 30 May 2016 15:49:20 +0000 (11:49 -0400)]
Plugged leak in mh_oauth_cred_load().
David Levine [Mon, 30 May 2016 15:48:46 +0000 (11:48 -0400)]
Added free_fs() call to plug leak from fmt_compile().
David Levine [Mon, 30 May 2016 15:48:28 +0000 (11:48 -0400)]
Added free_fs() call to plug leak from fmt_compile().
klemens [Sun, 29 May 2016 12:39:05 +0000 (14:39 +0200)]
spelling-fixes ( code-comments in .c, .h. .y ... )
(cherry picked from commit
942561da2455ee50a1eb82c8c4f2bdb5e25133d1 )
klemens [Sun, 29 May 2016 12:37:11 +0000 (14:37 +0200)]
spelling-fixes ( docs, man, readme )
(cherry picked from commit
fa92642a21119eda8bfc961f8d5a8d3e9ee7d494 )
klemens [Sun, 29 May 2016 12:39:05 +0000 (14:39 +0200)]
spelling-fixes ( code-comments in .c, .h. .y ... )
klemens [Sun, 29 May 2016 12:37:11 +0000 (14:37 +0200)]
spelling-fixes ( docs, man, readme )
David Levine [Sun, 29 May 2016 13:40:12 +0000 (09:40 -0400)]
Added sendfrom to docs/contrib.
David Levine [Sun, 29 May 2016 13:39:36 +0000 (09:39 -0400)]
Added sendfrom to docs/contrib.
David Levine [Sat, 21 May 2016 13:15:56 +0000 (09:15 -0400)]
Added docdir to mhparam.
(cherry picked from commit
89d69fbd2ae1f9c8c989850ec7057814c655a727 )
David Levine [Sat, 21 May 2016 12:06:36 +0000 (08:06 -0400)]
Removed unnecessary memset on fmt_mnull: it gets initialized to
all 0's.
(cherry picked from commit
56c4ac49d7b8ad674c0a66e9999186bcb98bd048 )
Ken Hornstein [Wed, 18 May 2016 16:44:21 +0000 (12:44 -0400)]
Check to see if cross-directory links are supported; if they are not,
then don't run the refile -link test.
(cherry picked from commit
35fce21b692a6259138fc81caf13f4d07bb58da0 )
David Levine [Sat, 21 May 2016 13:15:56 +0000 (09:15 -0400)]
Added docdir to mhparam.
David Levine [Sat, 21 May 2016 12:06:36 +0000 (08:06 -0400)]
Removed unnecessary memset on fmt_mnull: it gets initialized to
all 0's.
Ken Hornstein [Wed, 18 May 2016 16:44:21 +0000 (12:44 -0400)]
Check to see if cross-directory links are supported; if they are not,
then don't run the refile -link test.
David Levine [Mon, 2 May 2016 16:55:31 +0000 (12:55 -0400)]
For slocal, changed default user, if -user switch isn't used, to be
the user part of the Local-Mailbox profile entry, if present, or the
current user. addr uses the same default. This allows addr
to contain a '.', which slocal did not allow before.
David Levine [Tue, 26 Apr 2016 02:20:39 +0000 (22:20 -0400)]
Added test of negative return code from jsmn_parse() to test-send.
David Levine [Tue, 26 Apr 2016 02:19:37 +0000 (22:19 -0400)]
Added test of empty authorization code to test-mhlogin.
David Levine [Tue, 26 Apr 2016 01:58:10 +0000 (21:58 -0400)]
Added explicit OATH_SUPPORT=1 to configure.ac when oauth support is
enabled, otherwise it didn't get set to 1.
Eric Gillespie [Mon, 25 Apr 2016 03:33:15 +0000 (03:33 +0000)]
Fix tests with oauth disabled.
David Levine [Mon, 25 Apr 2016 02:09:39 +0000 (22:09 -0400)]
Check for empty code.
David Levine [Mon, 25 Apr 2016 01:42:20 +0000 (21:42 -0400)]
Return false from parse_json() if jmsn_parse() returns a negative
(or zero, as it did before) value.
Eric Gillespie [Mon, 25 Apr 2016 01:23:04 +0000 (01:23 +0000)]
Improve oauth autoconf support.
- By default, enable OAuth if curl is found.
- If OAuth requested (--with-oauth), error if curl not found.
- If OAuth disabled (--without-oauth), don't enable it even if found.
- Sanity-check curl-config --version output so we don't send anything crazy in
our HTTP requests if curl-config changes.
Eric Gillespie [Wed, 13 Apr 2016 16:58:45 +0000 (16:58 +0000)]
Rename files to match renamed functions
Follow-up to commit
840b3f0e45a43b8378e88c66f004b2f186662e35
Eric Gillespie [Sun, 10 Apr 2016 18:46:52 +0000 (18:46 +0000)]
Fix mhlogin(1) title.
David Levine [Sun, 10 Apr 2016 15:42:29 +0000 (11:42 -0400)]
Added -user to mhlogin man page.
David Levine [Sat, 26 Mar 2016 22:59:31 +0000 (18:59 -0400)]
Added start_test() and finish_test() functions to test/common.sh.in.
See usage information in the (new) cleanup() function in that file.
This allow us to isolate test failures based on naming of individual
tests within a single test file. As part of this, added set -e to
setup_test(). This required minor updates to test/new/basic and
test/pick/test-stderr to conform. So, migrated test/new/test-basic
to start_test()/finish_test().
(cherry picked from commit
cd6133dd23422f92534328f768a322f63a5c6dfe )
David Levine [Sun, 10 Apr 2016 15:16:55 +0000 (11:16 -0400)]
Fix to commit
84932d0a96c79bfb2f0384ebab806dc51a35f600 to
insert blank line between header and content for non-text
content.
(cherry picked from commit
fe36a7ee2f4304fd3797443d4f2f950d6dc2475d )
David Levine [Sun, 10 Apr 2016 15:16:55 +0000 (11:16 -0400)]
Fix to commit
84932d0a96c79bfb2f0384ebab806dc51a35f600 to
insert blank line between header and content for non-text
content.
David Levine [Sun, 10 Apr 2016 15:15:42 +0000 (11:15 -0400)]
Quoted variables in trap so that distcheck doesn't trip over them if
not set.
David Levine [Sun, 10 Apr 2016 15:14:54 +0000 (11:14 -0400)]
Moved "const" to after "register" to silence compile warning fron gcc.
Eric Gillespie [Sun, 10 Apr 2016 06:19:19 +0000 (06:19 +0000)]
check curl_ctx->res_len > 0 not res_body != NULL
res_body is not a pointer and is never NULL
(Thanks clang!)
Eric Gillespie [Sun, 10 Apr 2016 06:17:35 +0000 (06:17 +0000)]
oops, pass int to m_getfld not size_t
Eric Gillespie [Sun, 10 Apr 2016 06:09:12 +0000 (23:09 -0700)]
support multiple oauth users; mhlogin now requires -user
Eric Gillespie [Sun, 10 Apr 2016 05:03:14 +0000 (05:03 +0000)]
plug some memory leaks, in success cases only
(staying clean at least on non-adios paths is not hard)
Eric Gillespie [Sun, 10 Apr 2016 04:53:34 +0000 (04:53 +0000)]
fix mhlogin -browser test
Eric Gillespie [Sun, 3 Apr 2016 08:23:11 +0000 (08:23 +0000)]
Rename and document functions that read from stdin.
- gans becomes read_switch
- getans becomes read_switch_multiword
- getans_via_readline becomes read_switch_multiword_via_readline
- getanswer becomes read_yes_or_no_if_tty
- install-mh.c geta becomes read_line
Eric Gillespie [Sun, 3 Apr 2016 01:32:23 +0000 (01:32 +0000)]
test mhlogin -browser
David Levine [Sun, 27 Mar 2016 16:00:16 +0000 (12:00 -0400)]
Don't call sm_auth_sasl() for XAUTH2 with -sasl. Instead,
call only sm_auth_xoauth2().
David Levine [Sat, 26 Mar 2016 23:09:50 +0000 (19:09 -0400)]
Added start_test()/finish_test() to README.developers.
David Levine [Sat, 26 Mar 2016 23:05:10 +0000 (19:05 -0400)]
Migrated the oauth tests to start_test()/finish_test() so that
they don't have any output on success, but do report the particular
test on failure.
David Levine [Sat, 26 Mar 2016 22:59:31 +0000 (18:59 -0400)]
Added start_test() and finish_test() functions to test/common.sh.in.
See usage information in the (new) cleanup() function in that file.
This allow us to isolate test failures based on naming of individual
tests within a single test file. As part of this, added set -e to
setup_test(). This required minor updates to test/new/basic and
test/pick/test-stderr to conform. So, migrated test/new/test-basic
to start_test()/finish_test().
David Levine [Fri, 25 Mar 2016 01:25:19 +0000 (21:25 -0400)]
Added -browser switch to mhlogin(1).
David Levine [Fri, 25 Mar 2016 00:24:15 +0000 (20:24 -0400)]
Merge remote-tracking branch 'origin' into xoauth
David Levine [Thu, 24 Mar 2016 23:57:15 +0000 (19:57 -0400)]
Changed minchars swit values for -[no]concat switches to show(1)
from negative to 0, so that they can be abbreviated and so that they
appear with -help. Added them to the man page, and fixed text that
was copied from mhshow(1) man page.
David Levine [Thu, 24 Mar 2016 23:55:58 +0000 (19:55 -0400)]
Use WIFXEXITED to check return status of system(), because
comparison with NOTOK wasn't valid.
David Levine [Thu, 24 Mar 2016 01:40:31 +0000 (21:40 -0400)]
Changed sign of minchars for the SASL-related switches from
negative to positive so the won't be hidden from help messages.
I think.
David Levine [Thu, 24 Mar 2016 00:41:46 +0000 (20:41 -0400)]
Merge remote-tracking branch 'origin' into xoauth
merge is necessary,
David Levine [Thu, 24 Mar 2016 00:25:32 +0000 (20:25 -0400)]
Replaced -oauth service switch with -saslmech xoauth2
-authservice service, because OAUTH2 is a SASL mechanism.
Lyndon Nerenberg [Mon, 21 Mar 2016 00:28:27 +0000 (17:28 -0700)]
Another pass at cleaning up (some of) the manpages.
This continues work I started a couple of years ago, but then got
derailed on. There are two main goals behind these updates:
1) replace some low-level troff constructs with more modern
man(7) facilities, and
2) adopt a more consistent visual style to the layout and
formatting of the manpages, particularly in reference to
typeset pages.
This time around I have updated README.manpages to describe the new
guidelines. They are mostly non-intrusive, and serve to clean up
a lot of visual clutter that has crept in over the years.
David Levine [Sat, 19 Mar 2016 14:15:43 +0000 (10:15 -0400)]
Added check of return value of write() to quash compiler warning.
Ken Hornstein [Sat, 19 Mar 2016 04:06:24 +0000 (00:06 -0400)]
Recover properly if the character conversion fails.
Ken Hornstein [Sat, 19 Mar 2016 04:04:56 +0000 (00:04 -0400)]
Fix substitution code so it uses the right pointer for the utf-8 test.
David Levine [Fri, 18 Mar 2016 12:30:21 +0000 (08:30 -0400)]
Merge remote-tracking branch 'origin' into xoauth
David Levine [Fri, 18 Mar 2016 02:05:54 +0000 (22:05 -0400)]
Have fix_boundary() return NOTOK if it couldn't fix a boundary,
so that mhfixmsg won't modify the message.
David Levine [Thu, 17 Mar 2016 01:32:48 +0000 (21:32 -0400)]
Added oauth support to whatnow.
David Levine [Sun, 13 Mar 2016 19:40:23 +0000 (15:40 -0400)]
Added oauth switch to whatnow.
David Levine [Sun, 13 Mar 2016 17:11:21 +0000 (13:11 -0400)]
Added use of local variable user to prevent compiler warning
when built without OAuth2 support.
David Levine [Sun, 13 Mar 2016 16:58:25 +0000 (12:58 -0400)]
Sort JSON output from oauth tests so that comparisons don't
depend on it being in a specific order. Also, clean up test
tmp files.
David Levine [Sun, 13 Mar 2016 16:57:18 +0000 (12:57 -0400)]
Set MH_VERSION, OAUTH_SUPPORT, and CURL_USER_AGENT in tests/common.sh.in
so that oauth tests can be run individually (not just via make check).
David Levine [Sun, 13 Mar 2016 15:00:05 +0000 (11:00 -0400)]
Added OAuth2 support to build_nmh.
David Levine [Sun, 13 Mar 2016 14:42:39 +0000 (10:42 -0400)]
Merge branch 'master' into xoauth
David Levine [Sat, 12 Mar 2016 18:25:36 +0000 (13:25 -0500)]
Have -nocrlflinebreaks apply to the message parts that -decodetypes
designates.
David Levine [Sat, 12 Mar 2016 15:41:03 +0000 (10:41 -0500)]
Added EXAMPLES and BUGS sections.
Eric Gillespie [Sat, 12 Mar 2016 05:15:46 +0000 (00:15 -0500)]
Implement the -reverse option to pick(1) to change the search order.
David Levine [Sat, 27 Feb 2016 16:44:51 +0000 (11:44 -0500)]
Updated date on mh-folders(5) man page.
David Levine [Sat, 27 Feb 2016 16:33:39 +0000 (11:33 -0500)]
Added application/ics to default list if types to decode.
Paul Fox [Thu, 25 Feb 2016 16:33:14 +0000 (11:33 -0500)]
mh-folders.man: note that folders should not be named numerically
David Levine [Thu, 25 Feb 2016 01:32:10 +0000 (20:32 -0500)]
Added -[no]crlflinebreaks switches to mhfixmsg(1).
David Levine [Sun, 21 Feb 2016 16:59:41 +0000 (11:59 -0500)]
Added check for successful decode of a different part with
attempted -decodetext of binary text to test-mhfixmsg.
David Levine [Sun, 21 Feb 2016 16:22:53 +0000 (11:22 -0500)]
Don't consider failure to build a text/plain part to be an error.
This allows mhfixmsg to succeed even if there isn't a suitable
mhfixmsg-format-text/subtype profile entry for every text part in
the message.
David Levine [Sat, 20 Feb 2016 18:41:52 +0000 (13:41 -0500)]
Added -decodetypes switch to mhfixmsg(1).
David Levine [Fri, 29 Jan 2016 02:16:43 +0000 (21:16 -0500)]
Add missing -infile switch name to mhfixmsg-format-text/calendar
rule in mhn.defaults.
David Levine [Sat, 23 Jan 2016 20:14:33 +0000 (15:14 -0500)]
mhical enhancement: If a datetime is missing the time, assume
midnight. If there is no end datetime (DTEND) and the DTSTART
doesn't contain a time, assume that the event is for the entire day.
Richard M Kreuter [Wed, 20 Jan 2016 02:39:11 +0000 (21:39 -0500)]
Set MH to the resolved, absolute pathname inside context_read() so
that exec'd children can find it.
Richard M Kreuter [Wed, 20 Jan 2016 02:19:16 +0000 (21:19 -0500)]
Added all of mhshow's documented switches to show's handling, on the
notion that nmh's pieces should know about each other.
David Levine [Wed, 20 Jan 2016 02:03:30 +0000 (21:03 -0500)]
Added mention of mhfixmsg -fixcte to error message for improper C-T-E in
multipart message. Thanks to Conrad Hughes for suggesting this.
David Levine [Mon, 30 Nov 2015 03:21:11 +0000 (22:21 -0500)]
Moved addition of -ansi -pedantic to CFLAGS with gcc from
configure.ac to docs/contrib/build_nmh, so that they're not
included by default with builds by users.
David Levine [Thu, 19 Nov 2015 20:27:49 +0000 (15:27 -0500)]
Allow a RRULE in an iCalendar request to not have an INTERVAL on its
yearly FREQ, because INTERVAL defaults to 1.
David Levine [Wed, 18 Nov 2015 23:35:59 +0000 (18:35 -0500)]
Remove any enclosing quotes from a timezone identifier in an
iCalendar event request. See comment added to format_datetime()
that says that I don't believe that RFC 5545 allows them to be
quoted. But Oliver Kiddle found them in the wild.
David Levine [Wed, 18 Nov 2015 23:02:43 +0000 (18:02 -0500)]
If format_datetime() returns null, store a copy of node->value on c->c_text
to prevent a double free().
Ken Hornstein [Sun, 23 Aug 2015 02:16:22 +0000 (22:16 -0400)]
If str == buffer, then do NOT do a strncpy(buffer, str). Many systems
this works, but on some systems it causes a SIGABRT. POSIX says the
behavior on overlapping copies with str*cpy() is officially undefined.
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.
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.
David Levine [Tue, 14 Jul 2015 02:32:36 +0000 (22:32 -0400)]
Unquoted addresses in mhshow and scan output. Suggested by
Anthony Bentley.
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.
Ken Hornstein [Fri, 20 Mar 2015 16:02:14 +0000 (12:02 -0400)]
Include a new valgrind warning suppression for MacOS X.
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.
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.
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.
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.
David Levine [Mon, 23 Feb 2015 03:21:40 +0000 (21:21 -0600)]
Merge remote-tracking branch 'origin/convertargs'
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.
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.
David Levine [Sat, 14 Feb 2015 04:22:21 +0000 (22:22 -0600)]
Removed m_chkids(), per suggestion of Marcin Cieslak.
David Levine [Sat, 14 Feb 2015 03:31:48 +0000 (21:31 -0600)]
Removed unnecessary #include of h/signals.h.