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.
Paul Fox [Thu, 31 May 2012 19:15:36 +0000 (15:15 -0400)]
Implement the following changes:
- Special #on/#off/#pop directives to control the MIME directive
processing state
- A flag (-directives) to control whether or not mhbuild will honor MIME
directives by default.
Ken Hornstein [Thu, 31 May 2012 18:56:47 +0000 (14:56 -0400)]
Convert the content-transfer-encoding to lower-case always.
David Levine [Tue, 29 May 2012 12:57:30 +0000 (07:57 -0500)]
Unset MM_CHARSET so it doesn't interfere with test-scan-multibyte.
Ken Hornstein [Sat, 26 May 2012 05:55:08 +0000 (01:55 -0400)]
Support for handling multibyte encodings in cpstripped(), which
means that multibyte character encodings should work correctly
on all systems which support the POSIX wide character functions.
David Levine [Thu, 24 May 2012 03:16:14 +0000 (22:16 -0500)]
Update the current folder and current message and synchronize
sequences before showing the messages instead of after. This
way, the context will be updated even if the user exists while
viewing the messages.
David Levine [Tue, 22 May 2012 01:05:19 +0000 (20:05 -0500)]
comp and dist cannot take multiple message arguments. mhbuild does
not set context.
David Levine [Tue, 22 May 2012 01:03:57 +0000 (20:03 -0500)]
Changed wording to say that the last message selected (not necessarily
shown) will become the current message. That's consistent with the
mhlist and mhstore man pages.
Ken Hornstein [Thu, 17 May 2012 12:34:29 +0000 (08:34 -0400)]
Minor changes to replyfilter to make it compatible with older versions of Perl.
David Levine [Sat, 12 May 2012 16:02:21 +0000 (11:02 -0500)]
Used this version, renamed nmh-1.5-1.sh, in application for Cygwin package.
David Levine [Sat, 12 May 2012 14:30:27 +0000 (09:30 -0500)]
Allow selection of locking type.
David Levine [Sat, 12 May 2012 12:44:16 +0000 (07:44 -0500)]
SIGNATURE/Local-Mailbox are not used by post, but just by front
ends (comp, forw, repl, etc.) that read the profile.
David Levine [Fri, 11 May 2012 02:23:09 +0000 (21:23 -0500)]
Don't test with sendmail because it would really send the mail. If
configured to use sendmail, change the mts.conf used by the test suite
to use smtp instead.
David Levine [Thu, 10 May 2012 03:05:28 +0000 (22:05 -0500)]
Wrap local part (username) of address with double quotes if needed.
David Levine [Wed, 9 May 2012 03:19:29 +0000 (22:19 -0500)]
Skip the Cygwin package (.bz2) file when searching for the input (.gz) file.
David Levine [Wed, 9 May 2012 01:29:57 +0000 (20:29 -0500)]
Added test script constructs to avoid.
David Levine [Tue, 8 May 2012 15:16:46 +0000 (10:16 -0500)]
Fixed patch section of prep().
David Levine [Tue, 8 May 2012 15:16:17 +0000 (10:16 -0500)]
Added MACHINES to EXTRA_DIST so that it gets put in the distribution.
David Levine [Mon, 7 May 2012 23:35:28 +0000 (18:35 -0500)]
Removed locking type selection from build_nmh now that it's in configure.
David Levine [Mon, 7 May 2012 23:33:18 +0000 (18:33 -0500)]
build-nmh-cygwin no longer needs to DISABLE_SETGID_MAIL now that configure
uses fcntl on Cygwin.
David Levine [Mon, 7 May 2012 22:25:43 +0000 (17:25 -0500)]
Added -ansi -pedantic with gcc.
David Levine [Mon, 7 May 2012 21:45:32 +0000 (16:45 -0500)]
Added $(TESTS_SHELL) at end of TESTS_ENVIRONMENT. This lets the
user run the tests using a shell other than the default /bin/sh
by using, e.g., make check TESTS_SHELL=/bin/bash. Thanks to
Tom Lane <tgl@sss.pgh.pa.us> for suggesting this.
David Levine [Mon, 7 May 2012 21:35:16 +0000 (16:35 -0500)]
Fixed some more problems caught by gcc -ansi -pedantic.
Tom Lane [Mon, 7 May 2012 21:14:37 +0000 (16:14 -0500)]
Fixed places in the code relying the C99-ism of declarations in the
midst of a code block.
David Levine [Mon, 7 May 2012 13:57:38 +0000 (08:57 -0500)]
Removed --enable-pop and SETGID_MAIL= from nmh.spec.
Ken Hornstein [Mon, 7 May 2012 13:45:38 +0000 (09:45 -0400)]
Fix test so it will work on terminal widths other than 80.
David Levine [Mon, 7 May 2012 02:53:18 +0000 (21:53 -0500)]
Default to fcntl locking for AIX, Cygwin, and Linux. Without it
on Cygwin, nmh is unusable on FAT32 filesystems.
Default to flock on FreeBSD.
David Levine [Mon, 7 May 2012 02:52:22 +0000 (21:52 -0500)]
Added note about test/inc/test-
deb359167 failing because valgrind
detects use of an uninitialized variable on older Linux distributions.
Ken Hornstein [Sun, 6 May 2012 17:41:07 +0000 (13:41 -0400)]
Fix the case of the MacOS X dSYM directories.
David Levine [Sun, 6 May 2012 16:14:49 +0000 (11:14 -0500)]
Remove any existing Local-Mailbox: profile component before adding one.
David Levine [Sun, 6 May 2012 15:59:42 +0000 (10:59 -0500)]
Added check for EPERM when checking errno after a failed link(2).
Cygwin will produce that on FAT32 filesystems. Must do this at
runtime rather than configure time because link() succeeds on
NTFS filesystems.
David Levine [Sat, 5 May 2012 15:05:36 +0000 (10:05 -0500)]
Check for success of hard links of bin files. If they fail, try sym
links. On Cygwin, the choice of ln or ln -s must be made at install
time, not configure time, because some filesystems (NTFS) support hard
links but others (FAT32) don't. Fallback to cp -p, though might not
be needed, just in case.
David Levine [Sat, 5 May 2012 15:04:35 +0000 (10:04 -0500)]
Customized generic SPECS/build-nmh-cygwin for nmh.
David Levine [Sat, 5 May 2012 14:54:10 +0000 (09:54 -0500)]
Replaced mh_profile man page hard link with new man/mh_profile.man.
The hard link isn't be supported by SPECS/build-nmh-cygwin. And it's
consistent with the handling of other aliased man pages.
David Levine [Sat, 5 May 2012 14:16:49 +0000 (09:16 -0500)]
Added SPECS/build-nmh-cygwin. This version isn't ready: it's
a renamed download of
http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/packaging/templates/generic-build-script?content-type=text/plain&cvsroot=cygwin-apps
It's committed in its original form so we can easily view changes
to it.
David Levine [Sat, 5 May 2012 14:14:48 +0000 (09:14 -0500)]
Moved nmh.spec to new SPECS directory.
David Levine [Tue, 1 May 2012 02:56:26 +0000 (21:56 -0500)]
Removed documentation of obsolete WHATNOW configuration option and
built-in FTP client. Removed some completed and obsolete tasks from
TODO.
David Levine [Sat, 28 Apr 2012 20:56:36 +0000 (15:56 -0500)]
Allow a user to enable setgid of inc when running distcheck with:
make distcheck DISTCHECK_CONFIGURE_FLAGS=DISABLE_SETGID_MAIL=0
though that's probably never going to be used.
(cherry picked from commit
b83b264039d4245810cb845a540c024032a45ac4)
David Levine [Sat, 28 Apr 2012 12:55:16 +0000 (07:55 -0500)]
Disable setgid of inc (SETGID_MAIL=1) when running distcheck.
(cherry picked from commit
9ba93ac9c535b678bb602094997a797ba8b33666)
Lyndon Nerenberg [Sat, 28 Apr 2012 01:31:36 +0000 (18:31 -0700)]
Formatting cleanup.
Ken Hornstein [Sat, 28 Apr 2012 00:25:20 +0000 (20:25 -0400)]
Updates OS specific notes.
David Levine [Fri, 27 Apr 2012 01:37:59 +0000 (20:37 -0500)]
Moved the set +e up to capture one more test in test-pick. That
test heirloom-sh to exit.
(cherry picked from commit
f793aa71e4f7375daeb2cc9ef25512172fcb1451)
David Levine [Thu, 26 Apr 2012 01:32:10 +0000 (20:32 -0500)]
Use case statement to check for proper result from "mhparam sbackup".
Also replaced a couple of other uses of grep with case statements.
(cherry picked from commit
2f4fc229fd6578389b0435b044dc559d9d9bc292)
David Levine [Thu, 26 Apr 2012 01:08:55 +0000 (20:08 -0500)]
Removed the mv of the file after running sed on it.
(cherry picked from commit
214da7bcd1ef52c46d4e77c787517d9403c97046)
David Levine [Thu, 26 Apr 2012 01:08:03 +0000 (20:08 -0500)]
Unset all MH environment variables that aren't set below.
(cherry picked from commit
16dba0d07e94832ef9a077e6524714d0e433a111)