]> diplodocus.org Git - nmh/log
nmh
12 years agoBetter fix for test-attach-detach on platforms without readline.
David Levine [Mon, 13 Jan 2014 22:33:44 +0000 (14:33 -0800)]
Better fix for test-attach-detach on platforms without readline.

12 years agoFixed build on Solaris by only checking for -Wno-unused-result with gcc.
David Levine [Mon, 13 Jan 2014 21:35:41 +0000 (13:35 -0800)]
Fixed build on Solaris by only checking for -Wno-unused-result with gcc.

12 years agoHacked test-attach-detach to pass on Solaris.
David Levine [Sun, 12 Jan 2014 18:18:47 +0000 (12:18 -0600)]
Hacked test-attach-detach to pass on Solaris.

12 years agoFinal fix to test-attach-detach: on some platforms, there's no
David Levine [Sun, 12 Jan 2014 17:45:16 +0000 (11:45 -0600)]
Final fix to test-attach-detach:  on some platforms, there's no
charset for a text/plain file.

12 years agoReally fix mode of file that's used in test-attach-detach.
David Levine [Sun, 12 Jan 2014 17:32:11 +0000 (11:32 -0600)]
Really fix mode of file that's used in test-attach-detach.

12 years agoOne final fix to test-attach-detach.
David Levine [Sun, 12 Jan 2014 17:26:07 +0000 (11:26 -0600)]
One final fix to test-attach-detach.

12 years agoFixed test-attach-detach to work with any umask, and without readline.
David Levine [Sun, 12 Jan 2014 17:22:57 +0000 (11:22 -0600)]
Fixed test-attach-detach to work with any umask, and without readline.

12 years agoAdded -v and -a switches to whatnow attach so the user can see
David Levine [Sun, 12 Jan 2014 16:18:20 +0000 (10:18 -0600)]
Added -v and -a switches to whatnow attach so the user can see
the mhbuild directive that send(1) will use.

12 years agoRefined the POSTLINK used on OpenBSD so that it leaves the warnings,
David Levine [Sat, 11 Jan 2014 22:30:42 +0000 (16:30 -0600)]
Refined the POSTLINK used on OpenBSD so that it leaves the warnings,
but capitalizes the "w" so that they don't color the buildbot waterfall.

12 years agoRefined the autoconf test for -Wno-unused-result so that
David Levine [Sat, 11 Jan 2014 22:00:14 +0000 (16:00 -0600)]
Refined the autoconf test for -Wno-unused-result so that
it's only used where we need it (currently Ubuntu gcc 4.8.1
with -O2).

12 years agoCalculate port numbers in test suite based on uid so that different
David Levine [Sat, 11 Jan 2014 17:22:50 +0000 (11:22 -0600)]
Calculate port numbers in test suite based on uid so that different
users can run the test suite on a host simultaneously.

12 years agoUpdated Cygwin and Linux build notes.
David Levine [Sat, 11 Jan 2014 17:02:19 +0000 (11:02 -0600)]
Updated Cygwin and Linux build notes.

12 years agoAdded more .exe files to .gitignore.
David Levine [Sat, 11 Jan 2014 17:01:21 +0000 (11:01 -0600)]
Added more .exe files to .gitignore.

12 years agoWork around OpenBSD 5.4 file(1), which reports the --mime-encoding
David Levine [Sat, 11 Jan 2014 16:15:27 +0000 (10:15 -0600)]
Work around OpenBSD 5.4 file(1), which reports the --mime-encoding
of text files as "binary".

12 years agoReworked attach to add charset to Content-Type string for
David Levine [Sat, 11 Jan 2014 15:22:36 +0000 (09:22 -0600)]
Reworked attach to add charset to Content-Type string for
text content.

12 years agoChanged how build_nmh deals with older mhparam that doesn't
David Levine [Sat, 11 Jan 2014 14:09:20 +0000 (08:09 -0600)]
Changed how build_nmh deals with older mhparam that doesn't
report SASL/TLS.

12 years agoReorganized autoconf test for -Qunused-warnings so that it
David Levine [Sat, 11 Jan 2014 14:00:55 +0000 (08:00 -0600)]
Reorganized autoconf test for -Qunused-warnings so that it
outputs something when configuring on any platform.

12 years agoChange test-mhmail so it can handle a MIMETYPEPROC that doesn't output
Ken Hornstein [Sat, 11 Jan 2014 06:41:44 +0000 (01:41 -0500)]
Change test-mhmail so it can handle a MIMETYPEPROC that doesn't output
the character set.

12 years agoSwitch over to using --mime-type, since --mime seems to include a
Ken Hornstein [Sat, 11 Jan 2014 06:11:45 +0000 (01:11 -0500)]
Switch over to using --mime-type, since --mime seems to include a
charset for non-text MIME types.

12 years agoFixed POSTLINK (on OpenBSD) now that it doesn't use -Qunused-arguments.
David Levine [Sat, 11 Jan 2014 05:41:04 +0000 (23:41 -0600)]
Fixed POSTLINK (on OpenBSD) now that it doesn't use -Qunused-arguments.

12 years agoMore tests, but not quite there yet.
Ken Hornstein [Sat, 11 Jan 2014 05:32:54 +0000 (00:32 -0500)]
More tests, but not quite there yet.

12 years agoDon't error out if the message body is empty.
Ken Hornstein [Fri, 10 Jan 2014 18:31:05 +0000 (13:31 -0500)]
Don't error out if the message body is empty.

12 years agoOnly add -Qunused-arguments to LDFLAGS if compiler is clang.
David Levine [Sat, 11 Jan 2014 05:25:19 +0000 (23:25 -0600)]
Only add -Qunused-arguments to LDFLAGS if compiler is clang.

12 years agoReworked LFLAGS hack for flex 2.5.35 and 2.5.36 to work on
David Levine [Sat, 11 Jan 2014 04:49:24 +0000 (20:49 -0800)]
Reworked LFLAGS hack for flex 2.5.35 and 2.5.36 to work on
Ubuntu.  And use sed instead of ed.

12 years agoNo longer add -g or -s to LDFLAGS. autoconf handles -g. And "make
David Levine [Sat, 11 Jan 2014 01:36:34 +0000 (19:36 -0600)]
No longer add -g or -s to LDFLAGS.  autoconf handles -g.  And "make
install-strip" is the approved way to install stripped executables.

12 years agoAdded -Wno-unused-result to silence warnings on Ubuntu.
David Levine [Sat, 11 Jan 2014 01:03:56 +0000 (19:03 -0600)]
Added -Wno-unused-result to silence warnings on Ubuntu.

12 years agoMake sure we use the 'short' filename and add newlines where appropriate.
Ken Hornstein [Fri, 10 Jan 2014 05:45:38 +0000 (00:45 -0500)]
Make sure we use the 'short' filename and add newlines where appropriate.

12 years agoA bit closer, but don't run the test just yet.
Ken Hornstein [Fri, 10 Jan 2014 04:17:25 +0000 (23:17 -0500)]
A bit closer, but don't run the test just yet.

12 years agoPreliminary Attach: header support. Untested just yet.
Ken Hornstein [Thu, 9 Jan 2014 21:03:21 +0000 (16:03 -0500)]
Preliminary Attach: header support.  Untested just yet.

12 years agoOpenBSD 5 needs an other-libraries (fourth argument) to the
David Levine [Thu, 9 Jan 2014 02:54:50 +0000 (20:54 -0600)]
OpenBSD 5 needs an other-libraries (fourth argument) to the
AC_CHECK_LIB for SSL_library_init, because it doesn't automatically
append -lcrypto when linking with -lssl.

12 years agoHard-code the config/version.c target, instead of using $@, so its
David Levine [Thu, 9 Jan 2014 02:14:57 +0000 (20:14 -0600)]
Hard-code the config/version.c target, instead of using $@, so its
rule works for the distcheck target with Solaris (System V) make.
distcheck uses VPATH, causes that make to prepend the VPATH to $@.

12 years agoReplace use of awk with sed in test-anno because it failed
David Levine [Thu, 9 Jan 2014 01:02:58 +0000 (19:02 -0600)]
Replace use of awk with sed in test-anno because it failed
on Solaris (gawk).

12 years agoDetect whether or not to use -n with tail in build_nmh.
David Levine [Thu, 9 Jan 2014 00:23:10 +0000 (18:23 -0600)]
Detect whether or not to use -n with tail in build_nmh.
Synched that to uip/mhmail.

12 years agoFixed typo in last commit of test-curses.
David Levine [Wed, 8 Jan 2014 04:51:41 +0000 (22:51 -0600)]
Fixed typo in last commit of test-curses.

12 years agoAdded -Txterm-color to tput invocations that didn't have it.
David Levine [Wed, 8 Jan 2014 04:49:51 +0000 (22:49 -0600)]
Added -Txterm-color to tput invocations that didn't have it.

12 years agoIn test-curses, use termcap codes if terminfo capabilities
David Levine [Wed, 8 Jan 2014 04:27:55 +0000 (22:27 -0600)]
In test-curses, use termcap codes if terminfo capabilities
are not supported, such as on FreeBSD 9.

12 years agoAdded sbr/dtimep.c to CLEANFILES so that make distcheck passes on
David Levine [Wed, 8 Jan 2014 02:18:52 +0000 (20:18 -0600)]
Added sbr/dtimep.c to CLEANFILES so that make distcheck passes on
FreeBSD 9.

12 years agoClarified advisory message it test-mhfixmsg if a text browser
David Levine [Wed, 8 Jan 2014 01:51:58 +0000 (19:51 -0600)]
Clarified advisory message it test-mhfixmsg if a text browser
isn't available.

12 years agoUpdate this for From, Resent-From, and Envelope-From. Also document
Ken Hornstein [Wed, 8 Jan 2014 04:15:39 +0000 (23:15 -0500)]
Update this for From, Resent-From, and Envelope-From.  Also document
Attach even though the code hasn't been written yet.

12 years agoPrevent message status allocation code from overflowing if we get a
Ken Hornstein [Tue, 7 Jan 2014 16:45:24 +0000 (11:45 -0500)]
Prevent message status allocation code from overflowing if we get a
message number that is too high; simply abort instead.

12 years agoReplaced hidden make_mime_composition_file_entry() used by attach()
David Levine [Tue, 7 Jan 2014 02:49:18 +0000 (20:49 -0600)]
Replaced hidden make_mime_composition_file_entry() used by attach()
with public construct_build_directive().

12 years agoHere's a better fix for the whatnow tests: set and export
David Levine [Tue, 7 Jan 2014 01:14:20 +0000 (19:14 -0600)]
Here's a better fix for the whatnow tests:  set and export
TERM at the beginning of each test so that valgrind can be
supported.

12 years agoRemoved remaining run_prog's from tests that set an
David Levine [Mon, 6 Jan 2014 17:30:42 +0000 (11:30 -0600)]
Removed remaining run_prog's from tests that set an
environment variable.

12 years agoAdd a test for the new curses-based format escapes.
Ken Hornstein [Mon, 6 Jan 2014 16:20:47 +0000 (11:20 -0500)]
Add a test for the new curses-based format escapes.

12 years agoFixed description of send -attach switch in whatnow: its argument
David Levine [Sun, 5 Jan 2014 20:48:18 +0000 (14:48 -0600)]
Fixed description of send -attach switch in whatnow:  its argument
is the header file name, not a filename.

12 years agoRemoved remaining globals in uip/attach.c.
David Levine [Sun, 5 Jan 2014 16:01:48 +0000 (10:01 -0600)]
Removed remaining globals in uip/attach.c.

12 years agoGot rid of a couple of globals used by attach get_line().
David Levine [Sun, 5 Jan 2014 15:51:53 +0000 (09:51 -0600)]
Got rid of a couple of globals used by attach get_line().

12 years agoMoved the functions that implement whatnow attach from
David Levine [Sun, 5 Jan 2014 15:39:11 +0000 (09:39 -0600)]
Moved the functions that implement whatnow attach from
uip/sendsbr.c to new uip/attach.c.

12 years agoIn whatnow help, don't show that detached can be abbreviated
David Levine [Sun, 5 Jan 2014 14:28:58 +0000 (08:28 -0600)]
In whatnow help, don't show that detached can be abbreviated
with "de", because that conflicts with "delete".

12 years agoWhoops, I'm supposed to NUL-terminate the string, not set the actual pointer
Ken Hornstein [Sun, 5 Jan 2014 01:44:21 +0000 (20:44 -0500)]
Whoops, I'm supposed to NUL-terminate the string, not set the actual pointer
itself!

12 years agoMake sure scan.curses is installed & distributed.
Ken Hornstein [Sat, 4 Jan 2014 19:01:58 +0000 (14:01 -0500)]
Make sure scan.curses is installed & distributed.

12 years agoSupport for sending color escape sequences retrieved from terminfo(5).
Ken Hornstein [Sat, 4 Jan 2014 05:59:38 +0000 (00:59 -0500)]
Support for sending color escape sequences retrieved from terminfo(5).

12 years agoAdd support for %(hascolor), and a new function for parameterized
Ken Hornstein [Fri, 3 Jan 2014 20:55:10 +0000 (15:55 -0500)]
Add support for %(hascolor), and a new function for parameterized
terminfo capabilities.

12 years agoDocument %(nodate), and update things a bit.
Ken Hornstein [Fri, 3 Jan 2014 19:40:35 +0000 (14:40 -0500)]
Document %(nodate), and update things a bit.

12 years agoGarbage collect some Autoconf cruft that has been around a lot longer
Ken Hornstein [Fri, 3 Jan 2014 16:43:16 +0000 (11:43 -0500)]
Garbage collect some Autoconf cruft that has been around a lot longer
than necessary.

12 years agoAlso make sure outc() uses TPUTS_PUTC_ARG.
Ken Hornstein [Fri, 3 Jan 2014 16:06:29 +0000 (11:06 -0500)]
Also make sure outc() uses TPUTS_PUTC_ARG.

12 years agoWhoops, I forgot that AC_CACHE_CHECK calls AC_MSG_RESULT.
Ken Hornstein [Fri, 3 Jan 2014 16:05:18 +0000 (11:05 -0500)]
Whoops, I forgot that AC_CACHE_CHECK calls AC_MSG_RESULT.

12 years agoCreate an autoconf test to determine the argument of the tputs() callback.
Ken Hornstein [Fri, 3 Jan 2014 15:44:59 +0000 (10:44 -0500)]
Create an autoconf test to determine the argument of the tputs() callback.

12 years agoRemove checks for termcap.h and ncurses/termcap.h, since we're not using
Ken Hornstein [Fri, 3 Jan 2014 14:27:39 +0000 (09:27 -0500)]
Remove checks for termcap.h and ncurses/termcap.h, since we're not using
those header files anymore.

12 years agoSigh. Fix up missing conversion from clear->ti_clear.
Ken Hornstein [Fri, 3 Jan 2014 05:42:05 +0000 (00:42 -0500)]
Sigh.  Fix up missing conversion from clear->ti_clear.

12 years agoI guess we can't include both termcap and terminfo headers on Solaris.
Ken Hornstein [Fri, 3 Jan 2014 05:30:15 +0000 (00:30 -0500)]
I guess we can't include both termcap and terminfo headers on Solaris.

12 years agoinclude curses.h so this (hopefully) now works on Solaris.
Ken Hornstein [Fri, 3 Jan 2014 05:15:56 +0000 (00:15 -0500)]
include curses.h so this (hopefully) now works on Solaris.

12 years agoConvert all of the terminal functions over to terminfo(5) instead of
Ken Hornstein [Fri, 3 Jan 2014 04:59:57 +0000 (23:59 -0500)]
Convert all of the terminal functions over to terminfo(5) instead of
the older termcap.

Move the terminal-specific code from fmt_compile.c to terminal.c, so it
is all in one place.

12 years agoGarbage collect unused code.
Ken Hornstein [Thu, 2 Jan 2014 20:55:33 +0000 (15:55 -0500)]
Garbage collect unused code.

12 years agoRemove baudrate-handing code.
Ken Hornstein [Thu, 2 Jan 2014 20:52:49 +0000 (15:52 -0500)]
Remove baudrate-handing code.

12 years agoAlways emit an STR instruction for terminal escape sequences, otherwise you
Ken Hornstein [Thu, 2 Jan 2014 20:04:17 +0000 (15:04 -0500)]
Always emit an STR instruction for terminal escape sequences, otherwise you
can get unintended results (like printint the previous contents of the str
register, which is almost certainly what you don't want).

12 years agoSwitch from the M-X format for characters with the high bit set to
Ken Hornstein [Thu, 2 Jan 2014 20:00:46 +0000 (15:00 -0500)]
Switch from the M-X format for characters with the high bit set to
\xXX instead when printing format strings and other characters.

12 years agoFix problem with %(putlit) and %(zputlit) causing a SIGSEGV
Ken Hornstein [Thu, 2 Jan 2014 19:46:52 +0000 (14:46 -0500)]
Fix problem with %(putlit) and %(zputlit) causing a SIGSEGV
if str is NULL.

12 years agoDrop support for different behavior on hardcopy terminals. It's 2014,
Ken Hornstein [Thu, 2 Jan 2014 18:54:07 +0000 (13:54 -0500)]
Drop support for different behavior on hardcopy terminals.  It's 2014,
I'm assuming this is not a valid concern anymore.

12 years agoMove the termsbr code into the libmh library, where it belongs.
Ken Hornstein [Thu, 2 Jan 2014 16:38:20 +0000 (11:38 -0500)]
Move the termsbr code into the libmh library, where it belongs.

12 years agoGive up on fmt_compile.c for now.
David Levine [Wed, 1 Jan 2014 19:43:51 +0000 (13:43 -0600)]
Give up on fmt_compile.c for now.

12 years agoThat didn't work. Try including termcap.h first, instead of
David Levine [Wed, 1 Jan 2014 19:21:56 +0000 (13:21 -0600)]
That didn't work.  Try including termcap.h first, instead of
ncurses/termcap.h.

12 years agoChanged several globals to be static, to avoid collision,
David Levine [Wed, 1 Jan 2014 19:18:08 +0000 (13:18 -0600)]
Changed several globals to be static, to avoid collision,
notably with "filter" in libtermcap.so, on Solaris.

12 years agoTry including termcap.h before curses.h to see if that solves
David Levine [Wed, 1 Jan 2014 19:16:48 +0000 (13:16 -0600)]
Try including termcap.h before curses.h to see if that solves
the tputs() mismatch on Solaris.

12 years agoIt looks like some systems also need curses.h as well as term.h
Ken Hornstein [Tue, 31 Dec 2013 20:29:40 +0000 (15:29 -0500)]
It looks like some systems also need curses.h as well as term.h

12 years agoAdd support for outputing a few (limited) terminal attributes in format
Ken Hornstein [Tue, 31 Dec 2013 20:20:22 +0000 (15:20 -0500)]
Add support for outputing a few (limited) terminal attributes in format
sequences.  Needs documentation and some expansion.

12 years agoMake sure that branching instructions are traced even if we're executing the
Ken Hornstein [Tue, 31 Dec 2013 20:19:21 +0000 (15:19 -0500)]
Make sure that branching instructions are traced even if we're executing the
branch (previously, they would only be traced if they did not execute the
branch).

12 years agoChange fmttest to use litputs() on str and output buffers during tracing.
Ken Hornstein [Tue, 31 Dec 2013 05:13:21 +0000 (00:13 -0500)]
Change fmttest to use litputs() on str and output buffers during tracing.

12 years agoGeneralized the valgrind suppression for sendmsg via readLine.
David Levine [Sun, 29 Dec 2013 14:01:28 +0000 (08:01 -0600)]
Generalized the valgrind suppression for sendmsg via readLine.

12 years agoAdded test/valgrind.supp to EXTRA_DIST in Makefile.am so that
David Levine [Sun, 29 Dec 2013 00:24:54 +0000 (18:24 -0600)]
Added test/valgrind.supp to EXTRA_DIST in Makefile.am so that
NMH_VALGRIND=1 works with make distcheck.

12 years agoRemoved one run_prog from test-pick because it loses the setting
David Levine [Sun, 29 Dec 2013 00:23:49 +0000 (18:23 -0600)]
Removed one run_prog from test-pick because it loses the setting
of the LC_CTYPE environment variable.

12 years agoFixed chmod of temp file in prompter. Noticed by valgrind.
David Levine [Sat, 28 Dec 2013 17:55:12 +0000 (11:55 -0600)]
Fixed chmod of temp file in prompter.  Noticed by valgrind.

12 years agoNull-terminate buffer in mbx_copy() in dropsbr.c. Noticed by
David Levine [Sat, 28 Dec 2013 17:54:05 +0000 (11:54 -0600)]
Null-terminate buffer in mbx_copy() in dropsbr.c.  Noticed by
valgrind.

12 years agoAdded support for running the test suite with valgrind by setting
David Levine [Sat, 28 Dec 2013 17:51:01 +0000 (11:51 -0600)]
Added support for running the test suite with valgrind by setting
the NMH_VALGRIND environment variable.  To support that, nmh
programs that are invoked in the test suite should be run via
(the new function) run_prog or run_test.

12 years agoHave configure print out what it detects for the program to detect
David Levine [Tue, 24 Dec 2013 15:02:15 +0000 (09:02 -0600)]
Have configure print out what it detects for the program to detect
the MIME type string for a file.

12 years agoAdded "true" to end of flex fixups in configure.ac, in case the
David Levine [Mon, 23 Dec 2013 21:32:45 +0000 (15:32 -0600)]
Added "true" to end of flex fixups in configure.ac, in case the
user has hacked flex to not produce the errant code.

12 years agoRemoved flex fixup for version 2.5.37, it's not necessary with
David Levine [Mon, 23 Dec 2013 21:09:23 +0000 (15:09 -0600)]
Removed flex fixup for version 2.5.37, it's not necessary with
flex 2.5.37 on Fedora 20.

12 years agoUse --brief option, if supported, with file --mime.
David Levine [Mon, 23 Dec 2013 00:09:55 +0000 (18:09 -0600)]
Use --brief option, if supported, with file --mime.

12 years agoIn test-mhmail, insert semicolon in output of "file --mime" if needed.
David Levine [Sun, 22 Dec 2013 23:38:59 +0000 (17:38 -0600)]
In test-mhmail, insert semicolon in output of "file --mime" if needed.

12 years agofile --mime on OpenBSD returns strings such as "text/plain
David Levine [Sun, 22 Dec 2013 22:42:34 +0000 (16:42 -0600)]
file --mime on OpenBSD returns strings such as "text/plain
charset=us-ascii", without an intervening semilcolon.  Insert one if
there isn't one.

12 years agoRemoved support for file -i, it just spits out "regular file"
David Levine [Sun, 22 Dec 2013 22:12:02 +0000 (16:12 -0600)]
Removed support for file -i, it just spits out "regular file"
on Solaris.

12 years agoRemoved temporary printouts.
David Levine [Sun, 22 Dec 2013 22:11:18 +0000 (16:11 -0600)]
Removed temporary printouts.

12 years agoMore debugging statements for OpenBSD.
David Levine [Sun, 22 Dec 2013 21:30:30 +0000 (15:30 -0600)]
More debugging statements for OpenBSD.

12 years agoAdded debuging printouts.
David Levine [Sun, 22 Dec 2013 21:08:30 +0000 (15:08 -0600)]
Added debuging printouts.

12 years agoWhooops, gcc on OpenBSD noticed a nasty in the last commit.
David Levine [Sun, 22 Dec 2013 21:05:38 +0000 (15:05 -0600)]
Whooops, gcc on OpenBSD noticed a nasty in the last commit.

12 years agoWith whatnow attach, determine the content MIME type that's inserted
David Levine [Sun, 22 Dec 2013 20:42:26 +0000 (14:42 -0600)]
With whatnow attach, determine the content MIME type that's inserted
into the Content-Type header using file --mime or file -i, if
available on the platform at configuration time.  If not, continue to
use the mhshow-suffix- method.  Added a mimetypeproc component to
mhparam so that a user can query the configuration.

12 years agoUpdated date on a few man pages.
David Levine [Sun, 22 Dec 2013 20:38:49 +0000 (14:38 -0600)]
Updated date on a few man pages.

12 years agoRemoved temporary probes added in commit
David Levine [Sun, 22 Dec 2013 16:41:09 +0000 (10:41 -0600)]
Removed temporary probes added in commit
3441b5648a0c21e067c05f428a51bf96352735e7.

12 years agoAdded temporary probes to see what file --mime and file -i do on
David Levine [Sun, 22 Dec 2013 15:02:29 +0000 (09:02 -0600)]
Added temporary probes to see what file --mime and file -i do on
OpenBSD and Solaris.

12 years agoIncreased size of file command buffer in make_mime_composition_file_entry()
David Levine [Sun, 22 Dec 2013 15:01:41 +0000 (09:01 -0600)]
Increased size of file command buffer in make_mime_composition_file_entry()
because it was a bit too small.