Commit graph

138 commits

Author SHA1 Message Date
adam
9d06c0a472 revbump after boost-libs update 2018-08-16 18:54:26 +00:00
leot
feee3d8290 nmh: Add mhshow.marker, scan.curses and scan.highlighted to CONF_FILES
All of them were accidentally omitted during the nmh-1.6 update on Sep 2014
as part of PR pkg/49166, sorry!

(spotted by reading mhshow(1) man page)
2018-06-04 17:53:33 +00:00
adam
35aa3efc12 revbump for boost-libs update 2018-04-29 21:31:17 +00:00
leot
2d778053c3 nmh: Update mail/nmh to 1.7.1
pkgsrc changes:
 - Update patch-ca to avoid patching unused by pkgsrc `uninstall-*'
   targets (not needed) and adjust `installdirs' target to create
   `egdir' (`share/examples/nmh')

Changes:
1.7.1
-----
1.7.1 is a patch release for 1.7, and includes fixes to a number of
significant bugs we have discovered since releasing 1.7.  Specifically,
this release includes the following bug fixes:

 - A significant memory leak in scan(1)
 - rcvdist(1) not passing arguments to post(8) correctly
 - Number formatting functions in the format engine were not truncating
   numbers correctly
 - Various fixes to the test suite
2018-03-09 09:05:37 +00:00
wiz
bff4597ffc Bump PKGREVISION for gdbm shlib major bump 2018-01-28 20:10:34 +00:00
adam
983847f667 Revbump after boost update 2018-01-01 21:18:06 +00:00
leot
a2c82def51 nmh: If the tls' option isn't requested pass --without-tls' to CONFIGURE_ARGS
(Previosly if selected or not *always* `--with-tls' was accidently passed to the
CONFIGURE_ARGS for the `tls' PKG_OPTION)

Pointed out by Joyent SmartOS bulk builds.
2017-11-22 08:42:24 +00:00
leot
ce103aa816 nmh: Update mail/nmh to 1.7
pkgsrc changes:
 - Update MASTER_SITES (use https:// and avoid redirects)

 - Delete (a bit outdated) comment about locking mechanisms

   Since 02 Feb 2014 (post-1.6) the default locking mechanisms are
   (directly from m4/locking.m4):

    - aix*|cygwin*|linux*: fcntl
    - freebsd*|*netbsd*|openbsd*|darwin*: flock
    - everything else: dot

   The original comment was probably about just NetBSD and maybe Solaris
   (it's dated 1999). Solaris still uses the `dot' mechanisms by default
   but we no longer have any local patches about locking.

 - Delete (no more needed) `-O1' hack to CFLAGS

   mh_strcasecmp() was completely replaced by strcasecmp() on 24 Mar 2013, and
   hence present in 1.6. Forcing `-O1' for gcc is no longer needed.

 - Adjust --sysconfdir CONFIGURE_ARGS per-upstream change, now the nmh
   directory is created by nmh's configure so pass PKG_SYSCONFBASE instead of
   PKG_SYSCONFDIR.

 - Add support for the `test' phase

   Add support for nmh tests. Modify patches/patch-ca accordingly in order to
   adjust TEST_ENVIRONMENT to use the configuration files in $egdir instead of the
   ones in $nmhetcdir.
   Actually all tests are passed except an mhparam test that sposts the
   $egdir/$nmetcdir kludge.

 - Do not include bsd.prefs.mk two times (NFC)

 - Add `oauth' PKG_OPTIONS (disabled by default) to enable OAuth2 support in
   SMTP and POP auth via curl

Changes:
Release notes for nmh 1.7
=========================
Welcome to nmh, the new version of the classic MH mail handling system.
It's been over three years since the last release of nmh, and there have
been a number of significant changes since the last release.  Long-time
MH and nmh uses should read careful the NOTEABLE CHANGES section, as there
are some significant changes to nmh behavior.  Otherwise, please see the
README and INSTALL files for help on getting started with nmh.

For news of future releases, subscribe to the low-volume
    https://lists.nongnu.org/mailman/listinfo/nmh-announce

---------------
NOTABLE CHANGES
---------------

The largest notable changes in the 1.7 release are:

- Complete unification of network security support.  All network protocols
  (currently, POP and SMTP) have been refactored to use a common set of
  security routines.  This means all protocols support all SASL mechanisms
  (via the Cyrus-SASL library) and TLS.  TLS support has been strengthened
  to perform certificate name validation and to require TLS 1.1 as a
  minimum protocol.  Also, all protocols can make use of the OAuth2/XOAUTH
  SASL mechanism, which is supported by Gmail.
- send(1) now supports adding switches to post(8) based on the address or
  domain of the email address in the From: header; this more easily allows
  users to support multiple identities.
- A generic facility for passing arguments to filter programs in repl(1)
  by use of the -convertargs switch.
- Native support for the manipulation of iCalendar requests; see mhical(1)
  for more details.

------------
NEW FEATURES
------------

The following are new features for the 1.7 release of nmh:

- When building from source, configure will derive ${prefix} from an existing
  nmh installation if it finds one in your $PATH.
- Added welcome message when nmh detects that its version changed.
- The default locations for configuration files and support binaries
  have been changed.  Configuration files now install into ${sysconfdir}/nmh,
  and support binaries are placed in ${libexecdir}/nmh.  If you are upgrading
  an existing installation you should look for old configuration files in
  ${sysconfdir} and merge any local customizations into the new files in
  ${sysconfdir}/nmh, then remove the old files.  ${libdir} will also contain
  obsolete support programs that should be removed.
- All TLS connections now perform certificate validation (including hostname
  matching) by default; can be disabled on a per-application basis.
- post now defaults to port 587 on 'smtp' message submission.
- A value of 0 for the width switch of scan(1), inc(1), ap(1), dp(1),
  fmttest(1), and mhl(1) now means as many characters as the format
  engine can produce [Bug #15274].  That amount is limited by internal
  buffers.
- If a component has trailing whitespace, e.g., body:component="> ",
  mhl now trims that whitespace off when filtering blank text lines.
- An "rtrim" flag has been added to mhl to remove any trailing
  whitespace from filtered text lines.  A corresponding "nortrim" flag
  has also been added.
- Added getmymbox and getmyaddr mh-format(5) function escapes.
- New -[no]changecur, -fixtype, -decodetypes, and -[no]crlflinebreaks switches
  have been added to mhfixmsg(1).
- mhfixmsg now removes an extraneous trailing semicolon from header
  parameter lists.
- Added -convertargs switch to repl(1), to pass arguments to programs
  specified in the user's profile or mhn.defaults to convert message
  content.
- Added mhical(1), to display, reply to, and cancel iCalendar (RFC 5545)
  event requests.
- Added multiply mh-format(5) function.
- "mhparam bindir" prints the path to the directory containing the public
  executables (${bindir}).
- New "-prefer" switch for mhshow (and mhlist and mhshow), to allow specifying
  the preferred content types to show, if present in a multipart alternative.
- mh-format now has %(kilo) and %(kibi) functions, to allow printing
  numbers with SI or IEC quantities, e.g. "10K", "2.3Mi".
- Support for the -sendmail flag to send/post to change the sendmail
  binary when using the sendmail/pipe MTS.
- Added support to send(1) to specify switches to post(1) based on address or
  domain name in From: header line in message draft.
- post(8) -snoop now attempts to decode base64-encoded SMTP traffic.
- folder(1) -nocreate now prints a warning message for a non-existent folder.
- mhfixmsg(1) now allows -decodetext binary, though 8bit is still the default.
- inc(1) and msgchk(1) now support TLS encryption natively.
- All network protocols support the XOAUTH authentication mechanism.
- Support for SMTPUTF8 (RFC 6531) has been added.  mhshow(1) already supported
  RFC 6532, assuming all 8-bit message header field bodies are UTF-8 and use
  of a UTF-8 locale.
- mhfixmsg now replaces RFC 2047 encoding with RFC 2231 encoding of name and
  filename parameters in Content-Type and Content-Disposition headers,
  respectively.
- If a message body contains 8-bit bytes, post(8) uses SMTP 8BITMIME if the
  server supports it.  If not, post fails with a message to the user to
  encode the message for 7-bit transport.
- Fewer lseek(2)s will be used when reading headers in the common case.
- ./configure's --enable-debug has been removed;  it did nothing.
- configure now defaults to enabling each of TLS and Cyrus SASL if the
  necessary headers and libraries are found.
- Moved build_nmh to top-level directory.
- Better error reporting for connections to network services.

---------
BUG FIXES
---------

- The format scanner no longer subtracts 1 from the width.  This has the
  effect of no longer counting the trailing newline in the output of
  scan(1), inc(1), and the other programs that rely on the format scanner.
- The first character of some very short (less than 4 characters) message
  bodies is no longer dropped.
- Single-character headers can be reliably formatted, etc., instead of
  apparently being missing.
- mhfixmsg now adds a Content-Transfer-Encoding header at the message level,
  if needed after decoding text parts.
- mhbuild now checks whether all text parts need a Content-Transfer-Encoding
  header, not just those with a character set not specified.
- mhbuild no longer parses lines that start with # as directives with
  -nodirectives.
- repl now makes sure that any Fcc header in a replied-to message is not
  copied into the outgoing draft by default, and that the -fcc switch
  actually works in the absence of a Fcc header in the replied-to message.
- A Content-ID is generated for message/external-body entities as required
  by RFC 2045, even if -nocontentid is supplied to mhbuild.
- post will now expand aliases on a "From" line when doing a BCC [Bug #51098].
- scan can now handle empty files without violating an assert [Bug #51693].
- An error when writing an error message, e.g. EPIPE, no longer causes
  recursion until the stack is exhausted.

-------------------
DEPRECATED FEATURES
-------------------

- Support for the MHPDEBUG environment variable is deprecated and will be
  removed from a future nmh release.  Instead, use the -debug switch to pick.
- With the move of support binaries from ${libdir} to ${libexecdir}/nmh, the
  mostly undocumented 'libdir' mhparam(1) component has been replaced by a
  new 'libexecdir' component.  'libdir' will be removed in a future release.

-----------------
OBSOLETE FEATURES
-----------------

- The undocumented -queue switch to post was deprecated in nmh 1.6, and was
  removed in this release.
- conflict(8) was deprecated in nmh 1.6, and was removed in this release.
- mhtest(8) was deprecated in nmh 1.6, and was removed in this release.
- msh(1) was deprecated in nmh 1.6, and was removed in this release.
- Support in alias files for the the "*" address-group (everyone) was
  deprecated in nmh 1.6, and was removed in this release.
- Support for multiple hostnames in the "servers" entry of mts.conf has
  been removed.
- Support in alias files for expanding aliases based on group membership
  (=) and primary group (+) has been removed.

As always, feedback is welcome.
2017-11-21 10:32:02 +00:00
jperkin
17661ff9a5 Bump PKGREVISION for security/openssl ABI bump. 2016-03-05 11:27:40 +00:00
leot
997a6966ba Also needs converters/libiconv.
PKGREVISION++
2016-01-26 16:19:25 +00:00
agc
ddbf6ddecd Add SHA512 digests for distfiles for mail category
Problems found locating distfiles:
	Package mutt: missing distfile patch-1.5.24.rr.compressed.gz
	Package p5-Email-Valid: missing distfile Email-Valid-1.198.tar.gz
	Package pine: missing distfile fancy.patch.gz
	Package postgrey: missing distfile targrey-0.31-postgrey-1.34.patch
	Package qmail: missing distfile badrcptto.patch
	Package qmail: missing distfile outgoingip.patch
	Package qmail: missing distfile qmail-1.03-realrcptto-2006.12.10.patch
	Package qmail: missing distfile qmail-smtpd-viruscan-1.3.patch
	Package thunderbird24: missing distfile enigmail-1.7.2.tar.gz
	Package thunderbird31: missing distfile enigmail-1.7.2.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 23:27:00 +00:00
leot
aa9004308c Take the MAINTAINERship. 2015-08-26 12:44:30 +00:00
leot
512f6acb40 o Fix build on older versions of Darwin affected by arc4random(3)
limitations like NetBSD.
o Explicity disable readline support that - at least - on some Darwin
  systems was automatically detected.
o Bump PKGREVISION (the readline change can affect also platforms where readline
  was automagically recognised and used)

Thanks to sevan@ for testing the patches.
2015-08-20 13:01:54 +00:00
leot
0bc8095597 nmh is MAKE_JOBS_SAFE these days. 2015-08-19 18:23:02 +00:00
wiz
c7383780db Bump all packages that depend on curses.bui* or terminfo.bui* since they
might incur ncurses dependencies on some platforms, and ncurses just bumped
its shlib.
Some packages were bumped twice now, sorry for that.
2015-08-18 07:31:00 +00:00
dholland
8f7fd23f70 The configure script checks for arc4random(), but the program uses
arc4random_buf(); netbsd-5 (and presumably earlier) has the one but
not the other. Just disable it, because all it's using the randomness
for is message-ids. Fixes the netbsd-5 build.
2014-09-21 00:09:24 +00:00
dholland
5b28ff4efa This version of nmh specifically needs terminfo and not termcap
Adjust accordingly and bump PKGREVISION.
2014-09-20 23:15:03 +00:00
dholland
59a35ca20b Remove empty patch file. Regen distinfo, which also removes references
to two other patches that apparently no longer exist.
2014-09-20 23:01:20 +00:00
schnoebe
133320fe97 Remove empty patches. 2014-09-06 16:08:36 +00:00
schnoebe
0dde23f42d Fixes PR pkg/49166
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.
2014-09-06 16:07:43 +00:00
tron
73d05e2276 Recursive PKGREVISION bump for OpenSSL API version bump. 2014-02-12 23:17:32 +00:00
obache
18065908ee specify libdir with GNU_CONFIGURE_LIBDIR. 2014-01-28 11:33:43 +00:00
wiz
220e245fa7 Remove GNU_CONFIGURE_LIBDIR.
Rationale: undocumented, easily replaced with "CONFIGURE_ARGS+=--libdir="
and only used by 10 packages.
2013-06-12 12:35:35 +00:00
jperkin
becd113253 PKGREVISION bumps for the security/openssl 1.0.1d update. 2013-02-06 23:20:50 +00:00
obache
64deda1dc9 recursive bump from cyrus-sasl libsasl2 shlib major bump. 2012-12-16 01:51:57 +00:00
asau
d70c8e374b Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days. 2012-10-08 12:19:01 +00:00
schnoebe
5ddf349090 Add options to support SASL and TLS in nmh. 2012-08-31 02:09:49 +00:00
schnoebe
48afb37d6e Add a patch to fix the "-r" functionality in folder. 2012-08-31 00:50:04 +00:00
drochner
19b631c901 update to 1.5
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
2012-07-27 19:28:57 +00:00
sbd
0baf031533 Recursive dependency bump for databases/gdbm ABI_DEPENDS change. 2012-01-24 09:10:50 +00:00
sbd
0fea84f4dc Convert packages with add --libdir=* to CONFIGURE_ARGS to use
GNU_CONFIGURE_LIBDIR or GNU_CONFIGURE_LIBSUBDIR.
2012-01-17 21:43:18 +00:00
sbd
907d4da822 Add missing mk/termcap buildlink.
Bump PKGREVISION
2011-12-17 10:16:00 +00:00
sbd
00cbfede89 Add devel/gdbm_compat buildlink on Linux.
Bump PKGREVISION
2011-12-03 09:25:45 +00:00
wiz
e2f84ad43f Reset maintainer for retired developers. 2011-02-28 14:52:37 +00:00
joerg
62d1ba2bac Remove @dirrm entries from PLISTs 2009-06-14 18:03:28 +00:00
epg
1e9574f36b Use INSTALLATION_DIRS. 2008-08-21 20:35:36 +00:00
epg
c6d4c8b076 Set MAKE_JOBS_SAFE =no. 2008-08-19 19:22:46 +00:00
epg
52d5022b12 Note that these changes are upstream, will be in the next release. 2008-08-08 23:48:01 +00:00
epg
408b72a273 - Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!).
- 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.
2008-08-08 23:41:21 +00:00
tnn
882d3eb4fe Put back a couple of IRIX conditionals the way they used to behave,
e.g. match IRIX 5.x but not 6.x. Some of these may indeed apply to 6.x
too, but let's be conservative. PR pkg/38224.
2008-03-11 18:47:40 +00:00
rillig
105dd4b97c Some packages need lex and yacc. Patch by Aleksey Cheusov via
pkgsrc-users.
2007-11-17 12:04:11 +00:00
tnn
24d5b54409 Fix abusers of LOWER_OPSYS to check OPSYS or MACHINE_PLATFORM instead. 2007-10-16 23:48:58 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
schwarz
57468e9249 added support for IRIX 5 2006-12-16 13:18:54 +00:00
dsainty
9ad5c61881 Workaround for SEGV problem running nmh utilities built with gcc4 by reducing optimisation. Allows nmh code to use nmh's private non-standard strcasecmp(). Bump PKGREVISION. Addresses PR34027. 2006-10-01 07:34:16 +00:00
joerg
d438292f1e Add DragonFly support. Fix errno. 2006-03-02 21:28:23 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
wiz
5c11268df7 Remove some more *LEGACY* settings that are over a month old and
thus were before 2005Q3.
2005-10-05 13:29:49 +00:00