From owner-svn-ports-all@freebsd.org Fri Nov 2 14:17:37 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D491F10F874E; Fri, 2 Nov 2018 14:17:36 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8017B6D084; Fri, 2 Nov 2018 14:17:36 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5D1933F09; Fri, 2 Nov 2018 14:17:36 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA2EHau0046605; Fri, 2 Nov 2018 14:17:36 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA2EHZRG046603; Fri, 2 Nov 2018 14:17:35 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201811021417.wA2EHZRG046603@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Fri, 2 Nov 2018 14:17:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483810 - in head/mail/mailman: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/mail/mailman: . files X-SVN-Commit-Revision: 483810 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2018 14:17:37 -0000 Author: pi Date: Fri Nov 2 14:17:35 2018 New Revision: 483810 URL: https://svnweb.freebsd.org/changeset/ports/483810 Log: mail/mailman: add OPTION to not send passwords in the monthly mails - this option is now on by default PR: 231879 Reported by: several users Approved by: mandree Obtained from: https://mail.python.org/pipermail/mailman-users/2016-April/080746.html MFH: 2018Q4 Added: head/mail/mailman/files/extra-patch-mailpasswds (contents, props changed) Modified: head/mail/mailman/Makefile Modified: head/mail/mailman/Makefile ============================================================================== --- head/mail/mailman/Makefile Fri Nov 2 14:09:45 2018 (r483809) +++ head/mail/mailman/Makefile Fri Nov 2 14:17:35 2018 (r483810) @@ -3,7 +3,7 @@ PORTNAME= mailman DISTVERSION= 2.1.29 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= GNU \ SF/${PORTNAME}/Mailman%202.1%20%28stable%29/${PORTVERSION} \ @@ -71,8 +71,8 @@ PORTDOCS= ACKNOWLEDGMENTS BUGS FAQ INSTALL NEWS README OPTIONS_SINGLE= MTA OPTIONS_SINGLE_MTA= COURIER EXIM4 OPENSMTPD POSTFIX SENDMAIL -OPTIONS_DEFINE= HTDIG NAMAZU2 NLS DOCS -OPTIONS_DEFAULT= SENDMAIL +OPTIONS_DEFINE= HTDIG NAMAZU2 NOMAILPWD NLS DOCS +OPTIONS_DEFAULT= SENDMAIL NOMAILPWD COURIER_DESC= for use with courier EXIM4_DESC= for use with exim4 OPENSMTPD_DESC= for use with opensmtpd - EXPERIMENTAL - @@ -80,6 +80,7 @@ POSTFIX_DESC= for use with postfix SENDMAIL_DESC= for use with sendmail HTDIG_DESC= - EXPERIMENTAL - htdig integration patches NAMAZU2_DESC= Make private archives searchable with namazu2 +NOMAILPWD_DESC= Elide plaintext passwords from monthly reminders MTA_DESC= Integrate with which MTA? .include @@ -140,6 +141,10 @@ PLIST_SUB+= SUB_HTDIG="@comment " .if ${PORT_OPTIONS:MNAMAZU2} RUN_DEPENDS+= mknmz:databases/namazu2 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Mailman-Cgi-private.py +.endif + +.if ${PORT_OPTIONS:MNOMAILPWD} +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-mailpasswds .endif BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dnspython>=0:dns/py-dnspython@${PY_FLAVOR} Added: head/mail/mailman/files/extra-patch-mailpasswds ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailman/files/extra-patch-mailpasswds Fri Nov 2 14:17:35 2018 (r483810) @@ -0,0 +1,22 @@ +--- cron/mailpasswds.orig 2018-07-25 00:01:28.000000000 +0200 ++++ cron/mailpasswds 2018-10-03 11:00:40.137699000 +0200 +@@ -148,17 +148,8 @@ + if mlist.getMemberOption(member, + mm_cfg.SuppressPasswordReminder): + continue +- # Group by the lower-cased address, since Mailman always +- # treates person@dom.ain the same as PERSON@dom.ain. +- try: +- password = mlist.getMemberPassword(member) +- except Errors.NotAMemberError: +- # Here's a member with no passwords, which I think was +- # possible in older versions of Mailman. Log this and +- # move on. +- syslog('error', 'password-less member %s for list %s', +- member, mlist.internal_name()) +- continue ++ # https://mail.python.org/pipermail/mailman-users/2016-April/080746.html ++ password = '****' + optionsurl = mlist.GetOptionsURL(member) + lang = mlist.getMemberLanguage(member) + info = (listaddr, password, optionsurl, lang)