]> diplodocus.org Git - nmh/log
nmh
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 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 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 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 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 agoOnly remove extraneous trailing semicolon from Content-Type and
David Levine [Sat, 6 Dec 2014 15:30:52 +0000 (09:30 -0600)]
Only remove extraneous trailing semicolon from Content-Type and
Content-Disposition headers because those are the only ones that
parse_mime() warns about, but it does appear on others.

11 years agoTerminate last arg in proxy argv n popsbr.c:parse_proxy().
Eric Gillespie [Sat, 6 Dec 2014 05:08:40 +0000 (21:08 -0800)]
Terminate last arg in proxy argv n popsbr.c:parse_proxy().

This bug seems to have existed since this code was born.  I guess
others have been lucky?

11 years agoSet all Content structure elements to NULL as they are free()'d; in a few
Ken Hornstein [Tue, 2 Dec 2014 18:41:55 +0000 (13:41 -0500)]
Set all Content structure elements to NULL as they are free()'d; in a few
cases a content structure is reused and you can get into problems with
double-free()ing elements depending on your MIME composition content syntax.

11 years agoMerge commit '8206fbf', due to my screwup of committing it on a detached
Ken Hornstein [Tue, 2 Dec 2014 18:12:45 +0000 (13:12 -0500)]
Merge commit '8206fbf', due to my screwup of committing it on a detached
HEAD after a git-bisect.

11 years agoTurns out those warnings for ali(1) actually happen when the prefix is
Ken Hornstein [Tue, 2 Dec 2014 18:00:47 +0000 (13:00 -0500)]
Turns out those warnings for ali(1) actually happen when the prefix is
33 characters, not 35.

11 years agoExplicitly depend on $(srcdir)/config/version.h rather than depend
Ken Hornstein [Tue, 2 Dec 2014 14:35:02 +0000 (09:35 -0500)]
Explicitly depend on $(srcdir)/config/version.h rather than depend
on VPATH.

11 years agocast isspace() arg to unsigned char in previous commit
Paul Fox [Mon, 1 Dec 2014 18:32:26 +0000 (13:32 -0500)]
cast isspace() arg to unsigned char in previous commit

11 years agohandle extraneous trailing ';' characters that are followed by whitespace
Paul Fox [Mon, 1 Dec 2014 13:57:44 +0000 (08:57 -0500)]
handle extraneous trailing ';' characters that are followed by whitespace

11 years agomhfixmsg now removes an extraneous trailing semicolon from header
David Levine [Mon, 1 Dec 2014 03:35:19 +0000 (21:35 -0600)]
mhfixmsg now removes an extraneous trailing semicolon from header
parameter lists.

11 years agoUse Nmh-Attach for attach header field name, and accept Attach.
David Levine [Sun, 23 Nov 2014 01:00:32 +0000 (19:00 -0600)]
Use Nmh-Attach for attach header field name, and accept Attach.

11 years agoHave to check for missing type parameter in message/related part
David Levine [Sun, 23 Nov 2014 00:55:39 +0000 (18:55 -0600)]
Have to check for missing type parameter in message/related part
even though it's required according to RFC 2387 Sec. 3.1.

11 years agoExpanded explanation of mhfixmsg return status in its man page.
David Levine [Sun, 23 Nov 2014 00:54:48 +0000 (18:54 -0600)]
Expanded explanation of mhfixmsg return status in its man page.

11 years agoLook at type of parent multipart/related when determining whether
David Levine [Fri, 21 Nov 2014 04:28:28 +0000 (22:28 -0600)]
Look at type of parent multipart/related when determining whether
a non-plain text part already has a text/plain sibling.

11 years agoAdded support for multipart/related to MIME parser.
David Levine [Fri, 21 Nov 2014 04:27:58 +0000 (22:27 -0600)]
Added support for multipart/related to MIME parser.

11 years agoAdded some checks to mhfixmsg.c to avoid dereferecing null pointers
David Levine [Fri, 21 Nov 2014 02:25:14 +0000 (20:25 -0600)]
Added some checks to mhfixmsg.c to avoid dereferecing null pointers
after a failed transformation.

11 years agoFixed double fclose() in InitMultiPart() and leaks introduced in
David Levine [Fri, 21 Nov 2014 01:48:58 +0000 (19:48 -0600)]
Fixed double fclose() in InitMultiPart() and leaks introduced in
commit 5be8db81.

11 years agoprevent spurious errors when requesting specific message parts
Paul Fox [Thu, 20 Nov 2014 20:41:34 +0000 (15:41 -0500)]
prevent spurious errors when requesting specific message parts

no one should be reporting NOTOK for failure to display parts that
weren't actually requested.  failure should be reserved for parts that
we really attempted to display.

(this fix is an extension of c9794733.)

11 years agoUpdated simple integration example in mhfixmsg(1) man page
David Levine [Thu, 20 Nov 2014 03:04:33 +0000 (21:04 -0600)]
Updated simple integration example in mhfixmsg(1) man page
and added return status values.

11 years agoUpdated test-mhfixmsg to support -[no]changecur.
David Levine [Thu, 20 Nov 2014 02:17:45 +0000 (20:17 -0600)]
Updated test-mhfixmsg to support -[no]changecur.

11 years agoAdded -[no]changecur switches to mhfixmsg(1).
David Levine [Thu, 20 Nov 2014 02:13:01 +0000 (20:13 -0600)]
Added -[no]changecur switches to mhfixmsg(1).

11 years agoUpdated test-repl to compare with new -help message.
David Levine [Mon, 17 Nov 2014 00:13:47 +0000 (18:13 -0600)]
Updated test-repl to compare with new -help message.

11 years agoFixed repl help message to show "-[no]cc all|to|cc|me" instead of
David Levine [Sun, 16 Nov 2014 23:14:32 +0000 (17:14 -0600)]
Fixed repl help message to show "-[no]cc all|to|cc|me" instead of
different options for -cc and -nocc.

11 years agoFixed leak in content_charset(): if get_param() found the charset,
David Levine [Sun, 16 Nov 2014 23:10:52 +0000 (17:10 -0600)]
Fixed leak in content_charset():  if get_param() found the charset,
it returns a copy.

11 years agoMoved mhstore declarations from uip/mhn.c, uip/mhstore.c, and
David Levine [Sat, 15 Nov 2014 16:20:42 +0000 (10:20 -0600)]
Moved mhstore declarations from uip/mhn.c, uip/mhstore.c, and
uip/mhstoresbr.c to h/mhparse.h.

11 years agoRemoved "If this draft originated on the local host, then" phrase
David Levine [Sat, 15 Nov 2014 14:40:36 +0000 (08:40 -0600)]
Removed "If this draft originated on the local host, then" phrase
from mh-alias man page.  Alias resolution applies no matter where
the draft originated.

11 years agoChanged content_charset() to not cache, so the user can always, and
David Levine [Sat, 8 Nov 2014 05:08:13 +0000 (23:08 -0600)]
Changed content_charset() to not cache, so the user can always, and
should, free the return value.

11 years agoCleaned up leaks from calls to content_charset() in mhfixmsg.
David Levine [Sat, 8 Nov 2014 04:46:17 +0000 (22:46 -0600)]
Cleaned up leaks from calls to content_charset() in mhfixmsg.

11 years agoAdded deallocation of cts to freects_done().
David Levine [Sat, 8 Nov 2014 04:42:34 +0000 (22:42 -0600)]
Added deallocation of cts to freects_done().

11 years agoFixed repl(1) man page to show "msg" instead of "msgs" because
David Levine [Wed, 5 Nov 2014 03:47:13 +0000 (21:47 -0600)]
Fixed repl(1) man page to show "msg" instead of "msgs" because
it only allows reply to one message.

11 years agoFixed mlistfree() so that it doesn't dereference a free'd list node
David Levine [Tue, 4 Nov 2014 23:04:30 +0000 (17:04 -0600)]
Fixed mlistfree() so that it doesn't dereference a free'd list node
in order to find the next node.

11 years agoFixed commit 6cc9e85e73ff6f6c67ae6e645d184bbf57ecc2f0 to properly
David Levine [Tue, 4 Nov 2014 23:00:28 +0000 (17:00 -0600)]
Fixed commit 6cc9e85e73ff6f6c67ae6e645d184bbf57ecc2f0 to properly
return other than the first mbox/address if there's a match in
getmymbox/getmyaddr.

11 years agoFixed memory management in mhstore. The main problem was a double
David Levine [Thu, 30 Oct 2014 02:27:55 +0000 (21:27 -0500)]
Fixed memory management in mhstore.  The main problem was a double
free when both -file and -outfile switches were used on a MIME
message.

11 years agoAdded initial "MH-Profile-Version: 1.0\n" line to newly created
David Levine [Thu, 30 Oct 2014 00:37:18 +0000 (19:37 -0500)]
Added initial "MH-Profile-Version: 1.0\n" line to newly created
profiles.  The main purpose of this first line is to fool file(1).
Without it, if the first line of the profile is Path:, file 5.19
reports its type as message/news.  With it, it reports the type as
text/plain.

11 years agoRenamed getmymbox mh-format escape function to getmyaddr, and
David Levine [Tue, 28 Oct 2014 02:20:07 +0000 (21:20 -0500)]
Renamed getmymbox mh-format escape function to getmyaddr, and
added new getmymbox that returns the user's address with any
personal name.

11 years agoAdded getmymbox function escape.
David Levine [Sun, 26 Oct 2014 15:41:04 +0000 (10:41 -0500)]
Added getmymbox function escape.

11 years agoFixed memory leak in do_name() when multiple dates are parsed.
David Levine [Sun, 26 Oct 2014 01:41:55 +0000 (20:41 -0500)]
Fixed memory leak in do_name() when multiple dates are parsed.

11 years agoAdded free_fs(), corresponding to new_fs().
David Levine [Sun, 26 Oct 2014 01:38:20 +0000 (20:38 -0500)]
Added free_fs(), corresponding to new_fs().

11 years agoFixed dst format escape to return 1 instead of 16, to agree with its
David Levine [Sat, 25 Oct 2014 23:54:50 +0000 (18:54 -0500)]
Fixed dst format escape to return 1 instead of 16, to agree with its
documentation.

11 years agoAdded mhstore-store-text/html formatting string to mhn.defaults.
David Levine [Sat, 25 Oct 2014 04:25:58 +0000 (23:25 -0500)]
Added mhstore-store-text/html formatting string to mhn.defaults.

11 years agoFixed typo in mhstore man page.
David Levine [Sat, 25 Oct 2014 04:19:54 +0000 (23:19 -0500)]
Fixed typo in mhstore man page.

11 years agoReworked charstring_buffer_copy() to not use strdup() so that
David Levine [Sat, 25 Oct 2014 03:22:47 +0000 (22:22 -0500)]
Reworked charstring_buffer_copy() to not use strdup() so that
charstrings with null bytes can be supported.  Added
charstring_append_cstring().

11 years agoAdded mh_xcalloc().
David Levine [Sat, 11 Oct 2014 14:22:52 +0000 (09:22 -0500)]
Added mh_xcalloc().

11 years agoThe units of the zone format escape are minutes, not hours.
David Levine [Sat, 11 Oct 2014 14:17:14 +0000 (09:17 -0500)]
The units of the zone format escape are minutes, not hours.

11 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/nmh
Lyndon Nerenberg [Thu, 9 Oct 2014 02:13:19 +0000 (19:13 -0700)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/nmh

11 years agono-op to force check the buildbots.
Lyndon Nerenberg [Thu, 9 Oct 2014 02:12:28 +0000 (19:12 -0700)]
no-op to force check the buildbots.

11 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/nmh
Lyndon Nerenberg [Sun, 5 Oct 2014 19:32:20 +0000 (12:32 -0700)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/nmh

11 years agomhn.defaults: make fetch less agressive on FreeBSD.
Lyndon Nerenberg [Sun, 5 Oct 2014 19:28:56 +0000 (12:28 -0700)]
mhn.defaults: make fetch less agressive on FreeBSD.

Drop the -a flag to fetch.  Its retry logic has a bug where it will
go into an endless loop when trying to re-fetch an object behind
an https:// link when it is unable to validate the X.509 certificate
chain.

11 years agoUse "mhparam etcdir" instead of hard-coded etc in build_nmh.
David Levine [Sun, 5 Oct 2014 15:18:25 +0000 (10:18 -0500)]
Use "mhparam etcdir" instead of hard-coded etc in build_nmh.

11 years agoClean atags file as part of maintainer-clean.
Lyndon Nerenberg [Sun, 5 Oct 2014 08:50:59 +0000 (01:50 -0700)]
Clean atags file as part of maintainer-clean.

11 years agoAdd a missing option to mhn fetch command for FreeBSD.
Lyndon Nerenberg [Sun, 5 Oct 2014 08:27:56 +0000 (01:27 -0700)]
Add a missing option to mhn fetch command for FreeBSD.

I *always* forget the '-o -' to redirect to stdout :-P

11 years agoOn FreeBSD, use fetch(1) to retrieve external content through URLs.
Lyndon Nerenberg [Sun, 5 Oct 2014 08:20:56 +0000 (01:20 -0700)]
On FreeBSD, use fetch(1) to retrieve external content through URLs.

fetch(1) is part of the base system, so it's guaranteed to always be there.
And it is more likely to have been configured for any local site
customizations (local caches, proxies, etc).

11 years agoIf building from a non-master git branch, include the branch name in the version...
Lyndon Nerenberg [Sun, 5 Oct 2014 07:26:11 +0000 (00:26 -0700)]
If building from a non-master git branch, include the branch name in the version string.

11 years agoNew locations for config files and support binaries, and smarter default for install...
Lyndon Nerenberg [Sun, 5 Oct 2014 05:49:01 +0000 (22:49 -0700)]
New locations for config files and support binaries, and smarter default for install root directory.

The default locations for config files and back-end executables has
changed.

Config files have moved from ${sysconfdir} to ${sysconfdir}/nmh, and
the back-end programs from ${libdir} to ${libexecdir}/nmh.

The only user-visible change is the addition of a new mhparam(1)
component 'libexecdir', which replaces the previous 'libdir'.  User
scripts invoking 'mhparam libdir' will need an update.  'libdir'
has been kept around for the time being, to give people a chance
to update their scripts.  It returns the same value as 'libexecdir'.
'libdir' has been marked deprecated in the mhparam(1) manpage and
the release notes; it will be removed in a couple of releases.

In conjunction with this change there was an opportunity to do a
bit of Makefile cleanup.  The old 'auxexec' construct has been
replaced with a new scheme that leverages automake's templating.
The auxexec_* references have been replaced with nmhlibexec_* forms,
and a corresponding nmhlibexecdir variable defined as ${libexecdir}/nmh.

Likewise, etcdir has been replaced with nmhetcdir.

These name changes have percolated downstream to some extent, primarily
in the man pages and test scripts.

Finally, configure has been made a bit smarter about setting the
default ${prefix}.  If it finds an existing nmh installation, it
will set the default ${prefix} to match, falling back to /usr/local/nmh.
configure looks for an existing installation by searching $PATH for
a viable mhparam binary.

11 years agoFixed commit 2adafe760a9c45b417727a3f5d9481de26471a8b to not
David Levine [Sun, 5 Oct 2014 03:43:21 +0000 (22:43 -0500)]
Fixed commit 2adafe760a9c45b417727a3f5d9481de26471a8b to not
try to allocate a charstring_t of length INT_MAX with -width 0.

11 years agoSimplified test-mhl-flags a bit.
David Levine [Sun, 5 Oct 2014 03:17:08 +0000 (22:17 -0500)]
Simplified test-mhl-flags a bit.

11 years agoAdd a 'guide' file for acme(1).
Lyndon Nerenberg [Thu, 2 Oct 2014 00:20:38 +0000 (17:20 -0700)]
Add a 'guide' file for acme(1).

If we ever find more than one acme user working on the source,
the single-guide-file premise might need a review.

Ultimately, there should be a way for the configure script to
search for and import a personal guide file from the developer's
$HOME or some such.  The next person to come along can figure
that out.

11 years agogit: ignore top-level tags files
Lyndon Nerenberg [Wed, 1 Oct 2014 22:36:25 +0000 (15:36 -0700)]
git: ignore top-level tags files

atags is the output from a ctags variant that generates its
output in a format recognized by Plan 9's acme editor.
(ftp://orthanc.ca/unix/atags/ for details.)

11 years agoFreeBSD packages destination directory fixup.
Lyndon Nerenberg [Tue, 30 Sep 2014 05:42:28 +0000 (22:42 -0700)]
FreeBSD packages destination directory fixup.

If the ports collection is not installed, assume ports/packages
install under /usr/local.

Also, when querying <bsd.port.mk>, use the value of the $(LOCALBASE)
macro. ($(PREFIX) is for port-specific overrides of $(LOCALBASE).)

11 years agoFor FreeBSD builds, also search the ports tree for includes and libs.
Lyndon Nerenberg [Mon, 29 Sep 2014 22:52:18 +0000 (15:52 -0700)]
For FreeBSD builds, also search the ports tree for includes and libs.

11 years agoAdded checks of return value of fwrite() calls where missing.
David Levine [Mon, 15 Sep 2014 01:24:24 +0000 (20:24 -0500)]
Added checks of return value of fwrite() calls where missing.

11 years agoFixed formatting of rtrim/nortrim in mhl man page.
David Levine [Mon, 15 Sep 2014 00:31:43 +0000 (19:31 -0500)]
Fixed formatting of rtrim/nortrim in mhl man page.

11 years agoAn "rtrim" flag has been added to mhl to remove any trailing
David Levine [Mon, 15 Sep 2014 00:14:10 +0000 (19:14 -0500)]
An "rtrim" flag has been added to mhl to remove any trailing
whitespace from filtered text lines.  A corresponding "nortrim" flag
has also been added.

11 years agoIf a component has trailing whitespace, e.g., body:component="> ",
David Levine [Mon, 15 Sep 2014 00:04:21 +0000 (19:04 -0500)]
If a component has trailing whitespace, e.g., body:component="> ",
mhl now trims that whitespace off when filtering blank text lines.

11 years agoFixed all anomalies detected by clang static analyzer (with
David Levine [Sat, 13 Sep 2014 03:12:33 +0000 (22:12 -0500)]
Fixed all anomalies detected by clang static analyzer (with
default checkers on Linux).  One was notable:  there was a break
missing from a switch case in fmt_scan.c, which caused the result
of the sday function escape to be garbage.

11 years agoFix typo in man page
Ken Hornstein [Fri, 12 Sep 2014 19:06:52 +0000 (15:06 -0400)]
Fix typo in man page

11 years agoOn some platforms, -D_FORTIFY_SOURCE=2 warns about ignoring the
David Levine [Sun, 7 Sep 2014 14:56:21 +0000 (09:56 -0500)]
On some platforms, -D_FORTIFY_SOURCE=2 warns about ignoring the
return value from mbtowc() even when it is called to reset the
shift state.  So wrap that in an if statement with a null body.

11 years agoAdded -D_FORTIFY_SOURCE=2 now that the build is clean with it.
David Levine [Sun, 7 Sep 2014 14:18:20 +0000 (09:18 -0500)]
Added -D_FORTIFY_SOURCE=2 now that the build is clean with it.
Removed -Wno-unused-result because it shold no longer be necessary.
Adjusting all settings of CPPFLAGS to have consistent form.

11 years agoAdded a couple of new directories and a note about valgrind
David Levine [Sun, 7 Sep 2014 01:26:42 +0000 (20:26 -0500)]
Added a couple of new directories and a note about valgrind
warnings from debuginfo to README.developers.

11 years agoCheck return values of system calls in uip/ and test/ .c files, found
David Levine [Sat, 6 Sep 2014 13:00:52 +0000 (08:00 -0500)]
Check return values of system calls in uip/ and test/ .c files, found
with gcc's -D_FORTIFY_SOURCE=2.

11 years agoQuote "$SEARCHPATH" in mhn.defaults.sh to allow spaces, etc., in
David Levine [Sat, 6 Sep 2014 02:18:28 +0000 (21:18 -0500)]
Quote "$SEARCHPATH" in mhn.defaults.sh to allow spaces, etc., in
PATH components.

11 years agoDoubled size of buffers used by m_getfld(), scan, and fmttest to
David Levine [Tue, 2 Sep 2014 02:09:04 +0000 (21:09 -0500)]
Doubled size of buffers used by m_getfld(), scan, and fmttest to
8192, on any platform, so that -width 0 and -outsize max are
likely to include at least some part of the body of each message.

11 years agoFixed typo in mh-profile.man.
David Levine [Tue, 2 Sep 2014 01:27:33 +0000 (20:27 -0500)]
Fixed typo in mh-profile.man.

11 years agoDon't let scan() use too large a width (BUFSIZ for now) to prevent
David Levine [Tue, 2 Sep 2014 01:14:52 +0000 (20:14 -0500)]
Don't let scan() use too large a width (BUFSIZ for now) to prevent
allocating a huge output buffer.

11 years agoA value of 0 for the width switch of scan(1), inc(1), ap(1), dp(1),
David Levine [Sun, 31 Aug 2014 20:40:57 +0000 (15:40 -0500)]
A value of 0 for the width switch of scan(1), inc(1), ap(1), dp(1),
fmttest(1), and mhl(1) now means as many characters as the format
engine can produce [Bug #15274].  That amount is limited by internal
buffers.

11 years agoFixed read of body in fmttest to limit size to that of rbuf, if
David Levine [Sun, 31 Aug 2014 20:39:47 +0000 (15:39 -0500)]
Fixed read of body in fmttest to limit size to that of rbuf, if
smaller than outwidth, to avoid overrunning it.

11 years agofmt_scan() no longer subtracts 1 from the width. This has the effect
David Levine [Fri, 29 Aug 2014 13:50:51 +0000 (08:50 -0500)]
fmt_scan() no longer subtracts 1 from the width.  This has the effect
of no longer counting the trailing newline in the output of scan(1),
inc(1), and the other programs that rely on it.

11 years agoVery very rough cut at trying to parse email addresses with Bison.
Ken Hornstein [Fri, 29 Aug 2014 02:29:21 +0000 (22:29 -0400)]
Very very rough cut at trying to parse email addresses with Bison.

11 years agoCheck return values of system calls in several sbr .c files, found
David Levine [Tue, 26 Aug 2014 03:06:11 +0000 (22:06 -0500)]
Check return values of system calls in several sbr .c files, found
with gcc's -D_FORTIFY_SOURCE=2.  Updated checks added previously to
mhfixmsg.c to be consistent.

11 years agoMoved reverse_alternative_parts() from mhfixmsg.c to mhparse.c
David Levine [Tue, 26 Aug 2014 01:49:39 +0000 (20:49 -0500)]
Moved reverse_alternative_parts() from mhfixmsg.c to mhparse.c
and added declaration to mhparse.h.

11 years agoRemoved msh relics from scansbr.c, including a global.
David Levine [Tue, 26 Aug 2014 00:50:23 +0000 (19:50 -0500)]
Removed msh relics from scansbr.c, including a global.

11 years agoAdded size_t cast of another MB_CUR_MAX to silence the compiler
David Levine [Tue, 26 Aug 2014 00:29:34 +0000 (19:29 -0500)]
Added size_t cast of another MB_CUR_MAX to silence the compiler
on FreeBSD 9.

11 years agoAdded cast of MB_CUR_MAX to size_t to silence compiler warning on
David Levine [Mon, 25 Aug 2014 02:46:34 +0000 (21:46 -0500)]
Added cast of MB_CUR_MAX to size_t to silence compiler warning on
FreeBSD.

11 years agoDynamically allocate space for the output of fmt_scan(), using
David Levine [Mon, 25 Aug 2014 02:19:10 +0000 (21:19 -0500)]
Dynamically allocate space for the output of fmt_scan(), using
charstring_t, so a fixed sized output buffer is no longer needed.
Also got rid of scanl global.

11 years agoAdded const to last argument of trace_cb signature, it'll be
David Levine [Sun, 24 Aug 2014 17:06:40 +0000 (12:06 -0500)]
Added const to last argument of trace_cb signature, it'll be
needed for use with charstring.

11 years agoAdded charstring "class".
David Levine [Sun, 24 Aug 2014 13:23:55 +0000 (08:23 -0500)]
Added charstring "class".

11 years agoRefer to RFC 2046 instead of 1521 in mhlist.man.
David Levine [Wed, 20 Aug 2014 12:53:56 +0000 (07:53 -0500)]
Refer to RFC 2046 instead of 1521 in mhlist.man.