mmh
12 years agoUpdate for changes to post.
Ken Hornstein [Fri, 16 Mar 2012 15:37:31 +0000 (11:37 -0400)]
Update for changes to post.

12 years agoCreate new switches -atfile and -noatfile to control the creation of the @
Ken Hornstein [Fri, 16 Mar 2012 15:32:35 +0000 (11:32 -0400)]
Create new switches -atfile and -noatfile to control the creation of the @
file when repl'ing or dist'ing a message.

12 years agoUpdate post(8) regarding the New World Order.
Ken Hornstein [Fri, 16 Mar 2012 04:21:35 +0000 (00:21 -0400)]
Update post(8) regarding the New World Order.

12 years agoWhoops, forgot to put "." before some of the suffixes.
Ken Hornstein [Fri, 16 Mar 2012 03:14:48 +0000 (23:14 -0400)]
Whoops, forgot to put "." before some of the suffixes.

12 years agoAdd some more default MIME content suffixes.
Ken Hornstein [Fri, 16 Mar 2012 03:09:41 +0000 (23:09 -0400)]
Add some more default MIME content suffixes.

12 years agoCall readconfig() on mhn.defaults so we get default entries in for use
Ken Hornstein [Fri, 16 Mar 2012 03:00:06 +0000 (23:00 -0400)]
Call readconfig() on mhn.defaults so we get default entries in for use
with attach.

12 years agoA test for the group addressing functionality handled by "post".
Ken Hornstein [Fri, 16 Mar 2012 02:23:20 +0000 (22:23 -0400)]
A test for the group addressing functionality handled by "post".

12 years agoRemove all masquerade support (draft_from is now the default, and the other
Ken Hornstein [Thu, 15 Mar 2012 19:54:02 +0000 (15:54 -0400)]
Remove all masquerade support (draft_from is now the default, and the other
two can be accomplished via the components file).

12 years agoClean up prototypes.
Ken Hornstein [Thu, 15 Mar 2012 17:55:15 +0000 (13:55 -0400)]
Clean up prototypes.

12 years agoFix some warnings.
Ken Hornstein [Thu, 15 Mar 2012 17:04:38 +0000 (13:04 -0400)]
Fix some warnings.

12 years agoI guess the -i option to sed works differently on Linux and MacOS
Ken Hornstein [Thu, 15 Mar 2012 15:55:34 +0000 (11:55 -0400)]
I guess the -i option to sed works differently on Linux and MacOS
X; deal with it.

12 years agoInitialized local format_len. gcc on 64-bit Linux warned about it.
David Levine [Thu, 15 Mar 2012 02:05:16 +0000 (21:05 -0500)]
Initialized local format_len.  gcc on 64-bit Linux warned about it.

12 years agoNew test suite for "post"; uses fakesmtp to trap the SMTP protocol.
Ken Hornstein [Thu, 15 Mar 2012 01:15:54 +0000 (21:15 -0400)]
New test suite for "post"; uses fakesmtp to trap the SMTP protocol.

12 years agoMake sure we don't send Envelope-From if we're using spost.
Ken Hornstein [Thu, 15 Mar 2012 01:15:17 +0000 (21:15 -0400)]
Make sure we don't send Envelope-From if we're using spost.

12 years agoA new test program, fakesmtp, to help us test post.
Ken Hornstein [Wed, 14 Mar 2012 19:51:22 +0000 (15:51 -0400)]
A new test program, fakesmtp, to help us test post.

12 years agoFix the SMTP code so it doesn't end up in a hard loop during a DATA
Ken Hornstein [Wed, 14 Mar 2012 19:47:01 +0000 (15:47 -0400)]
Fix the SMTP code so it doesn't end up in a hard loop during a DATA
command.

12 years agoDisabled the optimization to stop stat'ing directory entries in
David Levine [Wed, 14 Mar 2012 03:28:03 +0000 (22:28 -0500)]
Disabled the optimization to stop stat'ing directory entries in
BuildFolderListRecurse() of flist.c under conditions where st_nlink is
set to 1.  That happens on Cygwin, for example:
  http://cygwin.com/ml/cygwin-apps/2008-08/msg00264.html

12 years agoChanged output_md5() to output just the checksum. If the filename
David Levine [Wed, 14 Mar 2012 03:01:52 +0000 (22:01 -0500)]
Changed output_md5() to output just the checksum.  If the filename
needs to appear on the same line, the caller needs to add it.  This
avoids differences due to a leading '*' binary file indicator, even
for text files, on Cygwin.

12 years agoAdded test/getfqnd.c, a replacement for "hostname" that always
David Levine [Wed, 14 Mar 2012 02:20:47 +0000 (21:20 -0500)]
Added test/getfqnd.c, a replacement for "hostname" that always
tries to provide the fully qualified domainname of the host, even
on Cygwin.  It uses the code that LocalName in sbr/mts.c uses.

12 years agoOn some platforms, need to be out of $SPDIR in order to remove it.
David Levine [Wed, 14 Mar 2012 00:58:33 +0000 (19:58 -0500)]
On some platforms, need to be out of $SPDIR in order to remove it.
So do that in test/whatnow/test-ls.

12 years agoPromote uid_t value to long and print with %ld to prevent compile
David Levine [Wed, 14 Mar 2012 00:56:06 +0000 (19:56 -0500)]
Promote uid_t value to long and print with %ld to prevent compile
warning on platforms, such as Cygwin, where it is a long.

12 years agoModify getfullname so it performs the same processing that
Ken Hornstein [Tue, 13 Mar 2012 19:25:41 +0000 (15:25 -0400)]
Modify getfullname so it performs the same processing that
mts.c:getuserinfo() does.

12 years agoCreate proper prototypes for formataddr() and concataddr().
Ken Hornstein [Tue, 13 Mar 2012 19:15:42 +0000 (15:15 -0400)]
Create proper prototypes for formataddr() and concataddr().

12 years agoNew changes: Sender: cannot be blank, Sender: always overrides From:
Ken Hornstein [Tue, 13 Mar 2012 02:52:21 +0000 (22:52 -0400)]
New changes: Sender: cannot be blank, Sender: always overrides From:
for SMTP envelope, and Envelope-From: will cause a Sender: header to be
output if multiple From: addresses are used.

12 years agoRequire From: header in all outgoing messages.
Ken Hornstein [Mon, 12 Mar 2012 01:47:04 +0000 (21:47 -0400)]
Require From: header in all outgoing messages.
Allow Sender: header (require if multiple addresses are in From:).
Support new Envelope-From: header for overriding post's choice of
SMTP envelope-from address.

12 years agoAdd support for a -notls switch, for consistency's sake.
Ken Hornstein [Sun, 11 Mar 2012 22:08:03 +0000 (18:08 -0400)]
Add support for a -notls switch, for consistency's sake.

12 years agoClean up a bunch of unused code and options. Specifically:
Ken Hornstein [Sun, 11 Mar 2012 03:55:16 +0000 (22:55 -0500)]
Clean up a bunch of unused code and options.  Specifically:

- Remove support for SMTP SEND, SAML, and SOML commands
- Remove -deliver, -fill-in and -fill-up switch for post (and related code)
- Document -server and -port switches better in post man page.

12 years agoSMTPMTS has been the default for over a decade, so it's time to get rid of
Ken Hornstein [Tue, 6 Mar 2012 14:25:00 +0000 (09:25 -0500)]
SMTPMTS has been the default for over a decade, so it's time to get rid of
the #ifdefs to clean up the code a bit.

12 years agoFixed mhstore to honor nmh-storage profile entry even with -auto [Bug #35303].
David Levine [Mon, 12 Mar 2012 00:52:38 +0000 (19:52 -0500)]
Fixed mhstore to honor nmh-storage profile entry even with -auto [Bug #35303].

12 years agoThere were two fd leaks in mhparse.c:
David Levine [Sun, 11 Mar 2012 02:33:24 +0000 (20:33 -0600)]
There were two fd leaks in mhparse.c:
1) In openQuoted(), the decoded contents file was opened twice in
   succession. The second open was added by a patch in March 2000.
2) openBase64(), openQuoted(), and open7Bit() could open the contents
   file, but it never would be closed. Added code to each to close the
   file if the function opened it.
[Bug #24004: (debbug 344182)]

12 years agoReplaced UTC-8 with UTF-8.
David Levine [Sat, 10 Mar 2012 16:45:01 +0000 (10:45 -0600)]
Replaced UTC-8 with UTF-8.

12 years agoRemoved bash-ism from test-pick.
David Levine [Sat, 10 Mar 2012 16:44:30 +0000 (10:44 -0600)]
Removed bash-ism from test-pick.

12 years agoEnabled all groff warnings, with -ww, in manpages test. Fixed a bunch
David Levine [Fri, 9 Mar 2012 03:29:28 +0000 (21:29 -0600)]
Enabled all groff warnings, with -ww, in manpages test.  Fixed a bunch
of minor problems that it revealed.

12 years agoFixed mhlist -verbose to work with all content types [Bug #35219].
David Levine [Fri, 9 Mar 2012 03:09:59 +0000 (21:09 -0600)]
Fixed mhlist -verbose to work with all content types [Bug #35219].

12 years ago1) Removed -noverbose from defaults of mhshow man page. While it
David Levine [Fri, 9 Mar 2012 02:19:53 +0000 (20:19 -0600)]
1) Removed -noverbose from defaults of mhshow man page.  While it
   accepts -verbose/-noverbose, it ignores them.
2) Added -verbose/-noverbose to mhlist synopsis.

12 years agoAdded test-refile.
David Levine [Thu, 8 Mar 2012 04:08:03 +0000 (22:08 -0600)]
Added test-refile.

12 years agoReplaced us-ascii with iso-8859-1 in examples, just because.
David Levine [Thu, 8 Mar 2012 02:20:13 +0000 (20:20 -0600)]
Replaced us-ascii with iso-8859-1 in examples, just because.

12 years agoAdded test-mhparam and test-mhstore.
David Levine [Wed, 7 Mar 2012 03:57:16 +0000 (21:57 -0600)]
Added test-mhparam and test-mhstore.

12 years agoRemoved all traces of rmfproc. It had been used by bbl but was
David Levine [Wed, 7 Mar 2012 01:57:22 +0000 (19:57 -0600)]
Removed all traces of rmfproc.  It had been used by bbl but was
no longer used.

12 years agoSome of the man pages had mentioned that arguments should be
David Levine [Wed, 7 Mar 2012 01:08:21 +0000 (19:08 -0600)]
Some of the man pages had mentioned that arguments should be
double-quoted to protect them from the shell.  Removed "double-"
because single quoting is fine, too.

12 years agoEscape spaces in DEFAULTS sections of man pages so they no longer are lost.
David Levine [Wed, 7 Mar 2012 00:52:41 +0000 (18:52 -0600)]
Escape spaces in DEFAULTS sections of man pages so they no longer are lost.

12 years agoRemoved ignored -verbose (and -noverbose) options to mhstore, just in the man pages...
David Levine [Wed, 7 Mar 2012 00:51:12 +0000 (18:51 -0600)]
Removed ignored -verbose (and -noverbose) options to mhstore, just in the man pages.  The code remains unchanged.

12 years agoFixed example to show that mhparam preserves case of component name.
David Levine [Wed, 7 Mar 2012 00:49:27 +0000 (18:49 -0600)]
Fixed example to show that mhparam preserves case of component name.

12 years agoInitialized local wasdlm to prevent uninitialized use.
David Levine [Wed, 7 Mar 2012 00:48:21 +0000 (18:48 -0600)]
Initialized local wasdlm to prevent uninitialized use.

12 years agoFinally got a reasonable burst test working.
Ken Hornstein [Mon, 5 Mar 2012 18:55:04 +0000 (13:55 -0500)]
Finally got a reasonable burst test working.

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.