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.
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.
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.
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.
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 [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 [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 [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.
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 [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, 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.
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 [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.
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.