From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C21F3138222 for ; Wed, 4 May 2016 21:01:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8205121C02E; Wed, 4 May 2016 21:01:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10A9E21C02E for ; Wed, 4 May 2016 21:01:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EC05533E3A9 for ; Wed, 4 May 2016 21:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D549632C for ; Wed, 4 May 2016 21:01:16 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1462395671.d2372cf9d36b2fa25084009b20b3459317517e4b.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mlmmj/files/, net-mail/mlmmj/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild X-VCS-Directories: net-mail/mlmmj/files/ net-mail/mlmmj/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: d2372cf9d36b2fa25084009b20b3459317517e4b X-VCS-Branch: master Date: Wed, 4 May 2016 21:01:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e0ae387d-4cac-4396-88d7-c9ae4250a6c0 X-Archives-Hash: 2554476b1b04c10ee612b2ce3f43f0c0 commit: d2372cf9d36b2fa25084009b20b3459317517e4b Author: Robin H. Johnson gentoo org> AuthorDate: Wed May 4 21:00:57 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Wed May 4 21:01:11 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2372cf9 net-mail/mlmmj: include customheaders in list control emails. Package-Manager: portage-2.2.28 .../mlmmj-1.2.19.0-listcontrol-customheaders.patch | 30 +++++++++++++++ net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild | 44 ++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch b/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch new file mode 100644 index 0000000..c5ee9b3 --- /dev/null +++ b/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch @@ -0,0 +1,30 @@ +List control emails do not include customheaders, and can lead to RBL issues +for forged senders. + +Signed-off-by: Robin H. Johnson + +diff -Nuar --exclude '*~' mlmmj-1.2.19.0.orig/src/mlmmj-process.c mlmmj-1.2.19.0/src/mlmmj-process.c +--- mlmmj-1.2.19.0.orig/src/mlmmj-process.c 2014-03-23 17:57:24.000000000 -0700 ++++ mlmmj-1.2.19.0/src/mlmmj-process.c 2016-05-04 13:50:26.034174788 -0700 +@@ -702,8 +702,19 @@ + "output mail file"); + exit(EXIT_FAILURE); + } +- if(do_all_the_voodoo_here(rawmailfd, donemailfd, -1, +- -1, delheaders, ++ /* hdrfd is checked in do_all_the_voodoo_here(), because the ++ * customheaders file might not exist */ ++ headerfilename = concatstr(2, listdir, "/control/customheaders"); ++ hdrfd = open(headerfilename, O_RDONLY); ++ myfree(headerfilename); ++ ++ /* footfd is checked in do_all_the_voodoo_here(), see above */ ++ footerfilename = concatstr(2, listdir, "/control/footer"); ++ footfd = open(footerfilename, O_RDONLY); ++ myfree(footerfilename); ++ ++ if(do_all_the_voodoo_here(rawmailfd, donemailfd, hdrfd, ++ footfd, delheaders, + NULL, &allheaders, NULL) < 0) { + log_error(LOG_ARGS, "do_all_the_voodoo_here"); + exit(EXIT_FAILURE); diff --git a/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild b/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild new file mode 100644 index 0000000..b4a9d2d --- /dev/null +++ b/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +MY_PV="${PV/_rc/-RC}" +MY_P="${PN}-${MY_PV}" +DESCRIPTION="Mailing list managing made joyful" +HOMEPAGE="http://mlmmj.org/" +SRC_URI="http://mlmmj.org/releases/${MY_P}.tar.bz2" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" +DEPEND="virtual/mta" +S="${WORKDIR}/${MY_P}" + +DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE" +PATCHES=( + "${FILESDIR}"/mlmmj-1.2.19.0-listcontrol-customheaders.patch +) + +src_configure() { + econf --enable-receive-strip +} + +src_install() { + default + + insinto /usr/share/mlmmj/texts + doins listtexts/* + + insinto /usr/share/mlmmj + doins -r contrib/web/* +} + +pkg_postinst() { + elog "mlmmj comes with serveral webinterfaces:" + elog "- One for user subscribing/unsubscribing" + elog "- One for admin tasks" + elog "both available in a php and perl module." + elog "For more info have a look in /usr/share/mlmmj" +}