David Levine [Thu, 12 Apr 2012 01:42:22 +0000 (20:42 -0500)]
Tweaked build_nmh to work with Cygwin.
David Levine [Wed, 11 Apr 2012 01:47:46 +0000 (20:47 -0500)]
Removed unused Hesiod relic.
David Levine [Wed, 11 Apr 2012 01:47:16 +0000 (20:47 -0500)]
Added docs/contrib/build_nmh script.
Ken Hornstein [Fri, 6 Apr 2012 19:55:14 +0000 (15:55 -0400)]
Add support for -fmtproc and -nofmtproc switches to repl.
David Levine [Fri, 6 Apr 2012 18:27:30 +0000 (13:27 -0500)]
Changed test-mhparam to allow # sbackup.
Ken Hornstein [Fri, 6 Apr 2012 17:57:20 +0000 (13:57 -0400)]
Fix forw so it respects the -form switch again for non-digests.
Ken Hornstein [Fri, 6 Apr 2012 17:56:03 +0000 (13:56 -0400)]
Refere to VERSION via srcdir so this works when doing objdir builds.
David Levine [Fri, 6 Apr 2012 17:27:22 +0000 (12:27 -0500)]
Reworked mhparam tests of components in procs array to depend on
values set in common.sh, notably $pagerpath.
David Levine [Fri, 6 Apr 2012 01:15:06 +0000 (20:15 -0500)]
Added mhparam test of each component in procs array in uip/mhparam.c.
David Levine [Thu, 5 Apr 2012 22:14:57 +0000 (17:14 -0500)]
Fixed install-mh -auto test by specifying HOME.
Ken Hornstein [Thu, 5 Apr 2012 03:33:40 +0000 (23:33 -0400)]
Sigh. More corner cases to deal with!
David Levine [Thu, 5 Apr 2012 02:41:39 +0000 (21:41 -0500)]
Changed rmm, send, and whatnow man pages to be consistent with the
refile man page with mention of site-dependent prefix (usually a comma).
Ken Hornstein [Wed, 4 Apr 2012 19:55:36 +0000 (15:55 -0400)]
Fixed some more charset/encoding stuff.
Lyndon Nerenberg [Wed, 4 Apr 2012 02:07:52 +0000 (19:07 -0700)]
This is a test commit to se if the savannah git hub will stop spewing
source diffs in commit email messages.
In this case, there should be a half-dozen lines of my bable, and
no context diffs from the one line change I made in this commit.
David Levine [Wed, 4 Apr 2012 01:47:17 +0000 (20:47 -0500)]
Moved nmh.spec and docs/replyfilter to new docs/contrib/ directory.
Ken Hornstein [Tue, 3 Apr 2012 19:56:41 +0000 (15:56 -0400)]
A few more bugs I didn't catch earlier.
Ken Hornstein [Tue, 3 Apr 2012 17:04:47 +0000 (13:04 -0400)]
Fix some bugs in replyfilter.
Ken Hornstein [Mon, 2 Apr 2012 19:58:12 +0000 (15:58 -0400)]
Whoops, fix a typo in my last commit.
Ken Hornstein [Mon, 2 Apr 2012 19:39:00 +0000 (15:39 -0400)]
Bring in replyfilter to the docs directory.
Ken Hornstein [Mon, 2 Apr 2012 19:38:40 +0000 (15:38 -0400)]
David Levine [Sat, 31 Mar 2012 16:52:10 +0000 (11:52 -0500)]
Added const qualifier to a couple of local pointers to get rid of compile warnings with --with-tls.
David Levine [Tue, 27 Mar 2012 02:28:54 +0000 (21:28 -0500)]
Removed hostable relics from h/mts.h and sbr/mts.c.
David Levine [Tue, 27 Mar 2012 01:32:03 +0000 (20:32 -0500)]
Removed the hostable option from mts.conf because it's no longer used.
This allowed removal of mts/smtp/hosts.c.
David Levine [Mon, 26 Mar 2012 03:42:36 +0000 (22:42 -0500)]
Added test-install-mh.
David Levine [Sun, 25 Mar 2012 02:47:31 +0000 (21:47 -0500)]
Note that %(myname) truncates the GECOS field at the first comma, if
it contains one.
Ken Hornstein [Sun, 25 Mar 2012 02:32:13 +0000 (22:32 -0400)]
Add support for %(size).
David Levine [Sun, 25 Mar 2012 02:09:20 +0000 (21:09 -0500)]
Removed -realsize from man page because mhshow doesn't support it.
David Levine [Sat, 24 Mar 2012 14:22:41 +0000 (09:22 -0500)]
Fixed Cygwin notes.
David Levine [Sat, 24 Mar 2012 14:13:47 +0000 (09:13 -0500)]
Ensure that escape_display_name() can't overrun a buffer.
David Levine [Sat, 24 Mar 2012 14:04:34 +0000 (09:04 -0500)]
Cleaned up compile warnings.
Ken Hornstein [Sat, 24 Mar 2012 06:15:49 +0000 (02:15 -0400)]
Add this support for setting the CT_ADDR flag.
Ken Hornstein [Sat, 24 Mar 2012 06:08:03 +0000 (02:08 -0400)]
Sigh. Turns out last change broke a few tests, because it trimmed the
newline on the "body" component. Ignore that and the text component as
well for trimming. Also create some tests for the repl changes.
Ken Hornstein [Sat, 24 Mar 2012 05:16:42 +0000 (01:16 -0400)]
Revert commit
255d4c646c0d7aa6b049052fef47fa083b1b1506 and solve
the problem another way.
The component parser needs to save the newlines so it can combine
multiple headers properly. So for us, strip out any trailing newlines
when we call fmt_scan().
Ken Hornstein [Sat, 24 Mar 2012 03:21:35 +0000 (23:21 -0400)]
Modify the whatnow tests to deal with different versions of readline;
some echo the input, some do not.
Ken Hornstein [Fri, 23 Mar 2012 03:34:08 +0000 (23:34 -0400)]
If the number of messages in a folder is zero, then don't try to
clear out the sequence list; this can cause you to run off the
beginning of the malloc'd buffer. This can happen when you use
"comp" with a draft folder, the draft folder is empty, and you have
a previous sequence set in your .mh_profile. As far as I can tell
this has been a problem for nearly forever, but I only ran into it
recently when adding the readline support. Go figure.
David Levine [Fri, 23 Mar 2012 02:06:47 +0000 (21:06 -0500)]
Added function escape_display_name() to double quote, if not already,
a fullname that contains any of the special characters listed in RFC
5322, and escape unescaped, embedded double quotes.
With this change, nmh should work with no special configuration on
Cygwin, even if the user's fullname is of the form server\name.
David Levine [Fri, 23 Mar 2012 00:40:17 +0000 (19:40 -0500)]
Moved NMH_READLINE to after our setting of CFLAGS, because
AC_SEARCH_LIBS messes with them.
David Levine [Thu, 22 Mar 2012 01:01:06 +0000 (20:01 -0500)]
If a pager isn't specified with configure --with-pager, look in order
for more, less, and most. Fall back to cat, to avoid catastrophic
failure of mhshow, et al., if pagerpath is set to "no".
Updated Cygwin section of MACHINES.
Ken Hornstein [Wed, 21 Mar 2012 19:27:15 +0000 (15:27 -0400)]
Support for readline command history, editing, and completion at the
WhatNow? prompt. Based on work by Steve Rader.
Ken Hornstein [Wed, 21 Mar 2012 16:22:16 +0000 (12:22 -0400)]
Revert previous change to get rid of MULTIBYTE_SUPPORT ifdef. It turns out
this breaks the Plan 9 build. But include a check for the multibyte functions
so we get MULTIBYTE_SUPPORT on systems that have it.
This reverts commit
bd4fca3a8a15b35a04bdc333503c901d677c12eb.
David Levine [Wed, 21 Mar 2012 04:49:17 +0000 (23:49 -0500)]
Fixed harmless compile warnings.
Ken Hornstein [Wed, 21 Mar 2012 01:36:37 +0000 (21:36 -0400)]
It turns out that as part of POSIXification we got rid of checks for
wcwidth and mbtowc (because they're part of POSIX) but we didn't turn on
MULTIBYTE_SUPPORT because configure was testing to see if those functions
were supported ... and because the tests never ran, it always came back
as not being supported. Time to bite the bullet and turn MULTIBYTE_SUPPORT
on by default.
Ken Hornstein [Wed, 21 Mar 2012 00:22:19 +0000 (20:22 -0400)]
Document formatarg.
Ken Hornstein [Tue, 20 Mar 2012 23:52:29 +0000 (19:52 -0400)]
Use _exit() instead of exit() so our writer process doesn't flush out
the stdio buffers on exit.
Ken Hornstein [Tue, 20 Mar 2012 23:15:18 +0000 (19:15 -0400)]
Basic work to add arguments to formatproc calls.
Ken Hornstein [Tue, 20 Mar 2012 01:37:14 +0000 (21:37 -0400)]
Just for sanity's sake, double check the "inc" results also with "scan".
David Levine [Mon, 19 Mar 2012 01:59:06 +0000 (20:59 -0500)]
Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh
Steve Rader [Mon, 19 Mar 2012 01:57:08 +0000 (20:57 -0500)]
Added list of hand picked types initially genereted by...
cat /etc/mime.types \
| perl -ane 'if ($F[1] ne "") {print "mhshow-suffix-$F[0]:.$F[1]\n"}'
Ken Hornstein [Mon, 19 Mar 2012 01:29:39 +0000 (21:29 -0400)]
Fix a bug where a message header ending right on the stdio boundary
would cause the body output in scan to be truncated.
Also include a test for the aforementioned bug.
Ken Hornstein [Sun, 18 Mar 2012 03:42:26 +0000 (23:42 -0400)]
Fix typo in man page
David Levine [Sun, 18 Mar 2012 15:27:05 +0000 (10:27 -0500)]
Added release note that ./@ is obsolete/deprecated.
David Levine [Sun, 18 Mar 2012 14:53:31 +0000 (09:53 -0500)]
Added test-whom.
David Levine [Sun, 18 Mar 2012 14:17:56 +0000 (09:17 -0500)]
Added documentation of -sever, -port, -sasl, -saslmech, -snoop, -user,
-tls, and -notls to whom man page.
David Levine [Sun, 18 Mar 2012 14:15:30 +0000 (09:15 -0500)]
Added whom, it's the fifth program referred to in mh-draft man page.
David Levine [Sat, 17 Mar 2012 19:33:43 +0000 (14:33 -0500)]
In gcov target, added warning if configured with --enable-debug.
While gcov will work with it, it won't reflect optimizations that
are disabled with that option.
David Levine [Sat, 17 Mar 2012 03:11:09 +0000 (22:11 -0500)]
Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh
Conflicts:
Makefile.am
David Levine [Sat, 17 Mar 2012 02:07:52 +0000 (21:07 -0500)]
Automated generation of mh-chart.man.
David Levine [Sat, 17 Mar 2012 02:07:52 +0000 (21:07 -0500)]
Automated generation of mh-chart.man.
David Levine [Sat, 17 Mar 2012 02:05:21 +0000 (21:05 -0500)]
Commmiting last manual update of mh-chart.man before removing it.
David Levine [Sat, 17 Mar 2012 02:02:57 +0000 (21:02 -0500)]
Removed some unused code having to do with permissions of symlinks.
David Levine [Sat, 17 Mar 2012 02:01:30 +0000 (21:01 -0500)]
Added mhshow-suffix-text/calendar.
Ken Hornstein [Fri, 16 Mar 2012 17:21:38 +0000 (13:21 -0400)]
Improve the documentation for "send" a bit in terms of how it maps file
suffixes to MIME types.
Ken Hornstein [Fri, 16 Mar 2012 17:02:43 +0000 (13:02 -0400)]
Make -attach Nmh-Attachment & -attachformat 1 the default.
Ken Hornstein [Fri, 16 Mar 2012 15:37:31 +0000 (11:37 -0400)]
Update for changes to post.
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.
Ken Hornstein [Fri, 16 Mar 2012 04:21:35 +0000 (00:21 -0400)]
Update post(8) regarding the New World Order.
Ken Hornstein [Fri, 16 Mar 2012 03:14:48 +0000 (23:14 -0400)]
Whoops, forgot to put "." before some of the suffixes.
Ken Hornstein [Fri, 16 Mar 2012 03:09:41 +0000 (23:09 -0400)]
Add some more default MIME content suffixes.
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.
Ken Hornstein [Fri, 16 Mar 2012 02:23:20 +0000 (22:23 -0400)]
A test for the group addressing functionality handled by "post".
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).
Ken Hornstein [Thu, 15 Mar 2012 17:55:15 +0000 (13:55 -0400)]
Clean up prototypes.
Ken Hornstein [Thu, 15 Mar 2012 17:04:38 +0000 (13:04 -0400)]
Fix some warnings.
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.
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.
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.
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.
Ken Hornstein [Wed, 14 Mar 2012 19:51:22 +0000 (15:51 -0400)]
A new test program, fakesmtp, to help us test post.
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.
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
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.
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.
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.
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.
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.
Ken Hornstein [Tue, 13 Mar 2012 19:15:42 +0000 (15:15 -0400)]
Create proper prototypes for formataddr() and concataddr().
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.
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.
Ken Hornstein [Sun, 11 Mar 2012 22:08:03 +0000 (18:08 -0400)]
Add support for a -notls switch, for consistency's sake.
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.
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.
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].
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)]
David Levine [Sat, 10 Mar 2012 16:45:01 +0000 (10:45 -0600)]
Replaced UTC-8 with UTF-8.
David Levine [Sat, 10 Mar 2012 16:44:30 +0000 (10:44 -0600)]
Removed bash-ism from test-pick.
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.
David Levine [Fri, 9 Mar 2012 03:09:59 +0000 (21:09 -0600)]
Fixed mhlist -verbose to work with all content types [Bug #35219].
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.
David Levine [Thu, 8 Mar 2012 04:08:03 +0000 (22:08 -0600)]
Added test-refile.
David Levine [Thu, 8 Mar 2012 02:20:13 +0000 (20:20 -0600)]
Replaced us-ascii with iso-8859-1 in examples, just because.