head 1.5; access; symbols pkgsrc-2019Q1:1.4.0.74 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.72 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.70 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.68 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.66 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.64 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.62 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.58 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.56 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.54 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.52 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.50 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.48 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.46 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.44 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.42 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.40 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.38 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.36 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.34 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.32 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.30 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.28 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.26 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.24 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.22 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.20 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.18 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.16 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.14 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.12 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.10 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.8 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.6 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.4 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.2 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.3.0.26 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.24 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.22 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.20 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.18 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.16 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.14 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.12 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.10 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.8 pkgsrc-2008Q1:1.3.0.6 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.4 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.2 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.1.0.12 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.10 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.8 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.6 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.4 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.2 pkgsrc-2006Q1-base:1.1; locks; strict; comment @# @; 1.5 date 2019.05.24.13.17.58; author hauke; state dead; branches; next 1.4; commitid wsxfERtRQIlsvsoB; 1.4 date 2010.06.15.23.14.47; author pettai; state Exp; branches; next 1.3; 1.3 date 2007.08.27.22.33.19; author jlam; state Exp; branches; next 1.2; 1.2 date 2007.08.10.17.57.09; author jlam; state Exp; branches; next 1.1; 1.1 date 2006.03.21.19.50.51; author jlam; state Exp; branches; next ; desc @@ 1.5 log @Upgrade mail/maildrop to v3.0.0 o new dependencies: courier-unicode (split out library), libidn o install text READMe files over html ones o add options.mk - optionally authenticate against dovecot user db - make locking configurable (I have seen locking rows between dovecot and mailfilter that lead to delivery failures) o re-work patches From the upstream changelog (yes, it's been eight years): 3.0.0 2018-07-31 Sam Varshavchik * rfc2045/reformime: parse utf-8 address types in DSNs. 2018-07-30 Sam Varshavchik * maildrop: explicitly require libidn to build maildrop. 2018-07-29 Sam Varshavchik * mailbot: generate message/global, message/global-delivery-status, and message/global-headers, when needed, when formatting autoreplies. * reformime: -m option uses message/global instead of message/rfc822 for UTF8 messages. 2018-06-25 Sam Varshavchik * rfc2045/reformime.c (main2): fix crash if -x or -X is specified without the corresponding -s option. 2018-02-16 Sam Varshavchik * libs/maildrop/search.C: ":H" pattern matching option, matching only the main message headers. 2018-01-08 Osamu Aoki * libs/maildrop/deliver.C (delivery): Always return 75 upon delivery failure, for the standalone maildrop build. 2017-12-26 Sam Varshavchik * libs/maildir/maildirmake.c (main): maildirmake's -q option will create the maildir if it does not exist. * libs/rfc2045/reformime.c (main2): Added -rU option, and a new internal RFC2045_RW_8BIT_ALWAYS conversion option. * libs/rfc2045/reformime.c (main2): Fix crash when the -s option is not valid. 2.9.3 2017-11-26 Sam Varshavchik * libs/rfc2045/rfc2045reply.c (mkreply): Fix null pointer dereferences. 2.9.2 2017-10-03 Sam Varshavchik * reformail: fix use after free with -f1 2017-09-27 Giovanni Bechis * Fix to configure.ac 2017-09-19 Sam Varshavchik * courier: switch default header encoding to UTF-8. 2.9.0 2017-06-17 Sam Varshavchik * libs/maildir/maildirquota.c (docheckquota): Skip DT_LNK. 2017-03-11 Sam Varshavchik * courier-unicode library API update. 2017-01-27 "Stefan Hornburg (Racke)" * Merge several Debian patches: 0001-Include-cstdio-in-afx.h.patch 0005-Ignore-and-.dpkg-a-z-files.patch 0007-Fix-bashisms.patch 0009-Fix-linking-in-upstream-Makefiles.patch 0012-Define-and-use-PEMFILE-in-mkesmtpdcert.patch (*) with some changes. 0013-Add-P-to-ghostscript-invocation.patch 0014-Improve-error-reporting-in-preline.c.patch 0017-Fix-formatting-errors-in-syslog-calls.patch 0020-Add-perl-stanza-to-perlfilter-scripts.patch 2.8.5 2016-09-20 "Hanno Böck" * libs/maildrop/maildir.C (MaildirSave): Fix new/delete mismatch. 2.8.4 2016-08-03 Sam Varshavchik * reformime: do not abort due to invalid encoding of the "name" attributes. 2015-12-20 Sam Varshavchik * maildrop: implement the FLAGS variable. 2015-12-16 Andreas Kinzler * maildrop: fix maildrop not searching last line of text. 2015-07-19 Sam Varshavchik * maildrop: fix parsing of a message without a body. 2.8.3 2015-06-27 "Hanno Böck" * libs/maildrop/mailbot.c: Fix bad malloc for --feedback-* command line parameters. 2015-06-20 Sam Varshavchik * maildrop: Implement option to automatically create home directories. 2015-05-09 "Jö Fahlke" * maildrop: Don't include matched subpatterns in foreach. 2.8.2 2015-04-25 Giovanni Bechis * maildircache.c: fix use after free. * mkdhparams: make compatible with libressl 2015-02-28 Sam Varshavchik * Update to courier-unicode 1.2. 2015-02-16 "Hanno Böck" * Fix compilation warning, testsuite. 2.8.0 2014-12-13 Sam Varshavchik * Update autotools 2.7.2 2014-07-21 Sam Varshavchik * gpglib, rfc2045: fix makefiles. * maildrop: fix parsing of headers added by the -A option. 2014-07-13 Sam Varshavchik * liblock, couriertls: fix compilation for OpenBSD -- based on a patch from Giovanni Bechis . 2014-06-23 Sam Varshavchik * libs/gpglib/Makefile.am: Fix -lunicode linkage. * libs/rfc2045/Makefile.am: Fix -lunicode linkage. * libs/rfc2045/rfc2045decodemsgtoutf8.c (rfc2045_decodemsgtoutf8): recognize "message" MIME content type, in addition to "text". 2014-06-18 Sam Varshavchik * maildrop: -d option changes groupid only when effective group id is root. Addresses Debian bug 564601. * mailbot: Add -T replydraft/-l options. 2014-02-02 Osamu Aoki * Makefile.am: install makedat.1 and makedat.html 2014-01-15 Sam Varshavchik * libs/maildrop/search.C (search_cb): Fix logged patterns getting garbled, in log output. 2014-01-12 Sam Varshavchik * Factored out the unicode library into a separate package. 2.7.1 2013-11-25 Sam Varshavchik * Fix various compiler warnings about unchecked results from setuid and setgid calls. 2.7.0 2013-08-28 Sam Varshavchik * maildrop: pattern searches are now specified in UTF-8. maildrop MIME-decodes the search pattern, and transcodes it to the UTF-8 character set, for searching purposes. 2012-12-04 Alessandro Vesely * rfc2045/makemime.c (openfile_or_pipe): Do not dup stdin filedesc, sometimes the stdin buffer already gets filled. 2.6.0 2012-09-05 Sam Varshavchik * maildir/maildiraclt.c (maildir_acl_delete): Fix double-free on error path of an ENOMEM. 2012-06-18 Sam Varshavchik * maildrop: make a mention of reformail -D's locking in the manual pages. 2012-06-17 Osamu Aoki * maildrop/formatmbox.C (GetLineBuffer): Do not skip whitespaces looking for From: and Subject: headers, to log. 2012-05-05 Sam Varshavchik * rfc2045/rfc2045mkboundary.c (rfc2045_mk_boundary): truncate the hostname portion of the boundary to 30 chars. 2012-04-22 Sam Varshavchik * liblock/mail.c (dotlock_exists): Quell a compiler warning. 2012-02-23 Osamu Aoki * Miscellaneous spelling fixes. 2.5.5 2011-11-25 Sam Varshavchik * rfc2045/rfc2045reply.c (mkreply): Fix copying of the contents of the original message. * rfc2045/reformime.c (do_print_info): rfc2231_udecodeDisposition() failure is not fatal. * rfc2045/reformime.c (get_suitable_filename): Ditto. 2011-09-06 Sam Varshavchik * rfc2045/reformime.c (main2): Fixed segfault on some arches from an initial null given to strtok. 2011-08-31 Sam Varshavchik * mailbot: add "feedback" and "replyfeedback" formats, generating RFC 5965-formatted feedback report. -a option attaches the entire original message, instead of only its headers, for "replydsn", "feedback", and "replyfeedback" formats. 2011-08-14 Sam Varshavchik * rfc2045/reformime.c (main2): On ia64 and arm, argv is in readonly memory. @ text @$NetBSD: patch-ac,v 1.4 2010/06/15 23:14:47 pettai Exp $ --- maildrop/main.C.orig 2006-10-01 20:03:37.000000000 -0400 +++ maildrop/main.C @@@@ -575,7 +575,7 @@@@ uid_t my_u=getuid(); if (!found) { #if HAVE_COURIER - if (!deliverymode) + if (!deliverymode || !getenv("COURIER_MTA")) #endif { my_pw=getpwuid(my_u); @@@@ -635,6 +635,14 @@@@ Buffer value; { const char *p; + /* + * To allow one maildrop to be used by both courier MTA + * and others, we require courier MTA to set COURIER_MTA + * in the environment before running maildrop. + */ + if (getenv("COURIER_MTA")) + { /* COURIER_MTA */ + if ((p=getenv("HOME")) && *p) maildrop.init_home=p; @@@@ -659,6 +667,8 @@@@ Buffer value; if ((p=getenv("MAILDIRQUOTA")) && *p) maildrop.init_quota=p; + + } /* COURIER_MTA */ } #endif @ 1.4 log @maildrop-2.5.0: * maildrop/mailbot.c (main): Set close-on-exec bit on opened files. * rfc2045/rfc2045reply.c (mkreply): Fix sender's name in the reply salutation. * rfc2045/reformime.sgml: Document the -c option to reformime. * Big quota patch (with some changes). (See the Changelog for the previous releases) Based on patch(es) from PR pkg/42989 by Brian Candler @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.3 2007/08/27 22:33:19 jlam Exp $ @ 1.3 log @Fix breakage when maildrop is invoked by the user in "delivery mode" without an explicity "-d" option. Maildrop was breaking because it was not properly finding the user's home directory (in order to locate ~/.maildroprc). This breakage occurred sometime shortly before maildrop was updated to 2.0.2 when I tried to make a single maildrop package usable by both courier-mta and other mailers. This fixes PR pkg/34275 by Greg Kerr. Bump the PKGREVISION to 1. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 @@@@ -576,7 +576,7 @@@@ uid_t my_u=getuid(); d14 1 a14 1 @@@@ -628,6 +628,14 @@@@ Buffer value; d29 1 a29 1 @@@@ -652,6 +660,8 @@@@ Buffer value; @ 1.2 log @Update mail/maildrop to 2.0.4. Changes from version 2.0.2 include: * New command-line option to require the use of a working courier-authlib installation. * Install makedat along with related documentation. @ text @d5 9 @ 1.1 log @Add a check for whether maildrop is invoked by courier or not before doing courier-specific things, like accepting the values of certain environment variables for things like location of the mail folder for local delivery. This addresses PR pkg/32369 in a way that still allows for a future courier-mta package that just uses the maildrop package. @ text @d3 1 a3 1 --- maildrop/main.C.orig 2005-05-12 11:23:54.000000000 -0400 d5 1 a5 1 @@@@ -616,6 +616,14 @@@@ Buffer value; d20 1 a20 1 @@@@ -640,6 +648,8 @@@@ Buffer value; @