Contributed by: Leonardo Taccari <iamleot@gmail.com>
Update mail/nmh to 1.6.
Changes:
The biggest changes in this release are in the arena of MIME handling.
Specifically relating to MIME composition and display. On the
composition front, mhbuild(1) will now automatically be run by send(1)
for all drafts. Specifically, mhbuild is now run with the new -auto
flag, which will suppress the processing of mhbuild directives and cause
mhbuild to silently exit if the draft is already MIME-formatted. When
invoking mhbuild manually via the "mime" command at the WhatNow? prompt,
mhbuild will behave as before and process mhbuild directives.
In both cases (automatic and manual invocation) mhbuild will encode email
headers according to RFC-2047 rules. Mhbuild also will use RFC 2231
encoding rules for MIME parameters when appropriate. In addition, the
attach system has been substantially reworked; the new header name is
now "Attach" (to better align with other MUA behavior) and cannot be
changed by the end-user. The existing "attach" command simply adds
the filename(s) to the draft in new Attach: headers, and the actual
file processing is done by mhbuild; this attachment processing will
take place in either automatic or manual mode.
On the display front, mhshow(1) will now automatically convert text
into the user's native character set using iconv, if nmh was built
with iconv support. Also, mhshow will now by default only display
text content that was not marked as an attachment. By default all
displayed content wll be run under one pager, as opposed to individual
pagers for each part as was in the past. Non-displayed parts will be
indicated using a marker string, which can be customized by a new
mh-format(5) string.
All nmh utilites now understand RFC 2231-encoded MIME parameters and
will automatically convert the encoded parameters into the native
character set, when appropriate (again, assuming nmh was built with
iconv support).
In other changes, sequence files are now locked using transactional
locks: locks that are held across sequence file reading, modification,
and writing. The locking algorithm used for spool files and nmh data
files is now runtime configurable.
For people that struggle with mh-format(5) files, a new utility for testing
them has been developed: fmttest(1). It includes the ability to trace the
execution of format instructions.
For users that wish to use Unix utilities on their mail, a new utility
to transform MIME messages to more easily-digestable format is now
available: mhfixmsg(1). It supports a number of options to control
the message transformation.
For users of spost(8), the support for spost has been rolled into post(8)
under a new sendmail/pipe MTS. A shell script emulating the old behavior
of spost has been provided.
changes:
-a "From:" header is now required for outgoing mail, custom component
files may need to be adjusted
-support for filters in mhl
-more fixes and new features, see the share/doc/nmh/NEWS file for details
-dragonfly support patches were integrated
- many bug fixes
- MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded
headers and convert to current locale.
- various MIME improvements
- Take maintainership (ok'd by kim@).
- Replace DESCR with text from web site.
- Support user-destdir.
- Use --with-hash-backup instead of hacking config.h post-configure.
- Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck
and IRIX bits in Makefile.
- A tmac.h conf file (wtf?) is no longer installed.
- Update what's installed to share/doc/nmh.
- Update PLIST for added/removed/renamed files.
- Patches:
- Update patch-ca and patch-cd.
- Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad,
patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al,
patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as,
patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba,
patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh,
patch-bi
- patch-aa also had a patch for some fgetstr problem on NetBSD which no
longer seems to happen.
- Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only
apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H
is already elsewhere in config.h, and sys/param.h is included in nmh.h.
- Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in
uip/sortm.c r1.7).
- Remove patch-ci (fixed in uip/show.c r1.6).
- Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems
were fixed (differently) in 2000.
- Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
into the examples hierarchy and using bsd.pkg.install.mk to copy them into
place. While here, sort PLIST. Bump PKGREVISION to 6.
Patch from PR pkg/28978 made by Greg A. Woods with very slight modifications
by me.
a numerical subject.
"And yes, this really does add a preprocessor conditional that makes
either one of two original statements get compiled, and the other
omitted (ie: the patch is correct, though just deleting a line would
work as well). The "#if 0" could become "#if 1" and the core dump
would also be gone, though the results of the sort would then
sometimes be rather hard to explain..."
Bump PKGREVISION.
his problem report to the nmh people as well).
Adjust home page as per Eric's PR pkg/9695 as well.
Many changes since 1.0.3. The most important ones are:
+ Eric's shell quoting problems displaying MIME content.
+ Fix coredump in packf.
+ Folder creation permissions bug (mentioned by Sean Matheis on
netbsd-users@netbsd.org).
+ mmdf mailbox processing errors.
Full list if changes is in the ChangeLog file.
- added missing checksum for the distribution file
- put back GCOS_HACK define (it was removed from patch-cb)
- do not include mhn.defaults in the PLIST to keep protecting it
from upgrades in case it has local modifications
- install mhn.defaults.dist from the "files" directory instead of
using a dynamically generated one (this was the intention always)
- mhn.defaults and mts.conf get installed if they don't exist;
new users do not have to worry about copying *.dist files now
- added comments about the configuration file philosophy in Makefile
Versions prior to 1.0.3 of the nmh package contained a vulnerability
where incoming mail messages with carefully designed MIME headers could
cause nmh's mhshow command to execute arbitrary shell code.
See the changelog for another 372 lines of changes.
type message/* should be encoded in 7bit only. Modern mailers send
error reports encoded in 8bit as well. I see no harm in simply allowing
that through as well (I could see more problems with quoted-printable or
base64 as you'd need to actually decode it before parsing the contents).
Change BACKUP_PREFIX to "#" so users of shells like tcsh
don't have to do excess typing when recovering accidentally
removed messages (mv ~/Mail/inbox/{#,}14921).
after composing a mime message you wanted to view it, or you got
a message/rfc822 attachment you wanted to view)
patch-cd: fix missing newline in strings generated by dctime (with snprintf
need to account for an extra character: the trailing null; fixes
problems with mhl and packf)
The new version has picked up the autoconf patches from @etcdir@ to
@sysconfdir@, but not the ones from @libdir@ to @libexecdir@, so bring
these forward.