mmh
12 years agoUpdate with recent fix.
Ken Hornstein [Mon, 5 Mar 2012 18:24:41 +0000 (13:24 -0500)]
Update with recent fix.

12 years agoChange this to use "uint32_t" for a 32-bit type, otherwise we can get
Ken Hornstein [Mon, 5 Mar 2012 18:21:04 +0000 (13:21 -0500)]
Change this to use "uint32_t" for a 32-bit type, otherwise we can get
wrong MD5 checksums on 64-bit systems.  Score another one for the
test suite!

12 years agoFix burst so it actually complies with RFC 934. This means discarding
Ken Hornstein [Mon, 5 Mar 2012 17:23:15 +0000 (12:23 -0500)]
Fix burst so it actually complies with RFC 934.  This means discarding
any extra stuff leftover at the end of an encapsulated message.

12 years agoA test for burst; still needs work.
Ken Hornstein [Thu, 1 Mar 2012 20:17:43 +0000 (15:17 -0500)]
A test for burst; still needs work.

12 years agoAdded test-mhlist.
David Levine [Sat, 3 Mar 2012 18:23:58 +0000 (12:23 -0600)]
Added test-mhlist.

12 years agomhbuild -check would always fail because it tried to build the
David Levine [Sat, 3 Mar 2012 18:21:00 +0000 (12:21 -0600)]
mhbuild -check would always fail because it tried to build the
digest for the decoded contents file (cefile), which can be null.
If it is, use the contents file itself.

12 years agoBrought mh-chart man page up to date.
David Levine [Fri, 2 Mar 2012 00:01:52 +0000 (18:01 -0600)]
Brought mh-chart man page up to date.

12 years agoAdded documentation of -snoop.
David Levine [Thu, 1 Mar 2012 18:33:19 +0000 (12:33 -0600)]
Added documentation of -snoop.

12 years agoRemoved RCS sparc object file.
David Levine [Thu, 1 Mar 2012 18:32:23 +0000 (12:32 -0600)]
Removed RCS sparc object file.

12 years agoUnder docs/historical/mh-6.8.5, mh.rf and mh.me were renamed to
David Levine [Thu, 1 Mar 2012 18:29:33 +0000 (12:29 -0600)]
Under docs/historical/mh-6.8.5, mh.rf and mh.me were renamed to
mh-intro.rf and mh-intro.me, respectively, to avoid name clashes with
other files on case-insensitive file systems.

12 years agoRemoved entire docs/historical/mh-6.8.5/local/ tree. It had a pair of
David Levine [Thu, 1 Mar 2012 18:13:14 +0000 (12:13 -0600)]
Removed entire docs/historical/mh-6.8.5/local/ tree.  It had a pair of
files, Distfile and distfile, with clashing case-insensitive names.
The rest of it was specific to UCI and LBL.

12 years ago%G isn't actually part of POSIX, so change to %Y.
Ken Hornstein [Thu, 1 Mar 2012 17:33:42 +0000 (12:33 -0500)]
%G isn't actually part of POSIX, so change to %Y.

12 years agoFixed a problem that caused the test to fail if you ran it on the first
Ken Hornstein [Thu, 1 Mar 2012 17:02:29 +0000 (12:02 -0500)]
Fixed a problem that caused the test to fail if you ran it on the first
nine days of the month.

12 years agoInitialized local msgnum to 0.
David Levine [Thu, 1 Mar 2012 02:33:24 +0000 (20:33 -0600)]
Initialized local msgnum to 0.

12 years agoAdded all of the MH sources, including RCS files, in
David Levine [Thu, 1 Mar 2012 00:41:14 +0000 (18:41 -0600)]
Added all of the MH sources, including RCS files, in
docs/historical/mh-6.8.5.  Sources for the papers are below papers/.
Sources for the MH User's Manual are in conf/doc/.

12 years agoMerge branch 'master' of git.sv.nongnu.org:/srv/git/nmh
David Levine [Wed, 29 Feb 2012 22:36:59 +0000 (16:36 -0600)]
Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh

Conflicts:
docs/historical/README

12 years agoRemoved the sources to the historical documents just added, they're
David Levine [Wed, 29 Feb 2012 19:49:28 +0000 (13:49 -0600)]
Removed the sources to the historical documents just added, they're
in the mh-6.8.5 tarball.

12 years agoAdded sources to historical documents downloaded from
David Levine [Wed, 29 Feb 2012 19:49:28 +0000 (13:49 -0600)]
Added sources to historical documents downloaded from
http://stuff.mit.edu/afs/sipb/project/sipb-athena/src/mh/papers/

12 years agoFix a segfault that happens when using the -file option.
Ken Hornstein [Wed, 29 Feb 2012 13:52:26 +0000 (08:52 -0500)]
Fix a segfault that happens when using the -file option.

12 years agoArgh, I didn't mean to commit the distcomps I was using for testing!
Ken Hornstein [Wed, 29 Feb 2012 13:51:27 +0000 (08:51 -0500)]
Argh, I didn't mean to commit the distcomps I was using for testing!

12 years agodist(1) now processes drafts using mh-format! The last of the programs
Ken Hornstein [Tue, 28 Feb 2012 20:38:56 +0000 (15:38 -0500)]
dist(1) now processes drafts using mh-format!  The last of the programs
to do so!

12 years agoFix this man page for the New World Order.
Ken Hornstein [Tue, 28 Feb 2012 20:38:37 +0000 (15:38 -0500)]
Fix this man page for the New World Order.

12 years agoImprove these man pages a bit.
Ken Hornstein [Tue, 28 Feb 2012 20:29:56 +0000 (15:29 -0500)]
Improve these man pages a bit.

12 years agoAdd support for %(msg) function working when not using -digest. I can't
Ken Hornstein [Tue, 28 Feb 2012 19:45:03 +0000 (14:45 -0500)]
Add support for %(msg) function working when not using -digest.  I can't
imagine what someone would use it for but it's cheap to do, so why not?

12 years agoPart of the patch from bug #4301; clean up our prototypes, a lot. Still
Ken Hornstein [Tue, 28 Feb 2012 15:32:41 +0000 (10:32 -0500)]
Part of the patch from bug #4301; clean up our prototypes, a lot.  Still
plenty of work to do!

12 years agoAdded docs/historical/. See README for where they were found.
David Levine [Wed, 29 Feb 2012 04:05:55 +0000 (22:05 -0600)]
Added docs/historical/.  See README for where they were found.

12 years agoMerge branch 'master' of git.sv.nongnu.org:/srv/git/nmh
David Levine [Tue, 28 Feb 2012 03:12:22 +0000 (21:12 -0600)]
Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh

12 years agoRemoved blank line after "End of Forwarded Message" lines. It's
David Levine [Tue, 28 Feb 2012 03:10:47 +0000 (21:10 -0600)]
Removed blank line after "End of Forwarded Message" lines.  It's
always bothered me.

12 years agoAdd the note about the burst(1) change to pending-release-notes.
Ken Hornstein [Tue, 28 Feb 2012 03:11:34 +0000 (22:11 -0500)]
Add the note about the burst(1) change to pending-release-notes.

12 years agoFix bug #1466. It turns out that RFC 934 specifies that any line starting
Ken Hornstein [Tue, 28 Feb 2012 03:05:41 +0000 (22:05 -0500)]
Fix bug #1466.  It turns out that RFC 934 specifies that any line starting
with a "-" but NOT followed by a space is a valid message delimiter.  We
only supported one type of message delimiter.  Adapt the code so any
valid delimiter is supported.

12 years agoAdded cast in conditional to prevent signed/unsigned comparison, and wrapped argument...
David Levine [Tue, 28 Feb 2012 02:56:58 +0000 (20:56 -0600)]
Added cast in conditional to prevent signed/unsigned comparison, and wrapped argument to prevent warning about unused argument when built without SASL support.

12 years agoChanged domains in man page and test examples to use example.com
David Levine [Tue, 28 Feb 2012 02:50:29 +0000 (20:50 -0600)]
Changed domains in man page and test examples to use example.com

12 years agoFixed to report failure if getfulname hadn't been built yet.
David Levine [Tue, 28 Feb 2012 02:42:19 +0000 (20:42 -0600)]
Fixed to report failure if getfulname hadn't been built yet.

12 years agoThey test with output to a tty didn't work under make distcheck. Tried to work aroun...
David Levine [Tue, 28 Feb 2012 02:40:15 +0000 (20:40 -0600)]
They test with output to a tty didn't work under make distcheck.  Tried to work around it by writing directly to /dev/tty, if that's available.

12 years agoAdd support for -nosasl and -saslmaxssf switches.
Ken Hornstein [Tue, 28 Feb 2012 01:50:49 +0000 (20:50 -0500)]
Add support for -nosasl and -saslmaxssf switches.

12 years agoDocument changes to forw(1).
Ken Hornstein [Mon, 27 Feb 2012 19:13:02 +0000 (14:13 -0500)]
Document changes to forw(1).

12 years agoClean up some typos in here.
Ken Hornstein [Mon, 27 Feb 2012 19:12:34 +0000 (14:12 -0500)]
Clean up some typos in here.

12 years agoGot the forw -digest test working.
Ken Hornstein [Mon, 27 Feb 2012 18:45:37 +0000 (13:45 -0500)]
Got the forw -digest test working.

12 years agoUpdate digestcomps and forwcomps with comments and better formatting.
Ken Hornstein [Mon, 27 Feb 2012 18:37:09 +0000 (13:37 -0500)]
Update digestcomps and forwcomps with comments and better formatting.

12 years agoMake -volume switch actually work (it always got overridden). As far
Ken Hornstein [Mon, 27 Feb 2012 17:56:00 +0000 (12:56 -0500)]
Make -volume switch actually work (it always got overridden).  As far
as I can tell, this never worked.  Found by the test suite!

12 years agoRemove the forw-digest test until we have it working.
Ken Hornstein [Mon, 27 Feb 2012 02:29:44 +0000 (21:29 -0500)]
Remove the forw-digest test until we have it working.

12 years agoA test for forw -digest. It doesn't quite work yet.
Ken Hornstein [Mon, 27 Feb 2012 02:29:01 +0000 (21:29 -0500)]
A test for forw -digest.  It doesn't quite work yet.

12 years agoFix up some of the pick tests:
Ken Hornstein [Mon, 27 Feb 2012 02:14:04 +0000 (21:14 -0500)]
Fix up some of the pick tests:

- Change sed invocation around to get rid of GNU sed extensions
- Put explicit times in the pick tests (if you don't, it uses the current
  hour/minutes as the timestamp, which means it could work or not work
  depending on what time of day you run the tests).

12 years agoUpdate the pending release notes with new features.
Ken Hornstein [Sun, 26 Feb 2012 18:02:41 +0000 (13:02 -0500)]
Update the pending release notes with new features.

12 years agoAdd a new README documenting the changes to the components files.
Ken Hornstein [Sun, 26 Feb 2012 17:45:48 +0000 (12:45 -0500)]
Add a new README documenting the changes to the components files.

12 years agoBeginnings of a test suite for the mh-format support in forw.
Ken Hornstein [Sun, 26 Feb 2012 17:12:28 +0000 (12:12 -0500)]
Beginnings of a test suite for the mh-format support in forw.

12 years agoAdded test-pick.
David Levine [Sun, 26 Feb 2012 16:55:46 +0000 (10:55 -0600)]
Added test-pick.

12 years agoSuppress echoing of man page build lines. One of them says "warning", and it's handy...
David Levine [Sun, 26 Feb 2012 16:32:29 +0000 (10:32 -0600)]
Suppress echoing of man page build lines.  One of them says "warning", and it's handy to check that build output doesn't say that.

12 years agoChanged type of a local to unsigned and removed local ncomps to suppress compile...
David Levine [Sun, 26 Feb 2012 16:10:35 +0000 (10:10 -0600)]
Changed type of a local to unsigned and removed local ncomps to suppress compile warnings.

12 years agoAdded gcov and gcov-clean targets.
David Levine [Sun, 26 Feb 2012 16:09:35 +0000 (10:09 -0600)]
Added gcov and gcov-clean targets.

12 years agoFinally, some support for mh-format when using forw(1). Still needs some
Ken Hornstein [Sun, 26 Feb 2012 05:09:52 +0000 (00:09 -0500)]
Finally, some support for mh-format when using forw(1).  Still needs some
tests.

12 years agoCreate a test for the new mh-format processing available in comp(1).
Ken Hornstein [Thu, 23 Feb 2012 17:03:09 +0000 (12:03 -0500)]
Create a test for the new mh-format processing available in comp(1).

12 years agoAdded test-flist and test-mark sequences tests.
David Levine [Thu, 23 Feb 2012 04:23:05 +0000 (22:23 -0600)]
Added test-flist and test-mark sequences tests.

12 years agoDon't list _sysconfdir/ directory in RPM spec. We don't list any other directories...
David Levine [Thu, 23 Feb 2012 04:21:56 +0000 (22:21 -0600)]
Don't list _sysconfdir/ directory in RPM spec.  We don't list any other directories, so now it will be created with the same permissions as all of the others.

12 years agoRemoved reference to mhost.com.
David Levine [Wed, 22 Feb 2012 01:35:05 +0000 (19:35 -0600)]
Removed reference to mhost.com.

12 years agoUpdated to reflect that all of the lists are on nongnu.org.
David Levine [Wed, 22 Feb 2012 01:34:33 +0000 (19:34 -0600)]
Updated to reflect that all of the lists are on nongnu.org.

12 years agoWith "make rpm", configure all modified files in sysconfdir (etc) to be saved when...
David Levine [Wed, 22 Feb 2012 01:31:08 +0000 (19:31 -0600)]
With "make rpm", configure all modified files in sysconfdir (etc) to be saved when erasing or upgrading the package.  Also, leave the doc directory whereever "make install" puts it.

12 years agoAdd support for a -subject switch to comp.
Ken Hornstein [Tue, 21 Feb 2012 20:56:06 +0000 (15:56 -0500)]
Add support for a -subject switch to comp.

12 years agoSwitch from (me) to (localmbox) to make -cc me work correctly.
Ken Hornstein [Tue, 21 Feb 2012 17:58:50 +0000 (12:58 -0500)]
Switch from (me) to (localmbox) to make -cc me work correctly.

12 years agoMigrated a couple more tests to use run_test() in common.sh.
David Levine [Tue, 21 Feb 2012 04:02:26 +0000 (22:02 -0600)]
Migrated a couple more tests to use run_test() in common.sh.

12 years agoPut default From: headers in these component files, and document the
Ken Hornstein [Mon, 20 Feb 2012 05:31:14 +0000 (00:31 -0500)]
Put default From: headers in these component files, and document the
components file now that we can have comments.

12 years agoClean up documentation formatting
Ken Hornstein [Mon, 20 Feb 2012 05:31:01 +0000 (00:31 -0500)]
Clean up documentation formatting

12 years agoRemoved unused local ncomps because gcc complained about it.
David Levine [Mon, 20 Feb 2012 04:29:14 +0000 (22:29 -0600)]
Removed unused local ncomps because gcc complained about it.

12 years agoAdd support for "to", "cc", "from", and "fcc" components via command-line
Ken Hornstein [Mon, 20 Feb 2012 00:59:06 +0000 (19:59 -0500)]
Add support for "to", "cc", "from", and "fcc" components via command-line
switches.

12 years agoFix a bug leftover from the Automake conversion; the AC_SUBST'd variable
Ken Hornstein [Sun, 19 Feb 2012 23:03:26 +0000 (18:03 -0500)]
Fix a bug leftover from the Automake conversion; the AC_SUBST'd variable
names are really editorpath and pagerpath, use those instead.

12 years agoKen noted that "make check" can be run before installation because the only program...
David Levine [Sun, 19 Feb 2012 04:36:50 +0000 (22:36 -0600)]
Ken noted that "make check" can be run before installation because the only program in lib that the tests currently use is mhlproc, and we have an mhlproc entry in the test .mh_profile for that.  Added showproc and postproc entries in case they're ever needed.

12 years agoMoved "make check" to after "make install".
David Levine [Sat, 18 Feb 2012 23:32:15 +0000 (17:32 -0600)]
Moved "make check" to after "make install".

12 years agogcc was warning about unused arguments to main, so added use of them in a usage check.
David Levine [Sat, 18 Feb 2012 23:31:37 +0000 (17:31 -0600)]
gcc was warning about unused arguments to main, so added use of them in a usage check.

12 years agoConsolidated runtest and check_string test functions.
David Levine [Sat, 18 Feb 2012 23:30:47 +0000 (17:30 -0600)]
Consolidated runtest and check_string test functions.

12 years agoHave each test clean up after itself if it completes successfully.
David Levine [Sat, 18 Feb 2012 17:21:28 +0000 (11:21 -0600)]
Have each test clean up after itself if it completes successfully.

12 years agoAdded mhpath test. Updated mhpath man page to reflect actual behavior for a message...
David Levine [Sat, 18 Feb 2012 15:42:04 +0000 (09:42 -0600)]
Added mhpath test.  Updated mhpath man page to reflect actual behavior for a message number greater than that of the highest existing message in a folder.

12 years agoThe test check() function now removes the expected and actual output files if they...
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.

12 years agoInitialized local "in" to suppress gcc warning about possible uninitialized use.
David Levine [Sat, 18 Feb 2012 01:10:08 +0000 (19:10 -0600)]
Initialized local "in" to suppress gcc warning about possible uninitialized use.

12 years agoEnclosed program name and directory in double quotes so that they can contain whitespace.
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.

12 years agoHere's the proper fix instead of the hack of d28ce569fe233141f86fe516878361da01c9f9cb...
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.

12 years agoBeginning support for mh-format support in comp(1). Includes changes to
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.

12 years agoSigh. Looks like we need a function after all; create a new function
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).

12 years agoSwitch to including h/mts.h for getusername() prototype.
Ken Hornstein [Fri, 17 Feb 2012 19:02:44 +0000 (14:02 -0500)]
Switch to including h/mts.h for getusername() prototype.

12 years agoAdded a couple of NMH_UNUSED's to suppress warnings when building without Cyrus SASL.
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.

12 years agoHacked to work with make distcheck. Maybe not the best way but it works for now.
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.

12 years agoMoved check() function from individual tests to common.sh.
David Levine [Fri, 17 Feb 2012 04:02:21 +0000 (22:02 -0600)]
Moved check() function from individual tests to common.sh.

12 years agoRearranged test suite environment variables so that individual tests
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.

12 years agoReport an error when the width used by putaddr is less than the label width.
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.

12 years agoHopefully made the format documentation a little bit clearer.
Ken Hornstein [Thu, 16 Feb 2012 05:17:49 +0000 (00:17 -0500)]
Hopefully made the format documentation a little bit clearer.

12 years agoFix typo in repl man page.
Ken Hornstein [Thu, 16 Feb 2012 02:45:13 +0000 (21:45 -0500)]
Fix typo in repl man page.

12 years agoCreate test cases for the new format functions for local address writing.
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.

12 years agoMake it so we do NOT check our address against the "local" userid and
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.

12 years agoSigh. Turns out the first entry in the list isn't actually checked, so
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.

12 years agoHm, it turns out we need to make sure we call getname() until we get
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.

12 years agoBeginning of support for the Local-Mailbox profile entry.
Ken Hornstein [Wed, 15 Feb 2012 16:36:36 +0000 (11:36 -0500)]
Beginning of support for the Local-Mailbox profile entry.

12 years agoSupport getting the "fullname" out of the Signature profile setting.
Ken Hornstein [Wed, 15 Feb 2012 15:48:52 +0000 (10:48 -0500)]
Support getting the "fullname" out of the Signature profile setting.

12 years agoUpdated documentation of environment variables in mh-profile man page.
David Levine [Wed, 15 Feb 2012 02:47:06 +0000 (20:47 -0600)]
Updated documentation of environment variables in mh-profile man page.

12 years agoAdd two new format functions: %(myhost) and %(myname).
Ken Hornstein [Wed, 15 Feb 2012 01:24:43 +0000 (20:24 -0500)]
Add two new format functions: %(myhost) and %(myname).

12 years agoChanged "make test" to "make check".
David Levine [Tue, 14 Feb 2012 01:55:53 +0000 (19:55 -0600)]
Changed "make test" to "make check".

12 years agoFixed progress indicator.
David Levine [Tue, 14 Feb 2012 01:54:41 +0000 (19:54 -0600)]
Fixed progress indicator.

12 years agoAnother problem discovered by the test suite.
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.

12 years agocorrect the maximum number of sequences in the mark(1) man page
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.

12 years agomhshow: suppress pause actions if stdout isn't a tty
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.

12 years agoFix this so it works when valgrind is installed.
Ken Hornstein [Sat, 11 Feb 2012 04:38:40 +0000 (23:38 -0500)]
Fix this so it works when valgrind is installed.

12 years agoSwitch over to using the template files out of our inst directory.
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.