]> diplodocus.org Git - nmh/log
nmh
12 years agotest/common.sh.in: use awk to pick off first output field.
Lyndon Nerenberg [Fri, 6 Dec 2013 22:52:03 +0000 (14:52 -0800)]
test/common.sh.in: use awk to pick off first output field.

md5 and md5sum are inconsistent in their use of SP vs HT as a field separator.
cut(1) can only handle a single field delimiter character; awk is more forgiving.

12 years agoMerge branch 'master' of git.sv.nongnu.org:/srv/git/nmh
David Levine [Fri, 6 Dec 2013 04:49:54 +0000 (22:49 -0600)]
Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh

12 years agoRenamed test/getfqdn to test/getcanon.
David Levine [Fri, 6 Dec 2013 04:49:49 +0000 (22:49 -0600)]
Renamed test/getfqdn to test/getcanon.

12 years agoI give up for now; revert these debugging commits.
Ken Hornstein [Fri, 6 Dec 2013 04:40:44 +0000 (23:40 -0500)]
I give up for now; revert these debugging commits.

12 years agoOne final check to make sure the binary isn't stripped
Ken Hornstein [Fri, 6 Dec 2013 04:28:44 +0000 (23:28 -0500)]
One final check to make sure the binary isn't stripped

12 years agoSigh. Make sure the binaries aren't stripped as well.
Ken Hornstein [Fri, 6 Dec 2013 04:15:57 +0000 (23:15 -0500)]
Sigh. Make sure the binaries aren't stripped as well.

12 years agoSwitch to default of -g so hopefully we can get something useful from the
Ken Hornstein [Fri, 6 Dec 2013 03:56:57 +0000 (22:56 -0500)]
Switch to default of -g so hopefully we can get something useful from the
FreeBSD buildbot valgrind output.

12 years agoSigh, I always forget this is errno.h, not sys/errno.h.
Ken Hornstein [Fri, 6 Dec 2013 03:48:04 +0000 (22:48 -0500)]
Sigh, I always forget this is errno.h, not sys/errno.h.

12 years agoHave getfqdn fall back to printing out the given hostname if the DNS lookup
Ken Hornstein [Fri, 6 Dec 2013 02:59:22 +0000 (21:59 -0500)]
Have getfqdn fall back to printing out the given hostname if the DNS lookup
fails, to replicate the behavior of LocalName().

12 years agoThat didn't work, either. Restoring configure.ac.
David Levine [Fri, 6 Dec 2013 00:38:16 +0000 (18:38 -0600)]
That didn't work, either.  Restoring configure.ac.

12 years agoThat didn't work, try adding -pedantic-errors.
David Levine [Fri, 6 Dec 2013 00:35:00 +0000 (18:35 -0600)]
That didn't work, try adding -pedantic-errors.

12 years agoThe linker on FreeBSD 10 doesn't like -ansi. So added a
David Levine [Fri, 6 Dec 2013 00:10:01 +0000 (18:10 -0600)]
The linker on FreeBSD 10 doesn't like -ansi.  So added a
configure check to not put -ansi in CFLAGS if the linker
doesn't like it.  Though may need to add -pedantic-errors.
There doesn't seem to be an easy way to get automake to
not put CFLAGS in the link command.

12 years agoClean up mhbuild backup files left by test-header-encode.
David Levine [Thu, 5 Dec 2013 23:48:08 +0000 (17:48 -0600)]
Clean up mhbuild backup files left by test-header-encode.

12 years agoBetter fix than commit 605d80e7cf0d02d4bab9387f03b4e1d43177e33e
David Levine [Thu, 5 Dec 2013 14:02:27 +0000 (08:02 -0600)]
Better fix than commit 605d80e7cf0d02d4bab9387f03b4e1d43177e33e
for test-mhfixmsg:  always overwrite HOME environment variable
if mhfixmsg uses w3m.

12 years agoFix to commit 7e40862e6a4da7810a46aa1e28b05e527fdc208a:
David Levine [Thu, 5 Dec 2013 13:04:51 +0000 (07:04 -0600)]
Fix to commit 7e40862e6a4da7810a46aa1e28b05e527fdc208a:
only one of the variables should have ICONV_CONST.

12 years agoIn test-mhfixmsg, make sure that $HOME is writeable, in case
David Levine [Thu, 5 Dec 2013 04:25:14 +0000 (22:25 -0600)]
In test-mhfixmsg, make sure that $HOME is writeable, in case
nmh has been configured to use w3m.

12 years agoReally fixed mhmail.
David Levine [Thu, 5 Dec 2013 03:48:04 +0000 (21:48 -0600)]
Really fixed mhmail.

12 years agoRemoved temporary hack.
David Levine [Thu, 5 Dec 2013 03:18:38 +0000 (21:18 -0600)]
Removed temporary hack.

12 years agoRemoved temporary hack to enable debug from configure.ac.
David Levine [Thu, 5 Dec 2013 03:15:31 +0000 (21:15 -0600)]
Removed temporary hack to enable debug from configure.ac.

12 years agoFixed test-mhmail failure on Solaris: its tail doesn't suport -n.
David Levine [Thu, 5 Dec 2013 03:13:55 +0000 (21:13 -0600)]
Fixed test-mhmail failure on Solaris:  its tail doesn't suport -n.

12 years agoUpdate pending-release-notes regarding removal of the -normalize and
Ken Hornstein [Thu, 5 Dec 2013 03:03:23 +0000 (22:03 -0500)]
Update pending-release-notes regarding removal of the -normalize and
-nonormalize switches.

12 years agoGarbage collect "normalize".
Ken Hornstein [Thu, 5 Dec 2013 02:56:50 +0000 (21:56 -0500)]
Garbage collect "normalize".

The code to normalize addresses (look up the hostnames in DNS for the
"official" hostnames) was disabled when we made DUMB the default configuration
in 1.5.  Since them, the -normalize switch was still around in various
utilities, but it didn't do anything.  Remove all of those switches and
garbage collect various other bits of the "normalize" functionality.

At the same time, improve getm() a bit; it now takes an argument specifying
the length of the error buffer.

12 years agoAdded temporary diagnostic hack to test-mhmail.
David Levine [Thu, 5 Dec 2013 02:54:03 +0000 (20:54 -0600)]
Added temporary diagnostic hack to test-mhmail.

12 years agoThe buildbot is up, put in hacks to enable debug and print out hostname.
David Levine [Thu, 5 Dec 2013 02:40:59 +0000 (20:40 -0600)]
The buildbot is up, put in hacks to enable debug and print out hostname.

12 years agoFixed m_getfld() bug introduced in commit
David Levine [Thu, 5 Dec 2013 02:30:04 +0000 (20:30 -0600)]
Fixed m_getfld() bug introduced in commit
0c7ac5073c24f01663fadc78b5112c86d52e4452.  This bug caused parsing
of messages with long (>= 8K) header field values to fail.  The fix
was easy:  decrement the counter of bytes read when decrementing the
current read position, in FLDPLUS state.

12 years agoUse ICONV_CONST in declaration of variable that's passed to
David Levine [Thu, 5 Dec 2013 02:29:05 +0000 (20:29 -0600)]
Use ICONV_CONST in declaration of variable that's passed to
iconv(), to quiet warning in FreeBSD 10.

12 years agoAdded identifier to each check in test-mhlist to help diagnose
David Levine [Thu, 5 Dec 2013 01:49:36 +0000 (19:49 -0600)]
Added identifier to each check in test-mhlist to help diagnose
test failure.

12 years agoAdded comment about not supporting trailing semicolons
David Levine [Thu, 5 Dec 2013 01:38:11 +0000 (19:38 -0600)]
Added comment about not supporting trailing semicolons
for aliases (in alias file).

12 years agoUndid temporary hacks, it looks like the buildbot is down.
David Levine [Thu, 5 Dec 2013 01:37:00 +0000 (19:37 -0600)]
Undid temporary hacks, it looks like the buildbot is down.

12 years agoTemporarily added a few hacks to diagnose problems found by buildbot.
David Levine [Thu, 5 Dec 2013 01:24:57 +0000 (19:24 -0600)]
Temporarily added a few hacks to diagnose problems found by buildbot.

12 years agoFix another warning.
Ken Hornstein [Wed, 4 Dec 2013 23:11:31 +0000 (18:11 -0500)]
Fix another warning.

12 years agoA few more tests; I think that's enough for now.
Ken Hornstein [Wed, 4 Dec 2013 20:49:52 +0000 (15:49 -0500)]
A few more tests; I think that's enough for now.

12 years agoFix a few warnings.
Ken Hornstein [Wed, 4 Dec 2013 19:29:54 +0000 (14:29 -0500)]
Fix a few warnings.

12 years agoMore tests (but not quite finished yet).
Ken Hornstein [Wed, 4 Dec 2013 17:57:20 +0000 (12:57 -0500)]
More tests (but not quite finished yet).

12 years agoFix cut & paste mistake.
Ken Hornstein [Wed, 4 Dec 2013 17:56:54 +0000 (12:56 -0500)]
Fix cut & paste mistake.

12 years agoMore man page minor fixup.
Ken Hornstein [Wed, 4 Dec 2013 17:12:55 +0000 (12:12 -0500)]
More man page minor fixup.

12 years agoSlightly clarify mhbuild man page.
Ken Hornstein [Wed, 4 Dec 2013 16:56:34 +0000 (11:56 -0500)]
Slightly clarify mhbuild man page.

12 years agoMinor typo fix.
Ken Hornstein [Wed, 4 Dec 2013 16:40:52 +0000 (11:40 -0500)]
Minor typo fix.

12 years agoNote changes to mhbuild.
Ken Hornstein [Wed, 4 Dec 2013 02:57:01 +0000 (21:57 -0500)]
Note changes to mhbuild.

12 years agoMerge branch 'encode-rfc2047'
Ken Hornstein [Wed, 4 Dec 2013 02:52:30 +0000 (21:52 -0500)]
Merge branch 'encode-rfc2047'

12 years agoSupport for more tests.
Ken Hornstein [Wed, 4 Dec 2013 02:52:11 +0000 (21:52 -0500)]
Support for more tests.

12 years agoWhoops, shouldn't use autoincrement with a macro; forgot about side
Ken Hornstein [Wed, 4 Dec 2013 02:36:39 +0000 (21:36 -0500)]
Whoops, shouldn't use autoincrement with a macro; forgot about side
effects!

12 years agoFirst round of tests! Still want to do more before it gets merged.
Ken Hornstein [Tue, 3 Dec 2013 20:52:00 +0000 (15:52 -0500)]
First round of tests!  Still want to do more before it gets merged.

12 years agoAdd support for a -file switch to handle messages that are not in folders.
Ken Hornstein [Tue, 3 Dec 2013 20:21:29 +0000 (15:21 -0500)]
Add support for a -file switch to handle messages that are not in folders.

12 years agoDon't put a space after the trailing semicolon for group termination.
Ken Hornstein [Tue, 3 Dec 2013 04:34:02 +0000 (23:34 -0500)]
Don't put a space after the trailing semicolon for group termination.

12 years agoUse pref_encoding() to select the default encoding for all headers.
Ken Hornstein [Tue, 3 Dec 2013 04:14:47 +0000 (23:14 -0500)]
Use pref_encoding() to select the default encoding for all headers.

12 years agoDo proper group handling, and fix a bug in the q-p encoder.
Ken Hornstein [Tue, 3 Dec 2013 04:11:27 +0000 (23:11 -0500)]
Do proper group handling, and fix a bug in the q-p encoder.

12 years agoI think we're very close to get address encoding working, but still have
Ken Hornstein [Mon, 2 Dec 2013 20:49:35 +0000 (15:49 -0500)]
I think we're very close to get address encoding working, but still have
to test it more.

12 years agoDocument a few more things.
Ken Hornstein [Mon, 2 Dec 2013 18:47:34 +0000 (13:47 -0500)]
Document a few more things.

12 years agoSince our last caller of getlocaladdr() was removed, garbage-collect this
Ken Hornstein [Mon, 2 Dec 2013 18:41:51 +0000 (13:41 -0500)]
Since our last caller of getlocaladdr() was removed, garbage-collect this
function.

12 years agoRemove code to set the signature buffer; it turns out that with our
Ken Hornstein [Mon, 2 Dec 2013 18:39:34 +0000 (13:39 -0500)]
Remove code to set the signature buffer; it turns out that with our
refactoring for 1.5, it was no longer used.

12 years agoMore work, but still stuff to do.
Ken Hornstein [Wed, 27 Nov 2013 17:49:07 +0000 (12:49 -0500)]
More work, but still stuff to do.

12 years agoFix up a few warnings and problems.
Ken Hornstein [Mon, 25 Nov 2013 19:06:38 +0000 (14:06 -0500)]
Fix up a few warnings and problems.

12 years agoMore work on address portion of RFC 2047 encoder.
Ken Hornstein [Thu, 21 Nov 2013 20:59:21 +0000 (15:59 -0500)]
More work on address portion of RFC 2047 encoder.

12 years agoA little bit closer to working for address headers.
Ken Hornstein [Thu, 14 Nov 2013 20:30:15 +0000 (15:30 -0500)]
A little bit closer to working for address headers.

12 years agoBreak out the unquote functionality to a separate function.
Ken Hornstein [Thu, 14 Nov 2013 16:43:33 +0000 (11:43 -0500)]
Break out the unquote functionality to a separate function.

12 years agoFix up the unquote test, with help from Lyndon and Ralph.
Ken Hornstein [Thu, 14 Nov 2013 15:16:22 +0000 (10:16 -0500)]
Fix up the unquote test, with help from Lyndon and Ralph.

12 years agoTest for unquoting, but it doesn't work yet.
Ken Hornstein [Thu, 14 Nov 2013 03:26:09 +0000 (22:26 -0500)]
Test for unquoting, but it doesn't work yet.

12 years agoSwitch fmttest over to using snprintb() instead of the private custom version
Ken Hornstein [Thu, 14 Nov 2013 01:54:48 +0000 (20:54 -0500)]
Switch fmttest over to using snprintb() instead of the private custom version
we originally cribbed from fmtdump.

12 years agoDocument snprintb() a bit.
Ken Hornstein [Thu, 14 Nov 2013 01:54:22 +0000 (20:54 -0500)]
Document snprintb() a bit.

12 years agoActually check the output buffer length all of the time.
Ken Hornstein [Thu, 14 Nov 2013 01:54:05 +0000 (20:54 -0500)]
Actually check the output buffer length all of the time.

12 years agoStart work on address header parsing.
Ken Hornstein [Wed, 13 Nov 2013 20:51:08 +0000 (15:51 -0500)]
Start work on address header parsing.

12 years agoFix up date mode so it works without providing a format string.
Ken Hornstein [Wed, 13 Nov 2013 16:03:12 +0000 (11:03 -0500)]
Fix up date mode so it works without providing a format string.

12 years agoDocument things a bit more.
Ken Hornstein [Mon, 11 Nov 2013 03:46:49 +0000 (22:46 -0500)]
Document things a bit more.

12 years agoA number of bug fixes:
Ken Hornstein [Sun, 10 Nov 2013 05:46:23 +0000 (00:46 -0500)]
A number of bug fixes:

- Fix macro to calculate the number of characters that will fit
  within a specified base64 encoding length.
- Refactor code to handle leading spaces, and insert a leading space
  correctly after the start of a header.

With all this, it seems to work!

12 years agoDon't increment the buffer pointer for the NUL string terminator; this
Ken Hornstein [Sat, 9 Nov 2013 19:27:12 +0000 (14:27 -0500)]
Don't increment the buffer pointer for the NUL string terminator; this
lets us concatenate new text on the end of the current output buffer.

12 years agoAdd support for -changecur and -nochangecur to mhlist(1).
Ken Hornstein [Sat, 9 Nov 2013 15:39:48 +0000 (10:39 -0500)]
Add support for -changecur and -nochangecur to mhlist(1).

12 years agoA little closer, but still has problems.
Ken Hornstein [Fri, 8 Nov 2013 03:44:13 +0000 (22:44 -0500)]
A little closer, but still has problems.

12 years agoFix handling of -headerencoding switch.
Ken Hornstein [Fri, 8 Nov 2013 03:43:50 +0000 (22:43 -0500)]
Fix handling of -headerencoding switch.

12 years agoGetting closer to getting base64 header encoding working.
Ken Hornstein [Thu, 7 Nov 2013 21:02:14 +0000 (16:02 -0500)]
Getting closer to getting base64 header encoding working.

12 years agoRemoved spurious space before a period in rcvpack man page.
David Levine [Sun, 3 Nov 2013 18:36:10 +0000 (12:36 -0600)]
Removed spurious space before a period in rcvpack man page.

12 years agoCleaned up the "stripped CRs" mhfixmsg verbose message.
David Levine [Sun, 3 Nov 2013 18:34:12 +0000 (12:34 -0600)]
Cleaned up the "stripped CRs" mhfixmsg verbose message.

12 years agoBeginning stubs to support base64 header encoding.
Ken Hornstein [Thu, 31 Oct 2013 15:51:52 +0000 (11:51 -0400)]
Beginning stubs to support base64 header encoding.

12 years agoSupport the -headerencoding switch to select the header encoding algorithm.
Ken Hornstein [Thu, 31 Oct 2013 15:37:52 +0000 (11:37 -0400)]
Support the -headerencoding switch to select the header encoding algorithm.

12 years agoSwitch to the (correct) casting of char to unsigned char for is*() macros.
Ken Hornstein [Thu, 31 Oct 2013 15:36:46 +0000 (11:36 -0400)]
Switch to the (correct) casting of char to unsigned char for is*() macros.

12 years agoFix some space calculation/whitespace handling bugs.
Ken Hornstein [Thu, 31 Oct 2013 00:44:19 +0000 (20:44 -0400)]
Fix some space calculation/whitespace handling bugs.

12 years agoFix qpspecial() macro test, and do proper casts to handle signed chars.
Ken Hornstein [Wed, 30 Oct 2013 19:32:03 +0000 (15:32 -0400)]
Fix qpspecial() macro test, and do proper casts to handle signed chars.

12 years agoIt looks like simple quoted-printable encoding of headers works!
Ken Hornstein [Wed, 30 Oct 2013 18:04:16 +0000 (14:04 -0400)]
It looks like simple quoted-printable encoding of headers works!

12 years agoRemove unused argument.
Ken Hornstein [Wed, 30 Oct 2013 02:52:06 +0000 (22:52 -0400)]
Remove unused argument.

12 years agoFix up a few miscalculations.
Ken Hornstein [Wed, 30 Oct 2013 02:42:51 +0000 (22:42 -0400)]
Fix up a few miscalculations.

12 years agoA hopefully-functional quoted-printable encoder
Ken Hornstein [Tue, 29 Oct 2013 19:58:35 +0000 (15:58 -0400)]
A hopefully-functional quoted-printable encoder

12 years agoTest to make sure mhshow is actually invoking a charset conversion
Ken Hornstein [Mon, 28 Oct 2013 18:44:30 +0000 (14:44 -0400)]
Test to make sure mhshow is actually invoking a charset conversion
program if one is defined.

12 years agoFix bug found by LLVM.
Ken Hornstein [Mon, 28 Oct 2013 02:31:50 +0000 (22:31 -0400)]
Fix bug found by LLVM.

12 years agoFix up warnings reported by LLVM.
Ken Hornstein [Mon, 28 Oct 2013 02:31:35 +0000 (22:31 -0400)]
Fix up warnings reported by LLVM.

12 years agoInterpret a full path argument to mhfixmsg as a filename, not
David Levine [Sun, 27 Oct 2013 13:57:55 +0000 (08:57 -0500)]
Interpret a full path argument to mhfixmsg as a filename, not
a message.

12 years agoA little tiny bit closer to working.
Ken Hornstein [Wed, 23 Oct 2013 18:40:02 +0000 (14:40 -0400)]
A little tiny bit closer to working.

12 years agoSuccess! Clean build on the buildbot Solaris11 host.
David Levine [Wed, 23 Oct 2013 16:24:34 +0000 (11:24 -0500)]
Success!  Clean build on the buildbot Solaris11 host.

12 years agoOoops, fixed typo in configure.ac.
David Levine [Wed, 23 Oct 2013 16:04:52 +0000 (11:04 -0500)]
Ooops, fixed typo in configure.ac.

12 years agoSee if this cleans up the Solaris build on the buildbot.
David Levine [Wed, 23 Oct 2013 16:02:47 +0000 (11:02 -0500)]
See if this cleans up the Solaris build on the buildbot.

12 years agoMore probing: print out sbr/dtimep.c.
David Levine [Wed, 23 Oct 2013 15:47:23 +0000 (10:47 -0500)]
More probing:  print out sbr/dtimep.c.

12 years agoOK, Solaris on the buildbot uses flex 2.5.35.
David Levine [Wed, 23 Oct 2013 15:20:49 +0000 (10:20 -0500)]
OK, Solaris on the buildbot uses flex 2.5.35.

12 years agoMore probing: added flex -V.
David Levine [Wed, 23 Oct 2013 15:16:31 +0000 (10:16 -0500)]
More probing: added flex -V.

12 years agoAdded back an enhanced hack to configure.ac to try to diagnose
David Levine [Wed, 23 Oct 2013 14:57:16 +0000 (09:57 -0500)]
Added back an enhanced hack to configure.ac to try to diagnose
the flex 2.5.36/.36 bug workaround.  Changed test-dist a bit
to help isolate where it just failed.  (My last commit message
was incorrect:  it was test-dist that failed, not test-comp-format.)

12 years agoReverted commit 9caa7da143644ed93c6ba6351f48fa1327ad4392
David Levine [Wed, 23 Oct 2013 03:54:08 +0000 (22:54 -0500)]
Reverted commit 9caa7da143644ed93c6ba6351f48fa1327ad4392
because it didn't solve the problem on Solaris, and
apparently broke test-comp-format, though I don't see how.

12 years agoAdded hack to configure.ac to work around bug in flex 2.5.36 and
David Levine [Wed, 23 Oct 2013 00:46:51 +0000 (19:46 -0500)]
Added hack to configure.ac to work around bug in flex 2.5.36 and
2.5.37 that prevents the builds from being completely green.
According to http://sourceforge.net/p/flex/bugs/140/, this should
be fixed in the next release of flex.  The hack is confined to
just configure.ac so it'll be easy to remove.

12 years agoMinor comment update.
Ken Hornstein [Tue, 22 Oct 2013 03:51:57 +0000 (23:51 -0400)]
Minor comment update.

12 years agoStart of RFC 2047 encoding code. Not complete in the slightest.
Ken Hornstein [Mon, 21 Oct 2013 20:01:02 +0000 (16:01 -0400)]
Start of RFC 2047 encoding code.  Not complete in the slightest.

12 years agoSome comments describing the MIME structures.
Ken Hornstein [Mon, 21 Oct 2013 16:48:23 +0000 (12:48 -0400)]
Some comments describing the MIME structures.

12 years agoAdded volatile qualifier in a couple of places to get rid of
David Levine [Sat, 19 Oct 2013 14:58:14 +0000 (09:58 -0500)]
Added volatile qualifier in a couple of places to get rid of
"might be clobbered" warning from when -Wno-clobbered isn't
supported.  And I removed the check for Wno-clobbered from
configure.ac.  It's no longer needed on any of the platforms
I use, we'll see if others need it.

12 years agoAllow mhfixmsg to strip carriage returns from ISO-8850, UTF-8,
David Levine [Sat, 19 Oct 2013 14:19:58 +0000 (09:19 -0500)]
Allow mhfixmsg to strip carriage returns from ISO-8850, UTF-8,
and Windows-12xx text, in addition to ASCII.