1 |
commit: d2372cf9d36b2fa25084009b20b3459317517e4b |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 4 21:00:57 2016 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 4 21:01:11 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2372cf9 |
7 |
|
8 |
net-mail/mlmmj: include customheaders in list control emails. |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
.../mlmmj-1.2.19.0-listcontrol-customheaders.patch | 30 +++++++++++++++ |
13 |
net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild | 44 ++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 0000000..c5ee9b3 |
19 |
--- /dev/null |
20 |
+++ b/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch |
21 |
@@ -0,0 +1,30 @@ |
22 |
+List control emails do not include customheaders, and can lead to RBL issues |
23 |
+for forged senders. |
24 |
+ |
25 |
+Signed-off-by: Robin H. Johnson <robbat2@g.o> |
26 |
+ |
27 |
+diff -Nuar --exclude '*~' mlmmj-1.2.19.0.orig/src/mlmmj-process.c mlmmj-1.2.19.0/src/mlmmj-process.c |
28 |
+--- mlmmj-1.2.19.0.orig/src/mlmmj-process.c 2014-03-23 17:57:24.000000000 -0700 |
29 |
++++ mlmmj-1.2.19.0/src/mlmmj-process.c 2016-05-04 13:50:26.034174788 -0700 |
30 |
+@@ -702,8 +702,19 @@ |
31 |
+ "output mail file"); |
32 |
+ exit(EXIT_FAILURE); |
33 |
+ } |
34 |
+- if(do_all_the_voodoo_here(rawmailfd, donemailfd, -1, |
35 |
+- -1, delheaders, |
36 |
++ /* hdrfd is checked in do_all_the_voodoo_here(), because the |
37 |
++ * customheaders file might not exist */ |
38 |
++ headerfilename = concatstr(2, listdir, "/control/customheaders"); |
39 |
++ hdrfd = open(headerfilename, O_RDONLY); |
40 |
++ myfree(headerfilename); |
41 |
++ |
42 |
++ /* footfd is checked in do_all_the_voodoo_here(), see above */ |
43 |
++ footerfilename = concatstr(2, listdir, "/control/footer"); |
44 |
++ footfd = open(footerfilename, O_RDONLY); |
45 |
++ myfree(footerfilename); |
46 |
++ |
47 |
++ if(do_all_the_voodoo_here(rawmailfd, donemailfd, hdrfd, |
48 |
++ footfd, delheaders, |
49 |
+ NULL, &allheaders, NULL) < 0) { |
50 |
+ log_error(LOG_ARGS, "do_all_the_voodoo_here"); |
51 |
+ exit(EXIT_FAILURE); |
52 |
|
53 |
diff --git a/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild b/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild |
54 |
new file mode 100644 |
55 |
index 0000000..b4a9d2d |
56 |
--- /dev/null |
57 |
+++ b/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild |
58 |
@@ -0,0 +1,44 @@ |
59 |
+# Copyright 1999-2015 Gentoo Foundation |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+# $Id$ |
62 |
+ |
63 |
+EAPI=6 |
64 |
+ |
65 |
+MY_PV="${PV/_rc/-RC}" |
66 |
+MY_P="${PN}-${MY_PV}" |
67 |
+DESCRIPTION="Mailing list managing made joyful" |
68 |
+HOMEPAGE="http://mlmmj.org/" |
69 |
+SRC_URI="http://mlmmj.org/releases/${MY_P}.tar.bz2" |
70 |
+LICENSE="MIT" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
73 |
+IUSE="" |
74 |
+DEPEND="virtual/mta" |
75 |
+S="${WORKDIR}/${MY_P}" |
76 |
+ |
77 |
+DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE" |
78 |
+PATCHES=( |
79 |
+ "${FILESDIR}"/mlmmj-1.2.19.0-listcontrol-customheaders.patch |
80 |
+) |
81 |
+ |
82 |
+src_configure() { |
83 |
+ econf --enable-receive-strip |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ default |
88 |
+ |
89 |
+ insinto /usr/share/mlmmj/texts |
90 |
+ doins listtexts/* |
91 |
+ |
92 |
+ insinto /usr/share/mlmmj |
93 |
+ doins -r contrib/web/* |
94 |
+} |
95 |
+ |
96 |
+pkg_postinst() { |
97 |
+ elog "mlmmj comes with serveral webinterfaces:" |
98 |
+ elog "- One for user subscribing/unsubscribing" |
99 |
+ elog "- One for admin tasks" |
100 |
+ elog "both available in a php and perl module." |
101 |
+ elog "For more info have a look in /usr/share/mlmmj" |
102 |
+} |