David Levine [Sat, 21 Jul 2012 17:19:18 +0000 (12:19 -0500)]
Added check to notpost for presence of Resent-From:.
David Levine [Sat, 21 Jul 2012 17:01:41 +0000 (12:01 -0500)]
If post or send fail, exit with their exit status.
David Levine [Sat, 21 Jul 2012 16:58:57 +0000 (11:58 -0500)]
Removed #ifndef RAND/#endif that no longer had any effect.
Harvey Eneman [Sat, 21 Jul 2012 16:57:29 +0000 (11:57 -0500)]
Fixed the default rcvdistcomps and rcvdistcomps.outbox to to insert
the Resent-From: header.
David Levine [Sun, 15 Jul 2012 18:35:42 +0000 (13:35 -0500)]
Removed debugging statement and added comments to the duplicate check
of readconfig ().
David Levine [Thu, 12 Jul 2012 02:37:39 +0000 (21:37 -0500)]
Added -mts switch to post, send, and whom. Replaced test-sendmail-pipe
with test-mts.
David Levine [Tue, 10 Jul 2012 03:49:59 +0000 (22:49 -0500)]
Removed -m from sendmail invocation with sendmail/pipe. Modern
sendmail and postfix, at least, ignore it.
David Levine [Tue, 10 Jul 2012 02:25:36 +0000 (21:25 -0500)]
Correction to previous commit,
704bdde497da69854846d51d86c440fc980c5489,
to restore the behavior when using SMTP and with any blind addresses.
Don't quit the SMTP session between sending the message and bcc's, but
instead reset it.
David Levine [Tue, 10 Jul 2012 00:47:47 +0000 (19:47 -0500)]
Removed use of the ONEX sendmail verb. It is obsolete,
according to http://smtpfilter.sourceforge.net/esmtp.html.
And was removed over 10 years ago from sendmail (8.12),
according to http://www.irbs.net/internet/postfix/0111/2237.html.
David Levine [Tue, 10 Jul 2012 00:15:13 +0000 (19:15 -0500)]
Renamed "sendmail" mts method to "sendmail/smtp", allowing "sendmail"
as an alias. Renamed "pipe" to "sendmail/pipe".
David Levine [Mon, 9 Jul 2012 04:17:04 +0000 (23:17 -0500)]
spost(8) has been merged into post(8). Its functionality is
enabled by selecting the "pipe" mail transport method in
etc/mts.conf, which in turn can be configured using
--with-mts=pipe. The spost -noalias, -backup/-nobackup,
-push/-nopush, and -remove/-noremove switches are not
supported by post. Note that spost did not support -whom or
Dcc, and neither does post when using mts: pipe. spost is
now deprecated.
David Levine [Wed, 4 Jul 2012 14:57:49 +0000 (09:57 -0500)]
Added test-packf.
David Levine [Wed, 4 Jul 2012 12:27:15 +0000 (07:27 -0500)]
test-prompter: removed an unused input that was piped to the
program because it sometimes caused printf to complain about a
write error.
David Levine [Wed, 4 Jul 2012 01:50:23 +0000 (20:50 -0500)]
Filtered out "From " lines when comparing mboxes because their
timestamps sometimes differed by a second.
David Levine [Mon, 2 Jul 2012 01:20:42 +0000 (20:20 -0500)]
Updated pending-release-notes.
David Levine [Mon, 2 Jul 2012 00:24:36 +0000 (19:24 -0500)]
Rather than fix the reported bug, backslash in commented lines
in alias file is interpreted, I documented that behavior in
the mh-format man page and etc/MailAliases. This behavior is
unfortunate, but it is a result of the implementation of nmh's
vfgets() function. That function is used by other callers
that expect the behavior. [Bug #23553]
David Levine [Mon, 2 Jul 2012 00:20:22 +0000 (19:20 -0500)]
Added test-dp, test-fmtdump, test-prompter, test-rcvstore,
test-rcvpack, and test-rcvdist.
David Levine [Sun, 1 Jul 2012 21:44:43 +0000 (16:44 -0500)]
Applied patch #5571, Propagate Mail-Followup-To.
Also clarified man page: replgroupcomps won't be used if you
specify another forms file on the command line or in your profile.
David Levine [Sun, 1 Jul 2012 15:21:22 +0000 (10:21 -0500)]
Added note that mhmail does not read context file itself.
David Levine [Sun, 1 Jul 2012 15:09:06 +0000 (10:09 -0500)]
Removed unused #ifdef NRTC and reference to its contents in the
rcvdist man page.
David Levine [Sun, 1 Jul 2012 14:14:27 +0000 (09:14 -0500)]
Updated man page descriptions of Msg-Protect: it defaults to 0600 and
is not supported on some filesystems, such as FAT32.
David Levine [Sun, 1 Jul 2012 13:32:18 +0000 (08:32 -0500)]
Wrapped some shell variables with quotes so the tests have a chance of
running if the current directory has a character such as a space in
it. Though the tests themselves need the same help for them to work.
Also, added mention of Heirloom shell to test/README.
David Levine [Fri, 29 Jun 2012 02:59:47 +0000 (21:59 -0500)]
Replaced utilities that operate on pbm files with those that operate
on pnm files, per the bug report referenced below (from Dec 2005!).
And changed the mhshow-show-image/x-pbm mime type to
mhshow-show-image/x-pnm. [Bug #15152]
David Levine [Fri, 29 Jun 2012 02:19:06 +0000 (21:19 -0500)]
Removed BUGS section at end of rcvstore(1) man page. It
said to not use rcvstore if you use the "Unseen-Sequence"
profile entry because the context (sequences file, actually)
could be corrupted if multiple nmh processes tried to update
it simultaneously. The locking added by commit
82a21b6f3cddf8ab048dcb02c080ea9797c73c5a serialized that
simultaneous update. [Bug #4361]
David Levine [Fri, 29 Jun 2012 02:12:13 +0000 (21:12 -0500)]
Removed the one remaining unused #ifdef ISI.
David Levine [Fri, 29 Jun 2012 02:11:07 +0000 (21:11 -0500)]
Simplified getm() a bit, removing a goto.
David Levine [Fri, 29 Jun 2012 01:59:23 +0000 (20:59 -0500)]
Fixed ismymbox() to look at Local-Mailbox as well as
Alternate-Mailboxes. The problem was that when an alternate
mailbox was added to the list, the node for the local
mailbox information was lost. Added check to test-mymbox.
Added test-repl, because this is where it was first noticed.
Also enhanced output with MHWDEBUG set to show the entire
list, not just each alternate mailbox as it is added to the
list. [Bug #36635].
David Levine [Mon, 25 Jun 2012 13:42:14 +0000 (08:42 -0500)]
Deprecated mhtest.
David Levine [Mon, 25 Jun 2012 13:21:03 +0000 (08:21 -0500)]
Removed unused UUCPDIR and UUCPFIL #defines.
David Levine [Mon, 25 Jun 2012 03:26:27 +0000 (22:26 -0500)]
Added test-sortm. Also clarified some details in the sortm man page.
David Levine [Mon, 25 Jun 2012 00:03:05 +0000 (19:03 -0500)]
Added status to conflict(8) man page to note that it is deprecated.
David Levine [Sat, 23 Jun 2012 14:55:01 +0000 (09:55 -0500)]
Allow optional -to in front of To: addresses with mhmail.
David Levine [Sat, 23 Jun 2012 13:04:08 +0000 (08:04 -0500)]
Added checks for missing mandatory arguments to mhmail.
David Levine [Fri, 22 Jun 2012 15:45:33 +0000 (10:45 -0500)]
Changed -header-field to -headerfield. And refer to its argument
as name:value instead of name:body, to avoid the obvious confusion.
Lyndon Nerenberg [Thu, 21 Jun 2012 18:11:40 +0000 (11:11 -0700)]
Default to flock() locking on OpenBSD and Darwin.
David Levine [Thu, 21 Jun 2012 00:19:31 +0000 (19:19 -0500)]
Refined
48959daf724bb10802ca489654035f69e701efc0 by setting up a
LN variable in the Makefile that can be used to override the
link command at install time. For example, on Cygwin, LN will be
configured to cp. If installing on an NTFS filesystem, the user
could install with make LN=ln to use ln instead of cp.
David Levine [Thu, 21 Jun 2012 00:16:18 +0000 (19:16 -0500)]
Truncated -help test in test-whom because its output depends on whether
sasl support was configured in. It's not configured in by distcheck.
David Levine [Wed, 20 Jun 2012 14:09:24 +0000 (09:09 -0500)]
For whatever reason, gcov got fooled by test-whom until a test of
-help was added.
David Levine [Wed, 20 Jun 2012 13:13:46 +0000 (08:13 -0500)]
Quoted a bunch of shell variables in build_nmh.
David Levine [Wed, 20 Jun 2012 02:30:54 +0000 (21:30 -0500)]
Added test-ali.
David Levine [Wed, 20 Jun 2012 01:36:14 +0000 (20:36 -0500)]
Added printout to build_nmh to report number of tests not run.
David Levine [Wed, 20 Jun 2012 01:15:18 +0000 (20:15 -0500)]
Added a few clarifications and more DEFAULTS to mhmail(1) man page.
David Levine [Wed, 20 Jun 2012 00:54:04 +0000 (19:54 -0500)]
Refinement to
e30560d793ff5bc704dadc2eab9d31100ad4636b: don't
warn about profile components that are null, e.g.,
: This could be a comment.
or just a hash, e.g.,
David Levine [Tue, 19 Jun 2012 15:29:47 +0000 (10:29 -0500)]
Changed permissions from 0755 to 0644 on a few .c files.
David Levine [Tue, 19 Jun 2012 15:25:54 +0000 (10:25 -0500)]
Forget to add test/mhmail/attachment.txt to last commit.
David Levine [Tue, 19 Jun 2012 15:13:28 +0000 (10:13 -0500)]
Added -attach switch to mhmail.
David Levine [Tue, 19 Jun 2012 02:49:01 +0000 (21:49 -0500)]
Moved test-mhmail to its own test directory.
David Levine [Tue, 19 Jun 2012 02:30:58 +0000 (21:30 -0500)]
Added mention of checkbashims script to test/README. And fixed
false positive that it reported for test-mhmail.
David Levine [Tue, 19 Jun 2012 02:28:26 +0000 (21:28 -0500)]
Added -header-field switch to mhmail.
David Levine [Mon, 18 Jun 2012 23:25:10 +0000 (18:25 -0500)]
Added Jerrad Pierce's suggestion to use -editor prompter.
David Levine [Mon, 18 Jun 2012 03:56:23 +0000 (22:56 -0500)]
Removed possible tmp file leak.
David Levine [Mon, 18 Jun 2012 03:51:51 +0000 (22:51 -0500)]
mhmail now supports -profile -resend.
David Levine [Mon, 18 Jun 2012 01:59:16 +0000 (20:59 -0500)]
Here's a better fix that
e194fdf11df779597e19039a67454e9b42a77ef0
for support `mhparam libdir` under "make distcheck": explicitly
set libdir in the profile.
David Levine [Sun, 17 Jun 2012 20:25:28 +0000 (15:25 -0500)]
Replaced mhmail -debug switch with -nosend, and added -send.
David Levine [Sun, 17 Jun 2012 19:35:14 +0000 (14:35 -0500)]
Added -resent support to mhmail. It doesn't work with -profile, though.
David Levine [Sat, 16 Jun 2012 15:56:53 +0000 (10:56 -0500)]
Fixed warning introduced by last change to man/mhmail.man.
David Levine [Sat, 16 Jun 2012 15:08:18 +0000 (10:08 -0500)]
Removed extra [ from synopsis.
David Levine [Sat, 16 Jun 2012 14:24:29 +0000 (09:24 -0500)]
Replaced compiled mhmail with script that was formerly named mhmail.in.
Added test-mhmail.
David Levine [Sat, 16 Jun 2012 14:16:18 +0000 (09:16 -0500)]
Reworked to be as compatible as possible with compiled mhmail.
David Levine [Sat, 16 Jun 2012 02:00:28 +0000 (21:00 -0500)]
Added mention of mhmail as a message composition utility.
David Levine [Sat, 16 Jun 2012 01:53:03 +0000 (20:53 -0500)]
Added nmh lib directory to PATH in setup_test (). This is necessary
with "make distcheck" for scripts to access the lib directory that it
installs for testing. (The distcheck target does not configure them;
they retain their build configuration.) If we ever add a test for
etc/sendfiles, we'll have to deal with its configured %libdir%.
David Levine [Fri, 15 Jun 2012 04:28:05 +0000 (23:28 -0500)]
Fixed temporary autoconf workaround by hard-coding nmhbindir.
David Levine [Fri, 15 Jun 2012 04:17:33 +0000 (23:17 -0500)]
Add trailing newline to body, if needed.
Ken Hornstein [Thu, 14 Jun 2012 14:36:09 +0000 (10:36 -0400)]
Fix test for changes to mhparam.
Ken Hornstein [Thu, 14 Jun 2012 14:33:21 +0000 (10:33 -0400)]
Make the base64 encoder endian-agnostic, and remove the function
set_endian() since it's no longer needed.
David Levine [Thu, 14 Jun 2012 14:10:23 +0000 (09:10 -0500)]
Documented mhparam -debug option.
David Levine [Thu, 14 Jun 2012 13:54:35 +0000 (08:54 -0500)]
If heirloom shell is in /usr/lib/heirloom/5bin/sh, use it to run tests.
David Levine [Thu, 14 Jun 2012 13:35:14 +0000 (08:35 -0500)]
If post/send fail, save the draft in dead.letter, the same as
compiled mhmail.
David Levine [Thu, 14 Jun 2012 13:30:30 +0000 (08:30 -0500)]
Added etcdir and libdir. And added mention that component name
matching is case-insensitive.
Alexander Zangerl [Thu, 14 Jun 2012 12:31:40 +0000 (07:31 -0500)]
The base64-decoder doesn't work on 64-bit big-endian architectures:
mhstore and co. write files of the correct length but which consist
only of \0s.
The culprit is uip/mhparse.c, which contains a pretty ugly base64
decoder (in two places). that thing allocates a "long int" as a
container for the 24 bits that you get from four base-64 chars. the
container is then accessed both as a single entity and as a byte
array, which naturally depends on how wide the long int is and in what
order things end up in there.
The code distinguishes between big- and little-endian systems but
wrongly assumes that sizeof(long int) == 4, which isn't universally
true (quel surprise...).
The attached patch fixes the issue, but in the long run we should
insist on posix and use a64l().
David Levine [Thu, 14 Jun 2012 04:12:22 +0000 (23:12 -0500)]
Support empty message body in mhmail.in the same way as in mhmail.
David Levine [Thu, 14 Jun 2012 03:59:05 +0000 (22:59 -0500)]
Added support to mhmail.in to read message from stdin.
David Levine [Thu, 14 Jun 2012 03:32:46 +0000 (22:32 -0500)]
Removed newline before generated From:.
David Levine [Thu, 14 Jun 2012 03:19:19 +0000 (22:19 -0500)]
Added mhmail.in. start of a replacement for compiled mhmail.
David Levine [Thu, 14 Jun 2012 03:18:43 +0000 (22:18 -0500)]
Removed unnecessary comment.
David Levine [Thu, 14 Jun 2012 03:16:46 +0000 (22:16 -0500)]
Removed another faceproc relic.
David Levine [Wed, 13 Jun 2012 13:55:19 +0000 (08:55 -0500)]
Added BUGS section to mh-tailor man file to note that failure to open
mts.conf is silently ignored.. And added to its DEFAULTS section.
Also changed to consistent use of "mail transport configuration file".
David Levine [Wed, 13 Jun 2012 02:36:16 +0000 (21:36 -0500)]
Generate a From: header, using localmbox, if the user doesn't provide
a -from when sending with mhmail.
David Levine [Wed, 13 Jun 2012 02:16:34 +0000 (21:16 -0500)]
Fixed the export of LC_ALL so that it work with old Bourne shell.
Alexander Zangerl [Wed, 13 Jun 2012 02:06:44 +0000 (21:06 -0500)]
Occasionally the post tests attempt to talk to fakesmtp before that
has completly started up. Inserted a check between starting up
fakesmtp and talking to it, and delay and retry if necessary, to
avoid that scenario.
Alexander Zangerl [Wed, 13 Jun 2012 00:11:57 +0000 (19:11 -0500)]
Changed remaining uses of MAXPATHLEN to PATH_MAX.
David Levine [Tue, 12 Jun 2012 03:02:55 +0000 (22:02 -0500)]
Can't use -ansi with gcc 4.5.3 on Cygwin, at least through setup
setup version 2.763, because it disables some features in the
system system header files. Added configure check, when using gcc,
for -ansi (and don't use -pedantic without it).
Ken Hornstein [Mon, 11 Jun 2012 04:26:21 +0000 (00:26 -0400)]
Fix typo in gpg command and handle the .sig file properly.
David Levine [Mon, 11 Jun 2012 03:50:24 +0000 (22:50 -0500)]
Replaced run-time detection of hard-link support with compile- time
detection. This way, Cygwin packages can be built on NTFS or other
filesystems but still bee installed on FAT file systems, which do not
support hard links.
David Levine [Sun, 10 Jun 2012 14:58:52 +0000 (09:58 -0500)]
Added section 7 to man pages.
David Levine [Sun, 10 Jun 2012 14:53:48 +0000 (09:53 -0500)]
Updates to SPECS/build-nmh-cygwin:
1) Configure with sysconfdir=/etc/nmh so to minimize pollution of /etc.
2) Disabled install_docs because nmh's make install takes care of it.
Though it installs in /usr/share/doc/nmh/ instead of
/usr/share/doc/nmh-<version>/, that seems to be more common on Cygwin
than using the -<version>.
3) Added comments (also added to MACHINES) about the packages that would
be needed to configure with --with-cyrus-sasl and --with-tls.
David Levine [Sun, 10 Jun 2012 14:51:03 +0000 (09:51 -0500)]
Moved nmh and mh-chart man pages from section 1 to section 7.
Alexander Zangerl noted that Debian already did this, and it
seems appropriate.
Alexander Zangerl [Sun, 10 Jun 2012 14:20:08 +0000 (09:20 -0500)]
Corrected install-mh man page to show that it is installed in section 1, not 8.
Alexander Zangerl [Sun, 10 Jun 2012 14:19:20 +0000 (09:19 -0500)]
Ensure that writes to /dev/tty succeed to determine if it is writeable.
Alexander Zangerl [Sun, 10 Jun 2012 14:18:22 +0000 (09:18 -0500)]
Use cat for moreproc in testsuite in case it is run without tty.
David Levine [Sat, 9 Jun 2012 14:31:19 +0000 (09:31 -0500)]
Added warning to all nmh programs for multiple profile entries for the
same component. Until now, all but the first were silently ignored.
David Levine [Sat, 9 Jun 2012 01:59:32 +0000 (20:59 -0500)]
Added INSTALL, NEWS, and README to dist_doc_DATA so that they get installed.
David Levine [Fri, 8 Jun 2012 03:07:54 +0000 (22:07 -0500)]
Changed repl and dist default to -noatfile.
David Levine [Thu, 7 Jun 2012 16:07:00 +0000 (11:07 -0500)]
Removed docs/pending-release-notes-tmp, which was added by mistake.
David Levine [Thu, 7 Jun 2012 03:41:29 +0000 (22:41 -0500)]
Removed faceproc support, deprecated in nmh 1.5.
David Levine [Thu, 7 Jun 2012 03:02:21 +0000 (22:02 -0500)]
Removed the following environment variables, deprecated in nmh 1.5:
MHPOPDEBUG (use -snoop command line switch instead)
MM_NOASK (use -nolist and -nopause command line switches instead)
NOMHNPROC (use -nocheckmime command line switch instead)
David Levine [Thu, 7 Jun 2012 02:08:53 +0000 (21:08 -0500)]
Changed exit status of each nmh command's -version and -help switches
from 1 to 0.
Ken Hornstein [Sun, 3 Jun 2012 19:38:39 +0000 (15:38 -0400)]
Fix incorrect documentation about the install process for files in 'etc'.
Noted by Norm Shapiro.
Ken Hornstein [Sun, 3 Jun 2012 19:29:27 +0000 (15:29 -0400)]
One more lowercase for the content-transfer-encoding.
Ken Hornstein [Fri, 1 Jun 2012 14:25:37 +0000 (10:25 -0400)]
Fix off-by-one error, noticed by Ralph Corderoy.