]> diplodocus.org Git - nmh/log
nmh
13 years agoAdded tolower(), toupper(), and toascii() to
David Levine [Thu, 28 Feb 2013 01:31:31 +0000 (19:31 -0600)]
Added tolower(), toupper(), and toascii() to
gen-ctype-checked.c.

13 years agoAdded a handful of functions to the parser to allow access to
David Levine [Wed, 27 Feb 2013 01:23:58 +0000 (19:23 -0600)]
Added a handful of functions to the parser to allow access to
init functions and string representations of enum valus for
content types and encodings.

13 years agoAdded nmh_strcasestr() because POSIX doesn't have strcasestr().
David Levine [Wed, 27 Feb 2013 01:08:38 +0000 (19:08 -0600)]
Added nmh_strcasestr() because POSIX doesn't have strcasestr().

13 years agoSupport RFC 2231 language tags in RFC 2047 header strings.
Ken Hornstein [Tue, 26 Feb 2013 18:19:06 +0000 (13:19 -0500)]
Support RFC 2231 language tags in RFC 2047 header strings.

13 years agoAdded cpytrim() function. Unlike trimcpy(), it does not modify
David Levine [Tue, 26 Feb 2013 05:02:05 +0000 (23:02 -0600)]
Added cpytrim() function.  Unlike trimcpy(), it does not modify
its argument.

13 years agoAdded const qualifier to arguments of concat() and copy().
David Levine [Tue, 26 Feb 2013 04:46:00 +0000 (22:46 -0600)]
Added const qualifier to arguments of concat() and copy().

13 years agoAdded find_str() and rfind_str() to sbr/utils.c
David Levine [Mon, 25 Feb 2013 03:55:28 +0000 (21:55 -0600)]
Added find_str() and rfind_str() to sbr/utils.c

13 years agoAdded const qualifier to char * arguments of add(), addlist(),
David Levine [Mon, 25 Feb 2013 03:38:33 +0000 (21:38 -0600)]
Added const qualifier to char * arguments of add(), addlist(),
and folder_exists() in sbr/utils.{h,c}.

13 years agoAdd support for LS_UNQUOTE instruction.
Ken Hornstein [Fri, 22 Feb 2013 05:52:50 +0000 (00:52 -0500)]
Add support for LS_UNQUOTE instruction.

13 years agoFix the code to print out an unknown instruction. Wow, this never worked
Ken Hornstein [Fri, 22 Feb 2013 05:47:47 +0000 (00:47 -0500)]
Fix the code to print out an unknown instruction.  Wow, this never worked
back from the original fmtdump.

13 years agoWhoops, forgot a \ when adding fmttest.man to man_SRCS.
Ken Hornstein [Fri, 22 Feb 2013 04:56:02 +0000 (23:56 -0500)]
Whoops, forgot a \ when adding fmttest.man to man_SRCS.

13 years agoQuote the arguments to the .I macro so the manpage test doesn't complain.
Ken Hornstein [Fri, 22 Feb 2013 04:03:31 +0000 (23:03 -0500)]
Quote the arguments to the .I macro so the manpage test doesn't complain.

13 years agoDocument new fmttest program.
Ken Hornstein [Fri, 22 Feb 2013 03:55:41 +0000 (22:55 -0500)]
Document new fmttest program.

13 years agoFix a few issues resulting from m_getfld() API changes.
Ken Hornstein [Fri, 22 Feb 2013 03:55:23 +0000 (22:55 -0500)]
Fix a few issues resulting from m_getfld() API changes.

13 years agoMerge branch 'format-test'
Ken Hornstein [Fri, 22 Feb 2013 03:40:48 +0000 (22:40 -0500)]
Merge branch 'format-test'

13 years agoAdd a lot more text to the man page; it should be in reasonable shape now.
Ken Hornstein [Fri, 22 Feb 2013 03:38:18 +0000 (22:38 -0500)]
Add a lot more text to the man page; it should be in reasonable shape now.

13 years agoUpdate instruction output to be a bit more cleaner
Ken Hornstein [Fri, 22 Feb 2013 03:37:47 +0000 (22:37 -0500)]
Update instruction output to be a bit more cleaner

13 years agoFixed write8Bit() to use fread()/fwrite() instead of
David Levine [Fri, 22 Feb 2013 03:01:55 +0000 (21:01 -0600)]
Fixed write8Bit() to use fread()/fwrite() instead of
fgets()/fputs().

13 years agoFlesh this out so finally it's halfway useful.
Ken Hornstein [Thu, 21 Feb 2013 20:53:06 +0000 (15:53 -0500)]
Flesh this out so finally it's halfway useful.

13 years agoRearrange options a bit and support the -nodump flag. Also clean up how
Ken Hornstein [Thu, 21 Feb 2013 20:52:36 +0000 (15:52 -0500)]
Rearrange options a bit and support the -nodump flag.  Also clean up how
-raw mode works.

13 years agoBring this up to best practices.
Ken Hornstein [Thu, 21 Feb 2013 20:52:09 +0000 (15:52 -0500)]
Bring this up to best practices.

13 years agoMinor updates for fmttest man page.
Ken Hornstein [Thu, 21 Feb 2013 03:37:50 +0000 (22:37 -0500)]
Minor updates for fmttest man page.

13 years agoBasic format tracing support; seems to work!
Ken Hornstein [Wed, 20 Feb 2013 20:53:54 +0000 (15:53 -0500)]
Basic format tracing support; seems to work!

13 years agoSupport for the address duplication done by repl, and also clean up
Ken Hornstein [Wed, 20 Feb 2013 20:19:11 +0000 (15:19 -0500)]
Support for the address duplication done by repl, and also clean up
some stuff.

13 years agoSupport callbacks into the format engine. This is so we can add in proper
Ken Hornstein [Wed, 20 Feb 2013 17:01:05 +0000 (12:01 -0500)]
Support callbacks into the format engine.  This is so we can add in proper
hooks for %(formataddr), %(concataddr), and (eventually) tracing.

13 years agoMake generating the ChangeLog work if you're building a distribution from
Ken Hornstein [Wed, 20 Feb 2013 02:57:32 +0000 (21:57 -0500)]
Make generating the ChangeLog work if you're building a distribution from
an object directory.

13 years agoThe beginnings of a fmttest man page.
Ken Hornstein [Wed, 20 Feb 2013 02:54:14 +0000 (21:54 -0500)]
The beginnings of a fmttest man page.

13 years agoIn m_getfld.c, cast the returns of valid characters to
David Levine [Wed, 20 Feb 2013 01:45:25 +0000 (19:45 -0600)]
In m_getfld.c, cast the returns of valid characters to
unsigned char.  This differentiates them from EOF and matches
the behavior prior to the recent m_getfld() rework.  But that
behavior is very broken on 8-bit input.

13 years agoApply David Levine's fix from whomfile() to sendfile() as well.
Ken Hornstein [Tue, 19 Feb 2013 18:51:47 +0000 (13:51 -0500)]
Apply David Levine's fix from whomfile() to sendfile() as well.

13 years agoRemoved addition of whomproc to the vec array in whomfile()
David Levine [Tue, 19 Feb 2013 03:32:24 +0000 (21:32 -0600)]
Removed addition of whomproc to the vec array in whomfile()
now that argsplit() does it.

13 years agoAdded locking discussion to rcvstore(1) man page.
David Levine [Tue, 19 Feb 2013 03:24:29 +0000 (21:24 -0600)]
Added locking discussion to rcvstore(1) man page.

13 years agofmttest is actually starting to get useful now. Some changes were required
Ken Hornstein [Tue, 19 Feb 2013 01:51:46 +0000 (20:51 -0500)]
fmttest is actually starting to get useful now.  Some changes were required
to the format code to make this code cleaner.

13 years ago"RFC-2045 to RFC-2049" instead of "thru".
David Levine [Mon, 18 Feb 2013 04:04:51 +0000 (22:04 -0600)]
"RFC-2045 to RFC-2049" instead of "thru".

13 years agoWhen output_content() outputs a non-MIME message with no body,
David Levine [Sat, 16 Feb 2013 14:27:29 +0000 (08:27 -0600)]
When output_content() outputs a non-MIME message with no body,
suppress the newline after the headers.

13 years agoAdded mention of rcvstore(1) to inc(1) man page.
David Levine [Sat, 16 Feb 2013 14:23:10 +0000 (08:23 -0600)]
Added mention of rcvstore(1) to inc(1) man page.

13 years agoPlugged small memory leak in etcpath().
David Levine [Sat, 16 Feb 2013 14:21:10 +0000 (08:21 -0600)]
Plugged small memory leak in etcpath().

13 years agoIn InitMultiPart(), always set bogus_mp_content if boundaries
David Levine [Sat, 16 Feb 2013 14:19:45 +0000 (08:19 -0600)]
In InitMultiPart(), always set bogus_mp_content if boundaries
don't match.

13 years agoRemove dead UUCP address parsing code. Sadly, this is not the complete
Ken Hornstein [Sat, 16 Feb 2013 05:37:36 +0000 (00:37 -0500)]
Remove dead UUCP address parsing code.  Sadly, this is not the complete
removal of UUCP support, but it's a good start.

13 years agoSlightly more useful, but still more work to do.
Ken Hornstein [Sat, 16 Feb 2013 05:31:16 +0000 (00:31 -0500)]
Slightly more useful, but still more work to do.

13 years agoAdd more functionality to fmttest; it's starting to get semi-useful.
Ken Hornstein [Fri, 15 Feb 2013 20:58:21 +0000 (15:58 -0500)]
Add more functionality to fmttest; it's starting to get semi-useful.

13 years agoAdded a couple of global variables to mhparse.c to allow
David Levine [Fri, 15 Feb 2013 03:53:50 +0000 (21:53 -0600)]
Added a couple of global variables to mhparse.c to allow
suppression of the warning about bogus multipart content,
and detection of it.

13 years agoMore work on fmttest, but still plenty more to go.
Ken Hornstein [Thu, 14 Feb 2013 18:50:28 +0000 (13:50 -0500)]
More work on fmttest, but still plenty more to go.

13 years agoCorrect man page information for %(width) format instruction.
Ken Hornstein [Thu, 14 Feb 2013 18:49:54 +0000 (13:49 -0500)]
Correct man page information for %(width) format instruction.

13 years agoAdded support for multiple message/file arguments to
David Levine [Thu, 14 Feb 2013 03:11:59 +0000 (21:11 -0600)]
Added support for multiple message/file arguments to
rmmproc.message.id.  Added mention of it to rmm man page.

13 years agoClean up argument handling to fmttest, as a precursor to actually getting
Ken Hornstein [Wed, 13 Feb 2013 20:53:13 +0000 (15:53 -0500)]
Clean up argument handling to fmttest, as a precursor to actually getting
it done.

13 years agoRemove support for -mail, -saml, -send, and -soml switches in send
Ken Hornstein [Wed, 13 Feb 2013 19:42:50 +0000 (14:42 -0500)]
Remove support for -mail, -saml, -send, and -soml switches in send
and whatnow.  The code in post implementing these options was removed
as part of commit 537e02c38f4bb.

13 years agoConvert fmttest over to the new argument processing world order.
Ken Hornstein [Wed, 13 Feb 2013 19:24:11 +0000 (14:24 -0500)]
Convert fmttest over to the new argument processing world order.

13 years agoDocument argsplit changes in mh-profile man page.
Ken Hornstein [Wed, 13 Feb 2013 15:47:26 +0000 (10:47 -0500)]
Document argsplit changes in mh-profile man page.

13 years agoFixed typo in mhlist man page. Also removed sendfiles(1)
David Levine [Wed, 13 Feb 2013 04:03:54 +0000 (22:03 -0600)]
Fixed typo in mhlist man page.  Also removed sendfiles(1)
from its SEE ALSO list.

13 years agoRemove installproc from the test since we don't have it anymore.
Ken Hornstein [Wed, 13 Feb 2013 01:05:17 +0000 (20:05 -0500)]
Remove installproc from the test since we don't have it anymore.

13 years agoRemove "installproc" since it is no longer used.
Ken Hornstein [Tue, 12 Feb 2013 20:39:18 +0000 (15:39 -0500)]
Remove "installproc" since it is no longer used.

13 years agoFinal conversion to new argsplit() code.
Ken Hornstein [Tue, 12 Feb 2013 20:37:00 +0000 (15:37 -0500)]
Final conversion to new argsplit() code.

13 years agoAdd a new test for the MIME functionality in burst.
Ken Hornstein [Mon, 11 Feb 2013 20:57:31 +0000 (15:57 -0500)]
Add a new test for the MIME functionality in burst.

13 years agoMultipart parts might have content before the first subpart
David Levine [Mon, 11 Feb 2013 02:55:54 +0000 (20:55 -0600)]
Multipart parts might have content before the first subpart
and/or after the last subpart that hasn't been stored anywhere
else, so do that at the end of InitMultiPart(), and output it
in output_content().

13 years agoAdded etc/rmmproc.messageid, which shows how to try to move
David Levine [Mon, 11 Feb 2013 01:05:37 +0000 (19:05 -0600)]
Added etc/rmmproc.messageid, which shows how to try to move
a message or file to a file that's named based on Message-ID.

13 years agoMake burst(1) be able to burst MIME-formatted messages with message/rfc822
Ken Hornstein [Fri, 8 Feb 2013 20:46:31 +0000 (15:46 -0500)]
Make burst(1) be able to burst MIME-formatted messages with message/rfc822
parts in them.

13 years agoCreate a central prototype for free_content().
Ken Hornstein [Fri, 8 Feb 2013 18:02:00 +0000 (13:02 -0500)]
Create a central prototype for free_content().

13 years agoMore conversion to argsplit().
Ken Hornstein [Thu, 7 Feb 2013 19:34:12 +0000 (14:34 -0500)]
More conversion to argsplit().

13 years agoMove etc/gen-ctype-checked into an Automake primary so dependency information
Ken Hornstein [Thu, 7 Feb 2013 16:31:45 +0000 (11:31 -0500)]
Move etc/gen-ctype-checked into an Automake primary so dependency information
can properly be recorded for it.

13 years agoWhen debugging is enabled, replace the ctype functions with
David Levine [Thu, 7 Feb 2013 02:39:06 +0000 (20:39 -0600)]
When debugging is enabled, replace the ctype functions with
macros that index into arrays.  This allows the compiler to
catch use of char, instead of unsigned char, arguments to
those functions.  gcc uses -Wchar-subscripts, which is enabled
with the -Wall that we use by default.  Thanks to Tom Lane for
suggesting this approach.

This feature can be enabled by undef'ing NDEBUG in config.h.
configure --enable-debug does that.  We can now use the same
mechanism to enable and disable assert(3), too.

13 years agoAdded global variable skip_mp_cte_check to turn off that check
David Levine [Thu, 7 Feb 2013 02:31:18 +0000 (20:31 -0600)]
Added global variable skip_mp_cte_check to turn off that check
for incorrect encoding of multipart messages in InitMultiPart().

13 years agooutput_content() assumed that ci->ci_values[0] was the boundary,
David Levine [Thu, 7 Feb 2013 02:28:29 +0000 (20:28 -0600)]
output_content() assumed that ci->ci_values[0] was the boundary,
but that's not always the case.  Added search for the boundary
in ci->ci_attrs[].

13 years agoMore work to convert programs over to the use of argsplit().
Ken Hornstein [Wed, 6 Feb 2013 20:51:04 +0000 (15:51 -0500)]
More work to convert programs over to the use of argsplit().

13 years agoMake sure these stdarg lists are properly terminated with pointer-context
Ken Hornstein [Wed, 6 Feb 2013 16:12:56 +0000 (11:12 -0500)]
Make sure these stdarg lists are properly terminated with pointer-context
NULLs.

13 years agoRemove warning suppression we no longer need. Hooray!
Ken Hornstein [Wed, 6 Feb 2013 02:06:35 +0000 (21:06 -0500)]
Remove warning suppression we no longer need.  Hooray!

13 years agoFINALLY clean up our signed/unsigned character warning mess. In short, we
Ken Hornstein [Wed, 6 Feb 2013 02:00:40 +0000 (21:00 -0500)]
FINALLY clean up our signed/unsigned character warning mess.  In short, we
have switched to using "char" almost everywhere, and casting char to
unsigned char when using the ctype macros/functions.

13 years agoChanged m_getfld() to use char instead of unsigned char.
David Levine [Tue, 5 Feb 2013 22:20:53 +0000 (16:20 -0600)]
Changed m_getfld() to use char instead of unsigned char.

13 years agoChanged m_getfld() to use char instead of unsigned char.
David Levine [Tue, 5 Feb 2013 21:25:23 +0000 (15:25 -0600)]
Changed m_getfld() to use char instead of unsigned char.

13 years agoStart of the signed/unsigned char cleanup.
Ken Hornstein [Tue, 5 Feb 2013 18:01:09 +0000 (13:01 -0500)]
Start of the signed/unsigned char cleanup.

13 years agoTweaked logic in brkstring.c and showfile.c to get rid of the
David Levine [Mon, 4 Feb 2013 04:51:00 +0000 (22:51 -0600)]
Tweaked logic in brkstring.c and showfile.c to get rid of the
remaining "statement not reached" warnings from Solaris cc.

13 years agoMake sure we don't link getcwidth with the nmh libraries.
Ken Hornstein [Sat, 2 Feb 2013 19:28:39 +0000 (14:28 -0500)]
Make sure we don't link getcwidth with the nmh libraries.

13 years agoAdded support for "-" to indicate stdout to output_message().
David Levine [Sat, 2 Feb 2013 18:56:53 +0000 (12:56 -0600)]
Added support for "-" to indicate stdout to output_message().

13 years agoRemoved unlink of "core" from signal handler of mhlist, mhn,
David Levine [Sat, 2 Feb 2013 18:54:55 +0000 (12:54 -0600)]
Removed unlink of "core" from signal handler of mhlist, mhn,
mhshow, and mhstore.  Those programs shouldn't remove a file
that has nothing to do with them.

13 years agoRemoved myuid and mygid variables, they're no longer used and
David Levine [Sat, 2 Feb 2013 18:40:59 +0000 (12:40 -0600)]
Removed myuid and mygid variables, they're no longer used and
the Solaris C compiler complained about their initializers.

13 years agoCast wchar_t to long unsigned int to deal with differing types of
Ken Hornstein [Sat, 2 Feb 2013 18:30:24 +0000 (13:30 -0500)]
Cast wchar_t to long unsigned int to deal with differing types of
wchar_t across systems.

13 years agoSuppress warning from test-manpages that groff can't break a line if
David Levine [Sat, 2 Feb 2013 17:55:23 +0000 (11:55 -0600)]
Suppress warning from test-manpages that groff can't break a line if
the user's prefix is too long.

13 years agoThe Solaris compiler was right about unreachable statements.
David Levine [Sat, 2 Feb 2013 16:54:32 +0000 (10:54 -0600)]
The Solaris compiler was right about unreachable statements.
Fixed all of them in uip/.

13 years agoAdded l modifier to X printf conversions of wchar_t's.
David Levine [Sat, 2 Feb 2013 16:21:14 +0000 (10:21 -0600)]
Added l modifier to X printf conversions of wchar_t's.

13 years agoRemoved unused vec[0] relic from before argsplit conversion.
David Levine [Sat, 2 Feb 2013 16:18:24 +0000 (10:18 -0600)]
Removed unused vec[0] relic from before argsplit conversion.

13 years agoAdded trailing newline to sed input in mhmail when processing
David Levine [Sat, 2 Feb 2013 16:12:57 +0000 (10:12 -0600)]
Added trailing newline to sed input in mhmail when processing
-headerfield argument, to squelch complain from Solaris sed.

13 years agoSet MHTMPDIR to try to keep all test-related files together.
David Levine [Sat, 2 Feb 2013 15:59:28 +0000 (09:59 -0600)]
Set MHTMPDIR to try to keep all test-related files together.

13 years agoMore test-mhmail probing.
David Levine [Sat, 2 Feb 2013 15:58:20 +0000 (09:58 -0600)]
More test-mhmail probing.

13 years agoTry this test-mhmail probe.
David Levine [Sat, 2 Feb 2013 15:23:49 +0000 (09:23 -0600)]
Try this test-mhmail probe.

13 years agoMore test-mhmail probing.
David Levine [Sat, 2 Feb 2013 14:43:32 +0000 (08:43 -0600)]
More test-mhmail probing.

13 years agoModified test-mhmail probe.
David Levine [Sat, 2 Feb 2013 14:26:43 +0000 (08:26 -0600)]
Modified test-mhmail probe.

13 years agoAdded temporary probe to test-mhmail.
David Levine [Sat, 2 Feb 2013 14:15:15 +0000 (08:15 -0600)]
Added temporary probe to test-mhmail.

13 years agoConvert post over to use new argsplit code.
Ken Hornstein [Sat, 2 Feb 2013 06:10:06 +0000 (01:10 -0500)]
Convert post over to use new argsplit code.

13 years agoHandle the case where (on Solaris) the width of U+2019 is 2 (which seems
Ken Hornstein [Sat, 2 Feb 2013 05:48:54 +0000 (00:48 -0500)]
Handle the case where (on Solaris) the width of U+2019 is 2 (which seems
TOTALLY bizarre to me, but there you have it).

13 years agoRework multibyte test so it will calculate the width of all of the
Ken Hornstein [Sat, 2 Feb 2013 05:33:51 +0000 (00:33 -0500)]
Rework multibyte test so it will calculate the width of all of the
Unicode characters we are using.

13 years agoIn setup_test(), set PATH after install.
David Levine [Sat, 2 Feb 2013 05:24:27 +0000 (23:24 -0600)]
In setup_test(), set PATH after install.

13 years agoAdded set -x to test-ali.
David Levine [Sat, 2 Feb 2013 05:12:09 +0000 (23:12 -0600)]
Added set -x to test-ali.

13 years agoMaybe the mkdir in setup_test() needs a -p?
David Levine [Sat, 2 Feb 2013 04:52:00 +0000 (22:52 -0600)]
Maybe the mkdir in setup_test() needs a -p?

13 years agoMore test-ali diagnostics for Solaris.
David Levine [Sat, 2 Feb 2013 04:39:49 +0000 (22:39 -0600)]
More test-ali diagnostics for Solaris.

13 years agoUse test -t 1 instead of test -w in test-pick.
David Levine [Sat, 2 Feb 2013 04:25:51 +0000 (22:25 -0600)]
Use test -t 1 instead of test -w in test-pick.

13 years agoMore setup_test() and test-ali attempts on Solaris.
David Levine [Sat, 2 Feb 2013 04:24:48 +0000 (22:24 -0600)]
More setup_test() and test-ali attempts on Solaris.

13 years agoRemoved the ls of folder from setup_test().
David Levine [Sat, 2 Feb 2013 00:46:02 +0000 (18:46 -0600)]
Removed the ls of folder from setup_test().

13 years agoTry full path to folder in setup_test().
David Levine [Sat, 2 Feb 2013 00:35:13 +0000 (18:35 -0600)]
Try full path to folder in setup_test().

13 years agoMaybe the PATH needs to be exported again in setup_test()?
David Levine [Sat, 2 Feb 2013 00:16:26 +0000 (18:16 -0600)]
Maybe the PATH needs to be exported again in setup_test()?

13 years agoSo folder does exist the first time through setup_test().
David Levine [Fri, 1 Feb 2013 23:37:02 +0000 (17:37 -0600)]
So folder does exist the first time through setup_test().
Let's see its stdout.

13 years agoSuppressed display of info message when test-eom-align isn't
David Levine [Fri, 1 Feb 2013 23:20:37 +0000 (17:20 -0600)]
Suppressed display of info message when test-eom-align isn't
run with stdout to a terminal.