David Levine [Sat, 18 Feb 2012 14:03:21 +0000 (08:03 -0600)]
The test check() function now removes the expected and actual output files if they're the same, by default. Added check-string() function.
David Levine [Sat, 18 Feb 2012 01:10:08 +0000 (19:10 -0600)]
Initialized local "in" to suppress gcc warning about possible uninitialized use.
David Levine [Sat, 18 Feb 2012 01:08:42 +0000 (19:08 -0600)]
Enclosed program name and directory in double quotes so that they can contain whitespace.
David Levine [Sat, 18 Feb 2012 00:44:35 +0000 (18:44 -0600)]
Here's the proper fix instead of the hack of
d28ce569fe233141f86fe516878361da01c9f9cb. Use ${srcdir} in to refer to extra files in tests, as before.
Ken Hornstein [Fri, 17 Feb 2012 20:56:08 +0000 (15:56 -0500)]
Beginning support for mh-format support in comp(1). Includes changes to
default component file.
Ken Hornstein [Fri, 17 Feb 2012 20:10:06 +0000 (15:10 -0500)]
Sigh. Looks like we need a function after all; create a new function
called %(localmbox).
Ken Hornstein [Fri, 17 Feb 2012 19:02:44 +0000 (14:02 -0500)]
Switch to including h/mts.h for getusername() prototype.
David Levine [Fri, 17 Feb 2012 04:56:02 +0000 (22:56 -0600)]
Added a couple of NMH_UNUSED's to suppress warnings when building without Cyrus SASL.
David Levine [Fri, 17 Feb 2012 04:49:03 +0000 (22:49 -0600)]
Hacked to work with make distcheck. Maybe not the best way but it works for now.
David Levine [Fri, 17 Feb 2012 04:02:21 +0000 (22:02 -0600)]
Moved check() function from individual tests to common.sh.
David Levine [Fri, 17 Feb 2012 03:30:43 +0000 (21:30 -0600)]
Rearranged test suite environment variables so that individual tests
can now be run standalone (outside of make). But see WARNING in
test/README about how it's better to use "make check" because that
ensures that the current code in your workspace is tested. Also, the
clean script no longer needs to call setup_test.
Ken Hornstein [Thu, 16 Feb 2012 16:46:16 +0000 (11:46 -0500)]
Report an error when the width used by putaddr is less than the label width.
Ken Hornstein [Thu, 16 Feb 2012 05:17:49 +0000 (00:17 -0500)]
Hopefully made the format documentation a little bit clearer.
Ken Hornstein [Thu, 16 Feb 2012 02:45:13 +0000 (21:45 -0500)]
Fix typo in repl man page.
Ken Hornstein [Wed, 15 Feb 2012 20:54:47 +0000 (15:54 -0500)]
Create test cases for the new format functions for local address writing.
Ken Hornstein [Wed, 15 Feb 2012 20:53:26 +0000 (15:53 -0500)]
Make it so we do NOT check our address against the "local" userid and
hostname if Local-Mailbox is set.
Ken Hornstein [Wed, 15 Feb 2012 20:46:28 +0000 (15:46 -0500)]
Sigh. Turns out the first entry in the list isn't actually checked, so
we need to make sure that our Local-Mailbox entry starts second.
Ken Hornstein [Wed, 15 Feb 2012 19:55:25 +0000 (14:55 -0500)]
Hm, it turns out we need to make sure we call getname() until we get
a NULL, otherwise the next set of calls to it will be working from the
"old" search string.
Ken Hornstein [Wed, 15 Feb 2012 16:36:36 +0000 (11:36 -0500)]
Beginning of support for the Local-Mailbox profile entry.
Ken Hornstein [Wed, 15 Feb 2012 15:48:52 +0000 (10:48 -0500)]
Support getting the "fullname" out of the Signature profile setting.
David Levine [Wed, 15 Feb 2012 02:47:06 +0000 (20:47 -0600)]
Updated documentation of environment variables in mh-profile man page.
Ken Hornstein [Wed, 15 Feb 2012 01:24:43 +0000 (20:24 -0500)]
Add two new format functions: %(myhost) and %(myname).
David Levine [Tue, 14 Feb 2012 01:55:53 +0000 (19:55 -0600)]
Changed "make test" to "make check".
David Levine [Tue, 14 Feb 2012 01:54:41 +0000 (19:54 -0600)]
Fixed progress indicator.
Ken Hornstein [Sun, 12 Feb 2012 04:28:10 +0000 (23:28 -0500)]
Another problem discovered by the test suite.
With multiple sequence arguments on the command line you might end
up with garbage in the sequence[] array (it needs the last argument
to be a NULL. So do two things: make the first two arguments NULL, and
as we add arguments to sequence[] make sure the list has a NULL on the
end.
Paul Fox [Sat, 11 Feb 2012 18:06:47 +0000 (13:06 -0500)]
correct the maximum number of sequences in the mark(1) man page
also add a note explaining the somewhat low limit.
Paul Fox [Sat, 11 Feb 2012 17:41:30 +0000 (12:41 -0500)]
mhshow: suppress pause actions if stdout isn't a tty
previously, "mhshow | cat" would both print a "Press return" prompt
to, and attempt to read from, its piped output fd.
Ken Hornstein [Sat, 11 Feb 2012 04:38:40 +0000 (23:38 -0500)]
Fix this so it works when valgrind is installed.
Ken Hornstein [Sat, 11 Feb 2012 04:27:36 +0000 (23:27 -0500)]
Switch over to using the template files out of our inst directory.
Ken Hornstein [Sat, 11 Feb 2012 04:22:12 +0000 (23:22 -0500)]
Switch to using the "inst" version of mhl for tests.
Ken Hornstein [Sat, 11 Feb 2012 04:09:03 +0000 (23:09 -0500)]
Re-work the test suite so it now works with Automake (via "make check").
Ken Hornstein [Sat, 11 Feb 2012 01:59:21 +0000 (20:59 -0500)]
Fix typo in alternate mts.conf location support.
Ken Hornstein [Fri, 10 Feb 2012 20:11:05 +0000 (15:11 -0500)]
Make the test suite work on systems other than Linux. Still needs work.
Ken Hornstein [Fri, 10 Feb 2012 14:50:48 +0000 (09:50 -0500)]
With the fixing of the bug that caused CPPFLAGS to get tromped on, remove
support for OURDEFS and direct people to use CPPFLAGS instead.
Ken Hornstein [Fri, 10 Feb 2012 04:43:30 +0000 (23:43 -0500)]
Fix typo in variable test.
David Levine [Fri, 10 Feb 2012 02:38:22 +0000 (20:38 -0600)]
Show assignment of configure variables using VAR=VALUE instead of in the shell environment.
David Levine [Thu, 9 Feb 2012 04:29:59 +0000 (22:29 -0600)]
Updated INSTALL and MACHINES documentation a bit.
David Levine [Thu, 9 Feb 2012 03:42:46 +0000 (21:42 -0600)]
Added mhshow subpart test.
David Levine [Thu, 9 Feb 2012 03:41:48 +0000 (21:41 -0600)]
Always run setup-test from make test/runalltests, just in case the test build directory (test/testbuild) isn't up to date. It might be nice to replace all the copies in the test build directory with symlinks, then make could keep the test build up to date.
David Levine [Wed, 8 Feb 2012 03:43:26 +0000 (21:43 -0600)]
Added OURDEFS to DEFS in Makefile.am, to restore it in the Makefile. Updated documentation in INSTALL.
David Levine [Wed, 8 Feb 2012 03:23:37 +0000 (21:23 -0600)]
Removed use of tzset()/tzname in dtimezone(). They caused the returned timezone string to be for the user's current timezone, but the function is supposed to return the string representation of the timezone of its argument. That will be numeric, e.g., +0100, now because we no longer have timezone name support.
David Levine [Wed, 8 Feb 2012 03:17:00 +0000 (21:17 -0600)]
Reverted TZ hack to tests,
9ea2daf5e74e3ff03043cfa6fb68033aea0da52a. A code fix is on its way
David Levine [Tue, 7 Feb 2012 04:35:21 +0000 (22:35 -0600)]
Another one caught by the test suite: an indented line was too long in the slocal man page. Center it instead.
David Levine [Tue, 7 Feb 2012 04:25:25 +0000 (22:25 -0600)]
Some tests failed because they displayed the user's local
time zone but expected GMT. So, set TZ in runtest to fool
them.
Though I wonder if we're failing to correct for local time zone.
David Levine [Tue, 7 Feb 2012 03:47:52 +0000 (21:47 -0600)]
Caught by the test suite: sequences[0] needs to be initialized to NULL at the beginning of the program. That explains why it seg faulted when invoked with a sequence argument.
David Levine [Tue, 7 Feb 2012 03:19:57 +0000 (21:19 -0600)]
Reworked test suite to copy the configuration used in the main
nmh directory. Added test target to Makefile. Not all the tests
pass at this point.
Ken Hornstein [Mon, 6 Feb 2012 19:12:00 +0000 (14:12 -0500)]
Still more autoconf cleanup (quoting & more use of M4sh).
Ken Hornstein [Mon, 6 Feb 2012 16:31:18 +0000 (11:31 -0500)]
Patch from Harvey Eneman: fixes problem on some systems where a free()
would be called on non-malloc'd memory (only would happen if you had more
than one entry in the server: line in mts.conf).
Ken Hornstein [Mon, 6 Feb 2012 15:27:43 +0000 (10:27 -0500)]
Update the developer documentation with the changes to the release
process.
Ken Hornstein [Mon, 6 Feb 2012 14:08:19 +0000 (09:08 -0500)]
More configure cleanup to modern constructs.
Ken Hornstein [Sun, 5 Feb 2012 22:17:41 +0000 (17:17 -0500)]
Autoconf cleanup to suggested practice (AS_IF & AC_MSG_FAILURE). More to do.
David Levine [Sun, 5 Feb 2012 21:26:16 +0000 (15:26 -0600)]
Added error message if the file is source directly, rather than through bash-completion.
David Levine [Sun, 5 Feb 2012 20:13:07 +0000 (14:13 -0600)]
Exit with error message if no library could be found with tgetent.
Ken Hornstein [Sat, 4 Feb 2012 05:11:27 +0000 (00:11 -0500)]
Whoops, used "buffer" when I meant "buf".
Ken Hornstein [Sat, 4 Feb 2012 04:43:53 +0000 (23:43 -0500)]
Change LocalName() to take an argument (about whether or not to use
local hostname versus entry in mts.conf).
David Levine [Fri, 3 Feb 2012 23:10:49 +0000 (17:10 -0600)]
Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh
David Levine [Fri, 3 Feb 2012 23:10:44 +0000 (17:10 -0600)]
Use more up-to-date web page links of Jerry Peek's book sections at rand-mh.sourceforge.net instead of oreilly.com.
Ken Hornstein [Fri, 3 Feb 2012 20:38:49 +0000 (15:38 -0500)]
Convert from the poorly-named and confusing adrsprintf() to getlocaladdr().
Ken Hornstein [Fri, 3 Feb 2012 20:03:00 +0000 (15:03 -0500)]
Make the upload target phony.
Ken Hornstein [Fri, 3 Feb 2012 20:01:50 +0000 (15:01 -0500)]
Beginnings of an upload Makefile target.
Ken Hornstein [Fri, 3 Feb 2012 18:50:19 +0000 (13:50 -0500)]
Update with new features.
Ken Hornstein [Fri, 3 Feb 2012 18:49:46 +0000 (13:49 -0500)]
Document the formatproc entry.
Ken Hornstein [Fri, 3 Feb 2012 03:13:57 +0000 (22:13 -0500)]
Move the eval statements inside of AC_CONFIG_COMMANDS_POST macro, otherwise
the stuff we output might not be correct.
David Levine [Wed, 1 Feb 2012 05:17:33 +0000 (23:17 -0600)]
Added #includes to pick up declaration of waitpid()
Ken Hornstein [Tue, 31 Jan 2012 18:20:40 +0000 (13:20 -0500)]
Whoops, I need to make sure the buffer I pass to putcomp() is NULL-terminated.
Ken Hornstein [Tue, 31 Jan 2012 17:58:04 +0000 (12:58 -0500)]
Add support for calling an external format program inside of mhl.
David Levine [Sat, 28 Jan 2012 20:12:05 +0000 (14:12 -0600)]
Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh
David Levine [Sat, 28 Jan 2012 19:52:59 +0000 (13:52 -0600)]
Made ChangeLog target phony so it will always get regenerated. But don't try to regenerate if git repository is not present.
David Levine [Sat, 28 Jan 2012 19:52:59 +0000 (13:52 -0600)]
Made ChangeLog phony so it will always get regenerated. But don't try to regenerated if git repository is not present.
David Levine [Sat, 28 Jan 2012 18:45:15 +0000 (12:45 -0600)]
The ics.uci.edu/~mh/ links are dead, so replaced them with corresponding oreilly.com links.
David Levine [Sat, 28 Jan 2012 18:33:27 +0000 (12:33 -0600)]
Replaced static ChangeLog with one generated by git log.
Ken Hornstein [Sat, 28 Jan 2012 05:29:13 +0000 (00:29 -0500)]
Create "nowrap" flag to turn off all line wrapping.
David Levine [Sat, 28 Jan 2012 02:30:58 +0000 (20:30 -0600)]
Organized .gitignore to show which objects are deleted by the various Makefile clean targets.
David Levine [Sat, 28 Jan 2012 01:56:50 +0000 (19:56 -0600)]
Added superclean Makefile target. Added a.out.DSYM's to clean target. Added .PHONY indication of rpm target.
David Levine [Sat, 28 Jan 2012 01:40:48 +0000 (19:40 -0600)]
Removed config.guess and config.sub because they're generated by autoreconf -i.
David Levine [Sat, 28 Jan 2012 01:39:47 +0000 (19:39 -0600)]
Updated to latest config.guess and config.sub before removing them from the repo, just in case someone needs them and can't generate them.
David Levine [Sat, 28 Jan 2012 01:36:14 +0000 (19:36 -0600)]
Changed a variable to unsigned and noted an argument as unused to silence compile warnings in uip/popsbr.c
Ken Hornstein [Fri, 27 Jan 2012 18:47:14 +0000 (13:47 -0500)]
Fix long-standing problem with getans(); handle the case if we get
an interrupted by a signal during a character read and return an
EINTR.
Ken Hornstein [Fri, 27 Jan 2012 18:34:17 +0000 (13:34 -0500)]
Convert to the use of siglongjmp()
Ken Hornstein [Fri, 27 Jan 2012 17:30:52 +0000 (12:30 -0500)]
Make POP support always be turned on.
Lyndon Nerenberg [Fri, 27 Jan 2012 16:16:57 +0000 (08:16 -0800)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/nmh
Lyndon Nerenberg [Fri, 27 Jan 2012 16:16:36 +0000 (08:16 -0800)]
Typo fix.
David Levine [Fri, 27 Jan 2012 04:36:17 +0000 (22:36 -0600)]
Added clean-local target to remove RPM directory.
David Levine [Fri, 27 Jan 2012 02:05:30 +0000 (20:05 -0600)]
Added uip/*.exe, for Cygwin.
David Levine [Fri, 27 Jan 2012 02:04:33 +0000 (20:04 -0600)]
Removed slash in front of $(man5dir) of install-data-hook rule so that it now works on Cygwin.
David Levine [Thu, 26 Jan 2012 04:22:02 +0000 (22:22 -0600)]
Fixed rpm target now that nmhdist is gone.
David Levine [Thu, 26 Jan 2012 02:48:55 +0000 (20:48 -0600)]
Updated config test to add -Wextra to be consistent with others. So, it's back!
David Levine [Thu, 26 Jan 2012 01:44:30 +0000 (19:44 -0600)]
If using gcc, use -Wno-unused-macros when compiling sbr/dtime.o.
David Levine [Thu, 26 Jan 2012 01:38:49 +0000 (19:38 -0600)]
Removed unused local bp.
David Levine [Thu, 26 Jan 2012 01:33:17 +0000 (19:33 -0600)]
Undid most of
3ef341abe440ece07f8deed59fb026ab020e805 because FreeBSD needs the HAVE_STRUCT_TM_TM_GMTOFF test. It has a timezone() function, not a timezone global variable (that's visible with our default configuration.
lyndon [Thu, 26 Jan 2012 04:10:52 +0000 (20:10 -0800)]
Remove hardlink target before attempting new link.
lyndon [Thu, 26 Jan 2012 02:15:47 +0000 (18:15 -0800)]
uip/termsbr.c: remove references to PC and ospeed().
These are no longer referenced by the code base now that vmh has been
removed.
Ken Hornstein [Tue, 24 Jan 2012 17:56:45 +0000 (12:56 -0500)]
Create a "cscope" target that creates the necessary files to use cscope.
lyndon [Tue, 24 Jan 2012 06:48:24 +0000 (22:48 -0800)]
cscope.files was missing mts/smtp/*.
lyndon [Mon, 23 Jan 2012 07:21:03 +0000 (23:21 -0800)]
Ignore cscope.out.
lyndon [Mon, 23 Jan 2012 07:08:02 +0000 (23:08 -0800)]
Add a default configuration file for cscope(1).
I generated the file list by hand. While it might be possible to generate it
from the Makefile, it was much simpler to just
ls */*.[cl]|grep -v sbr/dtimep.c
If source files are added or removed down the road, cscope.files will
need a hand edit to keep it in sync.
Ken Hornstein [Sun, 22 Jan 2012 06:15:40 +0000 (01:15 -0500)]
Make sigmsg.h NOT depend on the Makefile.
Ken Hornstein [Sun, 22 Jan 2012 06:14:34 +0000 (01:14 -0500)]
Clean up DESTDIR usage.
Ken Hornstein [Sun, 22 Jan 2012 06:12:18 +0000 (01:12 -0500)]
Add the rule to install inc setgid if requested.
Ken Hornstein [Sat, 21 Jan 2012 04:39:14 +0000 (23:39 -0500)]
Fix some problems that the Automake migration caused.