]>
diplodocus.org Git - nmh/log
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().
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.
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.
Ken Hornstein [Mon, 6 Jan 2014 16:20:47 +0000 (11:20 -0500)]
Add a test for the new curses-based format escapes.
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.
David Levine [Sun, 5 Jan 2014 16:01:48 +0000 (10:01 -0600)]
Removed remaining globals in uip/attach.c.
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().
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.
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".
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!
Ken Hornstein [Sat, 4 Jan 2014 19:01:58 +0000 (14:01 -0500)]
Make sure scan.curses is installed & distributed.
Ken Hornstein [Sat, 4 Jan 2014 05:59:38 +0000 (00:59 -0500)]
Support for sending color escape sequences retrieved from terminfo(5).
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.
Ken Hornstein [Fri, 3 Jan 2014 19:40:35 +0000 (14:40 -0500)]
Document %(nodate), and update things a bit.
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.
Ken Hornstein [Fri, 3 Jan 2014 16:06:29 +0000 (11:06 -0500)]
Also make sure outc() uses TPUTS_PUTC_ARG.
Ken Hornstein [Fri, 3 Jan 2014 16:05:18 +0000 (11:05 -0500)]
Whoops, I forgot that AC_CACHE_CHECK calls AC_MSG_RESULT.
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.
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.
Ken Hornstein [Fri, 3 Jan 2014 05:42:05 +0000 (00:42 -0500)]
Sigh. Fix up missing conversion from clear->ti_clear.
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.
Ken Hornstein [Fri, 3 Jan 2014 05:15:56 +0000 (00:15 -0500)]
include curses.h so this (hopefully) now works on Solaris.
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.
Ken Hornstein [Thu, 2 Jan 2014 20:55:33 +0000 (15:55 -0500)]
Garbage collect unused code.
Ken Hornstein [Thu, 2 Jan 2014 20:52:49 +0000 (15:52 -0500)]
Remove baudrate-handing code.
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).
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.
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.
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.
Ken Hornstein [Thu, 2 Jan 2014 16:38:20 +0000 (11:38 -0500)]
Move the termsbr code into the libmh library, where it belongs.
David Levine [Wed, 1 Jan 2014 19:43:51 +0000 (13:43 -0600)]
Give up on fmt_compile.c for now.
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.
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.
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.
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
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.
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).
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.
David Levine [Sun, 29 Dec 2013 14:01:28 +0000 (08:01 -0600)]
Generalized the valgrind suppression for sendmsg via readLine.
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.
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.
David Levine [Sat, 28 Dec 2013 17:55:12 +0000 (11:55 -0600)]
Fixed chmod of temp file in prompter. Noticed by valgrind.
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.
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.
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.
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.
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.
David Levine [Mon, 23 Dec 2013 00:09:55 +0000 (18:09 -0600)]
Use --brief option, if supported, with file --mime.
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.
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.
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.
David Levine [Sun, 22 Dec 2013 22:11:18 +0000 (16:11 -0600)]
Removed temporary printouts.
David Levine [Sun, 22 Dec 2013 21:30:30 +0000 (15:30 -0600)]
More debugging statements for OpenBSD.
David Levine [Sun, 22 Dec 2013 21:08:30 +0000 (15:08 -0600)]
Added debuging printouts.
David Levine [Sun, 22 Dec 2013 21:05:38 +0000 (15:05 -0600)]
Whooops, gcc on OpenBSD noticed a nasty in the last commit.
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.
David Levine [Sun, 22 Dec 2013 20:38:49 +0000 (14:38 -0600)]
Updated date on a few man pages.
David Levine [Sun, 22 Dec 2013 16:41:09 +0000 (10:41 -0600)]
Removed temporary probes added in commit
3441b5648a0c21e067c05f428a51bf96352735e7 .
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.
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.
David Levine [Sat, 14 Dec 2013 16:41:01 +0000 (10:41 -0600)]
Cleaned up setting of CFLAGS in configure.ac.
David Levine [Sat, 14 Dec 2013 16:29:33 +0000 (10:29 -0600)]
Added POSTLINK to remainder of executables in Makefile.am.
Replaced hard-coded sbr/libmh.a with $(LDADD) in LDADD
macro for test/getfullname.
David Levine [Sat, 14 Dec 2013 15:51:47 +0000 (09:51 -0600)]
The buildbot was reporting "warning" on stdin, not stderr.
Escape "warning" so that it doesn't snag it.
David Levine [Sat, 14 Dec 2013 14:51:42 +0000 (08:51 -0600)]
The build failed mysteriously on the OpenBSD buildbot host ("Provide
an AUTOCONF_VERSION environment variable, please"). This was in the
compile, not autogen, phase. Committing trivial change to kick off
another build.
David Levine [Sat, 14 Dec 2013 14:37:11 +0000 (08:37 -0600)]
That didn't quite work, try reducing size of warning filter
temporarily.
David Levine [Sat, 14 Dec 2013 14:24:14 +0000 (08:24 -0600)]
Filter out "often/almost always misused" warnings from OpenBSD linker.
Added POSTLINK macro to configure/Makefile for this purpose.
David Levine [Sat, 14 Dec 2013 01:23:27 +0000 (19:23 -0600)]
Added mention of filename completion at whatnow prompt if nmh
was configured with readline enabled.
David Levine [Sat, 14 Dec 2013 01:20:12 +0000 (19:20 -0600)]
Moved the set -x after the uname and string test in autogen.sh
to reduce build log clutter.
David Levine [Sat, 14 Dec 2013 01:12:15 +0000 (19:12 -0600)]
Generalized -Wel fix in test-manpages of commit
27659f0aa30c07081f7b8647c51a6ca82837e5d1 to apply on
any platform.
Pascal Stumpf [Sat, 14 Dec 2013 00:57:57 +0000 (18:57 -0600)]
rand()/srand() are not cryptographically secure PRNGs. Some systems
have the much better suited arc4random() family of functions; there's
no reason to not use it if it is available. Make m_rand() just a
wrapper around arc4random_buf() in that case. (There's no need to
ever seed it manually.)
As a bonus, silences some warnings on OpenBSD.
David Levine [Fri, 13 Dec 2013 22:48:02 +0000 (16:48 -0600)]
groff -man silence the test-manpages warnings. One more try: -Wel.
David Levine [Fri, 13 Dec 2013 22:25:24 +0000 (16:25 -0600)]
Try using -man instead of -mandoc in test-manpages on OpenBSD
to see if it silences the warnings.
David Levine [Fri, 13 Dec 2013 21:33:14 +0000 (15:33 -0600)]
Disable assertions by default.
Ken Hornstein [Fri, 13 Dec 2013 20:38:58 +0000 (15:38 -0500)]
Minor autoconf style cleanup.
David Levine [Fri, 13 Dec 2013 02:15:14 +0000 (20:15 -0600)]
Minor changes to configure.ac:
1) Replaced direct manipulation of NDEBUG with AC_HEADER_ASSERT.
2) Removed unnecessary level of quoting around LFLAGS assignments.
David Levine [Fri, 13 Dec 2013 02:11:42 +0000 (20:11 -0600)]
Moved all LDFLAGS manipulations in configure.ac to one place.
David Levine [Fri, 13 Dec 2013 00:37:58 +0000 (18:37 -0600)]
Tweaked rcvtty.c to squelch warnings on OpenBSD. Three of the
four were due to unused artifacts with HAVE_GETUTXENT not defined.
The fourth was due to control reaching the end of non-void
function message_id(), which had an _exit() call at the end.
David Levine [Fri, 13 Dec 2013 00:29:31 +0000 (18:29 -0600)]
Initialize local child_id in main() of whom.c to squelch warning
from cc on OpenBSD.
David Levine [Fri, 13 Dec 2013 00:27:17 +0000 (18:27 -0600)]
Squelch warning from cc on OpenBSD that fd argument of usr_pipe() in
slocal.c might get clobbered by vfork() by copying it to a volatile
local.
David Levine [Fri, 13 Dec 2013 00:23:45 +0000 (18:23 -0600)]
Removed --posix from awk invocation in test-anno.
David Levine [Fri, 13 Dec 2013 00:08:01 +0000 (18:08 -0600)]
It looks like the sed "a" in test-anno didn't emit a trailing
newline on OpenBSD. It does on other platforms. Try using
awk instead.
Lyndon Nerenberg [Thu, 12 Dec 2013 19:55:58 +0000 (11:55 -0800)]
Add buildbot hacks for OpenBSD.
OpenBSD auto{conf,make} want a version specified in the environment
for each of the tools. For now, hardwire this into autogen.sh until
we can figure out a better way of dealing with this.
David Levine [Thu, 12 Dec 2013 02:52:49 +0000 (20:52 -0600)]
Sun Studio cc -V must output to stderr.
David Levine [Thu, 12 Dec 2013 02:28:10 +0000 (20:28 -0600)]
David Levine [Thu, 12 Dec 2013 01:47:29 +0000 (19:47 -0600)]
Undid last commit of temporary printouts because buildbot is down.
David Levine [Wed, 11 Dec 2013 23:19:48 +0000 (17:19 -0600)]
Temporarily add some printouts to configure.ac to see why -v
isn't added to Sun Studio cc on Solaris build host.
Lyndon Nerenberg [Wed, 11 Dec 2013 18:53:28 +0000 (10:53 -0800)]
Prefer cc over gcc.
Lyndon Nerenberg [Wed, 11 Dec 2013 18:42:04 +0000 (10:42 -0800)]
One more attempt at getting the buildbot $PATH correct on Solaris.
David Levine [Wed, 11 Dec 2013 01:17:00 +0000 (19:17 -0600)]
OK, this should work to detect Sun Studio cc.
David Levine [Wed, 11 Dec 2013 01:07:25 +0000 (19:07 -0600)]
Oops, that didn't work. Disable -v with SunStudio cc for now.
David Levine [Wed, 11 Dec 2013 01:05:32 +0000 (19:05 -0600)]
OK, use SunStudio cc, if present, on Solaris if user didn't set CC.
And with it, use -v and suppress the statement not reached warning.
David Levine [Wed, 11 Dec 2013 00:45:26 +0000 (18:45 -0600)]
Suppress E_STATEMENT_NOT_REACHED warning from SunStudio cc.
David Levine [Wed, 11 Dec 2013 00:35:08 +0000 (18:35 -0600)]
Added -errtags=yes to SunStudio cc options.
David Levine [Wed, 11 Dec 2013 00:22:23 +0000 (18:22 -0600)]
Removed a bunch of unreachable break statements found by
SunStudio cc -v. Also fixed an "end-of-loop code not
reached" condition in uip/dropsbr.c. That one is significant
because it meant that retries were not attempted when attempting
to open and lock a file.
David Levine [Tue, 10 Dec 2013 22:43:20 +0000 (16:43 -0600)]
Need full path to cc on Solaris buildbot host, at this point.
David Levine [Tue, 10 Dec 2013 22:16:59 +0000 (16:16 -0600)]
Try -v with SunStudio cc. Also, try setting CC instead of modifying
AC_PROC_CC to pick up cc on the buildbot Solaris host.
Lyndon Nerenberg [Tue, 10 Dec 2013 22:05:08 +0000 (14:05 -0800)]
Remove the Solaris cc hack; the buildbot should have the correct
cc in its $PATH now.
David Levine [Tue, 10 Dec 2013 14:40:59 +0000 (08:40 -0600)]
Removed +w from SunStudio cc, it caused compilation failure.
Maybe it can only be used with CC.
David Levine [Tue, 10 Dec 2013 14:36:15 +0000 (08:36 -0600)]
That worked. Now try +w2 with SunStudio cc.
David Levine [Tue, 10 Dec 2013 14:15:22 +0000 (08:15 -0600)]
Of course that didn't work. Try specifying the SunStudio
compiler in CC.