summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2009-03-16 19:54:28 +0000
committerTorsten Veller <tove@gentoo.org>2009-03-16 19:54:28 +0000
commitdb9ed2bb93d155e26e9d8bd4eee52adb3b2485dd (patch)
treef82f3ab045f76aa7643c9a79a30cffa2fa00abdd /net-mail
parentAutomated update of use.local.desc (diff)
downloadhistorical-db9ed2bb93d155e26e9d8bd4eee52adb3b2485dd.tar.gz
historical-db9ed2bb93d155e26e9d8bd4eee52adb3b2485dd.tar.bz2
historical-db9ed2bb93d155e26e9d8bd4eee52adb3b2485dd.zip
Remove net-mail/ezmlm, net-mail/ezmlm-idx-mysql and net-mail/ezmlm-idx-pgsql (#251383)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/ezmlm-idx-mysql/ChangeLog37
-rw-r--r--net-mail/ezmlm-idx-mysql/Manifest9
-rw-r--r--net-mail/ezmlm-idx-mysql/ezmlm-idx-mysql-0.40-r2.ebuild84
-rw-r--r--net-mail/ezmlm-idx-mysql/files/ezmlm-0.53-errno.patch9
-rw-r--r--net-mail/ezmlm-idx-mysql/files/from-header.patch209
-rw-r--r--net-mail/ezmlm-idx-mysql/files/get_header.c113
-rw-r--r--net-mail/ezmlm-idx-mysql/files/get_header.h7
-rw-r--r--net-mail/ezmlm-idx-mysql/metadata.xml5
-rw-r--r--net-mail/ezmlm-idx-pgsql/ChangeLog42
-rw-r--r--net-mail/ezmlm-idx-pgsql/Manifest9
-rw-r--r--net-mail/ezmlm-idx-pgsql/ezmlm-idx-pgsql-0.40-r2.ebuild84
-rw-r--r--net-mail/ezmlm-idx-pgsql/files/ezmlm-0.53-errno.patch9
-rw-r--r--net-mail/ezmlm-idx-pgsql/files/from-header.patch209
-rw-r--r--net-mail/ezmlm-idx-pgsql/files/get_header.c113
-rw-r--r--net-mail/ezmlm-idx-pgsql/files/get_header.h7
-rw-r--r--net-mail/ezmlm-idx-pgsql/metadata.xml5
-rw-r--r--net-mail/ezmlm/ChangeLog60
-rw-r--r--net-mail/ezmlm/Manifest7
-rw-r--r--net-mail/ezmlm/ezmlm-0.53-r1.ebuild46
-rw-r--r--net-mail/ezmlm/files/ezmlm-0.53-errno.patch9
-rw-r--r--net-mail/ezmlm/files/ezmlm-0.53-gcc33.patch11
-rw-r--r--net-mail/ezmlm/metadata.xml5
22 files changed, 0 insertions, 1089 deletions
diff --git a/net-mail/ezmlm-idx-mysql/ChangeLog b/net-mail/ezmlm-idx-mysql/ChangeLog
deleted file mode 100644
index db04acae6194..000000000000
--- a/net-mail/ezmlm-idx-mysql/ChangeLog
+++ /dev/null
@@ -1,37 +0,0 @@
-# ChangeLog for net-mail/ezmlm-idx-mysql
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/ezmlm-idx-mysql/ChangeLog,v 1.9 2006/11/23 16:05:41 vivo Exp $
-
- 23 Nov 2006; Francesco Riosa <vivo@gentoo.org>
- ezmlm-idx-mysql-0.40-r2.ebuild:
- dev-db/mysql => virtual/mysql
-
- 20 Feb 2006; Michael Hanselmann <hansmi@gentoo.org>
- -ezmlm-idx-mysql-0.40.ebuild, ezmlm-idx-mysql-0.40-r2.ebuild:
- Removed old version, synched to net-mail/ezmlm-idx, stable.
-
- 18 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org>
- ezmlm-idx-mysql-0.40-r2.ebuild, ezmlm-idx-mysql-0.40.ebuild:
- PROVIDE is for virtuals
-
- 22 Feb 2004; Aron Griffis <agriffis@gentoo.org>
- ezmlm-idx-mysql-0.40-r2.ebuild:
- Remove arm keywords
-
- 20 Sep 2003; Robin H. Johnson <robbat2@gentoo.org>
- ezmlm-idx-mysql-0.40-r2.ebuild:
- fix head -1 bug
-
-*ezmlm-idx-mysql-0.40-r2 (09 Apr 2003)
-
- 09 Apr 2003; Alastair Tse <liquidx@gentoo.org>
- ezmlm-idx-mysql-0.40-r2.ebuild, files/ezmlm-0.53-errno.patch,
- files/from-header.patch, files/get_header.c, files/get_header.h:
- glibc-2.3.2 compile errno compile fix. and sync with ezmlm-idx.
-
-*ezmlm-idx-mysql-0.40 (16 Oct 2002)
-
- 16 Oct 2002; Daniel Robbins <drobbins@gentoo.org>: See ChangeLog for
- net-mail/ezmlm-idx, of which this is a clone (and should be kept in-sync with
- the ezmlm-idx ebuid.)
-
diff --git a/net-mail/ezmlm-idx-mysql/Manifest b/net-mail/ezmlm-idx-mysql/Manifest
deleted file mode 100644
index 643fc469ba59..000000000000
--- a/net-mail/ezmlm-idx-mysql/Manifest
+++ /dev/null
@@ -1,9 +0,0 @@
-AUX ezmlm-0.53-errno.patch 270 RMD160 71c3c288a938c28d1997012a687edfb2db70b316 SHA1 53d30d27ab589d861a46b963c06e79febe984b20 SHA256 9f40f040572e508c8265aed704952cf017a55bae2523180d114901cdb842f618
-AUX from-header.patch 6165 RMD160 581737fce527926494ff96242aa4272d29c0f865 SHA1 64003a086ed24090de11cf30204e899c270fbe91 SHA256 41dee44313a01c324dd5b0f31b0b1cd799f9472d3f15c958ba7cf07e7e706961
-AUX get_header.c 3486 RMD160 f12a2cc9021b3e7ef4e482476bd4b22dc97e4001 SHA1 c834092fcd2b73f50f2b4e84f5058ff5dd9e539c SHA256 71774bebea33c7fc3937762ee89f71fbdfca40680d110d01ff97f769d7a288b8
-AUX get_header.h 101 RMD160 91951b40ed0f6fc78f8f957107bd83c76292357c SHA1 f0dca69b4b3a4ff2bcd7bbb1db54c346ddfd339d SHA256 6db2744bcaa622a34d8b6f7f5e061fca190fd8ec9263687cadec28c60ac7de4e
-DIST ezmlm-0.53.tar.gz 62693 RMD160 6d366de2d7028a984ba454f1bec9d2d9f495c88b SHA1 3a7b618737fed8b774bec69c272d70f4142c1e30 SHA256 9639c3a5cc49d417f30e6cd7d8c5e2c6945262953c143134035889d8aa1004b9
-DIST ezmlm-idx-0.40.tar.gz 553974 RMD160 e8131819d89259f83b870a39c18f9528c39c30b0 SHA1 8a4db55624e6949e57ac8f243f0078b46516cf77 SHA256 d205c466b11d07c0f1e093d3c7ca9204e06a518cbf7dfcd290f232875f92a1e0
-EBUILD ezmlm-idx-mysql-0.40-r2.ebuild 2471 RMD160 09bc77cfc62bc87d60b333b63716b33ecedaa58c SHA1 587871fb9c5a7eb237c689f03e77f316e51914a5 SHA256 c89c4ce259b374a9abf04510fa8d3609db467329945d46d1462b306b83632648
-MISC ChangeLog 1376 RMD160 343ebce8fd783749c68c9e94e05d8f396148dc67 SHA1 f99dc450bd040e0b86ec10c3803ac83d5dfaaad0 SHA256 5b9156ea742e92af853b6385d1a3ee337d6b314477e7d729033f9984cd4971e1
-MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32
diff --git a/net-mail/ezmlm-idx-mysql/ezmlm-idx-mysql-0.40-r2.ebuild b/net-mail/ezmlm-idx-mysql/ezmlm-idx-mysql-0.40-r2.ebuild
deleted file mode 100644
index 57e3797a241d..000000000000
--- a/net-mail/ezmlm-idx-mysql/ezmlm-idx-mysql-0.40-r2.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/ezmlm-idx-mysql/ezmlm-idx-mysql-0.40-r2.ebuild,v 1.11 2006/11/23 16:05:41 vivo Exp $
-
-# NOTE: ezmlm-idx, ezmlm-idx-mysql and ezmlm-idx-pgsql all supported by this single ebuild
-# (Please keep them in sync)
-
-inherit eutils fixheadtails
-
-PB=ezmlm-idx
-EZMLM_P=ezmlm-0.53
-
-S2=${WORKDIR}/${PB}-${PV}
-S=${WORKDIR}/${EZMLM_P}
-DESCRIPTION="Simple yet powerful mailing list manager for qmail."
-SRC_URI="
- http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/${PB}-${PV}.tar.gz
- http://cr.yp.to/software/${EZMLM_P}.tar.gz
-"
-HOMEPAGE="http://www.ezmlm.org"
-SLOT="0"
-LICENSE="as-is"
-KEYWORDS="alpha amd64 hppa mips ppc sparc x86"
-IUSE=""
-DEPEND="sys-apps/grep sys-apps/groff"
-RDEPEND="virtual/qmail"
-
-if [ "$PN" = "${PB}-pgsql" ]
-then
- DEPEND="$DEPEND dev-db/postgresql"
- RDEPEND="$RDEPEND dev-db/postgresql"
-elif [ "$PN" = "${PB}-mysql" ]
-then
- DEPEND="$DEPEND virtual/mysql"
- RDEPEND="$RDEPEND virtual/mysql"
-fi
-
-src_unpack() {
- unpack ${A}
- cd ${S2}
- mv ${S2}/* ${S} || die
-
- cd ${S}
- patch < idx.patch || die
- #remove cat-man pages
- cp MAN MAN.orig
- cat MAN.orig | grep -v cat > MAN
- echo "/usr/bin" > conf-bin
- echo "/usr/share/man" > conf-man
- echo "gcc ${CFLAGS}" > conf-cc
- echo "gcc" > conf-ld
- #tweak the install to go to ${D}
- cp Makefile Makefile.orig
- sed -e "s:/install.*conf-bin\`\":/install ${D}usr/bin:" \
- -e "s:/install.*conf-man\`\":/install ${D}usr/share/man:" Makefile.orig > Makefile
- #apply patch from Ed Korthof (edk@collab.net) that allows ezmlm-issub and ezmlm-gate
- #to check against the From: header as well as qmail's SENDER variable, which is set
- #from the envelope sender and often reflects the local MTA rather than the user's
- #"official" email address... enable this option by using "-f" with ezmlm-issub and/or
- #ezmlm-gate.
- cp ${FILESDIR}/get_header.[ch] . || die
- patch < ${FILESDIR}/from-header.patch || die
- echo ">>> Successfully applied Ed Korthof's From: header patch."
- epatch ${FILESDIR}/${EZMLM_P}-errno.patch
- ht_fix_file default.do ezmlm-test.sh setup.do auto_qmail.c.do auto_bin.c.do Makefile
-}
-
-src_compile() {
- cd ${S}
- if [ "$PN" = "${PB}-pgsql" ]
- then
- make pgsql
- elif [ "$PN" = "${PB}-mysql" ]
- then
- make mysql
- fi
- emake || die
-}
-
-src_install () {
- install -d ${D}/usr/bin ${D}/usr/share/man ${D}/etc/ezmlm
- make setup || die
- mv ${D}/usr/bin/ez*rc ${D}/etc/ezmlm
-}
diff --git a/net-mail/ezmlm-idx-mysql/files/ezmlm-0.53-errno.patch b/net-mail/ezmlm-idx-mysql/files/ezmlm-0.53-errno.patch
deleted file mode 100644
index 3028e5630f60..000000000000
--- a/net-mail/ezmlm-idx-mysql/files/ezmlm-0.53-errno.patch
+++ /dev/null
@@ -1,9 +0,0 @@
-diff -urN ezmlm-0.53/error.h ezmlm-0.53-new/error.h
---- ezmlm-0.53/error.h 2003-04-06 07:59:49.000000000 +0200
-+++ ezmlm-0.53-new/error.h 2003-04-06 08:09:25.000000000 +0200
-@@ -1,5 +1,6 @@
- #ifndef ERROR_H
- #define ERROR_H
-+#include <errno.h>
-
- extern int errno;
diff --git a/net-mail/ezmlm-idx-mysql/files/from-header.patch b/net-mail/ezmlm-idx-mysql/files/from-header.patch
deleted file mode 100644
index c5a306a5ab28..000000000000
--- a/net-mail/ezmlm-idx-mysql/files/from-header.patch
+++ /dev/null
@@ -1,209 +0,0 @@
---- Makefile.orig Mon Nov 27 19:20:43 2000
-+++ Makefile Mon Nov 27 18:41:29 2000
-@@ -350,9 +350,9 @@
- ezmlm-gate: \
- load ezmlm-gate.o subdb.a auto_bin.o getopt.a getln.a env.a sig.a strerr.a \
- stralloc.a alloc.a error.a str.a case.a wait.a substdio.a open.a lock.a \
--fs.a getconf.o slurpclose.o slurp.o seek.a conf-sqlld
-+fs.a getconf.o slurpclose.o slurp.o seek.a conf-sqlld get_header.a
- ./load ezmlm-gate subdb.a getconf.o slurpclose.o slurp.o \
-- getopt.a getln.a auto_bin.o env.a sig.a fs.a \
-+ getopt.a getln.a auto_bin.o env.a sig.a fs.a get_header.a \
- strerr.a substdio.a stralloc.a alloc.a error.a str.a case.a wait.a \
- open.a lock.a seek.a ${SQLLD}
-
-@@ -362,7 +362,7 @@
-
- ezmlm-gate.o: \
- compile ezmlm-gate.c idx.h errtxt.h subscribe.h auto_bin.h \
--sgetopt.h subgetopt.h substdio.h getconf.h \
-+sgetopt.h subgetopt.h substdio.h getconf.h get_header.h substdio.h \
- env.h sig.h strerr.h stralloc.h alloc.h error.h str.h case.h \
- fork.h wait.h exit.h getln.h open.h
- ./compile ezmlm-gate.c
-@@ -469,19 +469,20 @@
-
- ezmlm-issubn: \
- load ezmlm-issubn.o subdb.a getconf.o slurpclose.o slurp.o \
--env.a fs.a strerr.a getln.a getopt.a conf-sqlld \
--substdio.a stralloc.a alloc.a error.a str.a case.a open.a lock.a
-+env.a fs.a strerr.a getln.a getopt.a conf-sqlld get_header.a \
-+substdio.a stralloc.a alloc.a error.a str.a case.a open.a lock.a get_header.a
- ./load ezmlm-issubn subdb.a getconf.o slurpclose.o slurp.o \
-- getopt.a env.a fs.a strerr.a \
-+ getopt.a env.a fs.a strerr.a get_header.a substdio.a \
- getln.a substdio.a stralloc.a alloc.a error.a str.a case.a \
-- open.a lock.a ${SQLLD}
-+ open.a lock.a get_header.a ${SQLLD}
-
- ezmlm-issubn.0: \
- ezmlm-issubn.1
- nroff -man ezmlm-issubn.1 > ezmlm-issubn.0
-
- ezmlm-issubn.o: \
--compile ezmlm-issubn.c strerr.h subscribe.h env.h errtxt.h sgetopt.h idx.h
-+compile ezmlm-issubn.c strerr.h subscribe.h env.h errtxt.h sgetopt.h idx.h \
-+substdio.h readwrite.h
- ./compile ezmlm-issubn.c
-
- ezmlm-limit: \
-@@ -1280,6 +1281,14 @@
- stralloc.0: \
- stralloc.3
- nroff -man stralloc.3 > stralloc.0
-+
-+get_header.o: \
-+compile get_header.c get_header.h substdio.h seek.h stralloc.h strerr.h \
-+ ./compile get_header.c
-+
-+get_header.a: \
-+makelib get_header.o
-+ ./makelib get_header.a get_header.o stralloc.a seek_set.o strerr.a
-
- stralloc.a: \
- makelib stralloc_eady.o stralloc_pend.o stralloc_copy.o \
---- ezmlm-gate.c.orig Mon Nov 27 19:20:49 2000
-+++ ezmlm-gate.c Mon Nov 27 19:04:57 2000
-@@ -17,12 +17,18 @@
- #include "errtxt.h"
- #include "idx.h"
- #include "subscribe.h"
-+#include "get_header.h"
-+#include "substdio.h"
-+#include "readwrite.h"
-
- #define FATAL "ezmlm-gate: fatal: "
-
-+char buf0[256];
-+substdio ssin = SUBSTDIO_FDBUF(read,0,buf0,(int) sizeof(buf0));
-+
- void die_usage()
- {
-- strerr_die1x(100,"ezmlm-gate: usage: ezmlm-gate [-cCmMpPqrRsSvV] "
-+ strerr_die1x(100,"ezmlm-gate: usage: ezmlm-gate [-fFcCmMpPqrRsSvV] "
- "dir [moddir [...]]");
- }
- void die_nomem() { strerr_die2x(111,FATAL,ERR_NOMEM); }
-@@ -89,6 +95,9 @@
- int opt;
- int ret = 0;
- unsigned int i,j,k;
-+ int usefrom = 0;
-+
-+ char *from_addr = (char *)0;
-
- umask(022);
- sig_pipeignore();
-@@ -98,7 +107,7 @@
- if (!stralloc_copys(&storeopt," -")) die_nomem();
-
- while ((opt = getopt(argc,argv,
-- "cCmMpPq:Q:sSrRt:T:vV")) != opteof)
-+ "fFcCmMpPq:Q:sSrRt:T:vV")) != opteof)
- switch(opt) { /* pass on unrecognized options */
- case 'c': /* ezmlm-send flags */
- case 'C':
-@@ -116,6 +125,8 @@
- szchar[0] = opt;
- if (!stralloc_append(&storeopt,szchar)) die_nomem();
- break;
-+ case 'f': usefrom = 1; break;
-+ case 'F': usefrom = 0; break;
- case 'q': /* allow both qQ to be nice */
- case 'Q': if (optarg) queryext = optarg; break;
- case 'v':
-@@ -124,6 +135,10 @@
- die_usage();
- }
-
-+ if (usefrom) {
-+ from_addr = get_from(&ssin);
-+ }
-+
- dir = argv[optind++];
- if (!dir) die_usage();
- if (chdir(dir) == -1)
-@@ -155,8 +170,12 @@
- moddir = argv[optind++];
- if (moddir && !ret) { /* if exit 0 and moddir, add issub */
- pmod = (char *) 0;
-- while (moddir && !pmod && sender) {
-- pmod = issub(moddir,sender,(char *) 0,FATAL);
-+ while (moddir && !pmod && (sender || from_addr)) {
-+ if (sender)
-+ pmod = issub(moddir,sender,(char *) 0,FATAL);
-+ if (!pmod && from_addr)
-+ pmod = issub(moddir,from_addr,(char *) 0,FATAL);
-+
- closesql();
- moddir = argv[optind++];
- }
---- ezmlm-issubn.c.orig Mon Nov 27 19:20:54 2000
-+++ ezmlm-issubn.c Mon Nov 27 19:05:59 2000
-@@ -6,14 +6,21 @@
- #include "sgetopt.h"
- #include "errtxt.h"
- #include "idx.h"
-+#include "get_header.h"
-+#include "substdio.h"
-+#include "readwrite.h"
-
- #define FATAL "ezmlm-issubn: fatal: "
-
-+char buf0[256];
-+substdio ssin = SUBSTDIO_FDBUF(read,0,buf0,(int) sizeof(buf0));
-+
- void *psql = (void *) 0;
-
- void die_usage()
- {
-- strerr_die1x(100,"ezmlm-issubn: usage: ezmlm-issubn [-nN] dir [dir1 ...]");
-+ strerr_die1x(100,
-+ "ezmlm-issubn: usage: ezmlm-issubn [-fF] [-nN] dir [dir1 ...]");
- }
-
- void die_sender()
-@@ -28,15 +35,19 @@
- char *dir;
- char *addr;
- int flagsub = 0;
-+ int usefrom = 0;
- int opt;
-+ char *from_addr = (char *)0;
-
- addr = env_get("SENDER");
- if (!addr) die_sender(); /* REQUIRE sender */
-
-- while ((opt = getopt(argc,argv,"nNvV")) != opteof)
-+ while ((opt = getopt(argc,argv,"fFnNvV")) != opteof)
- switch(opt) {
- case 'n': flagsub = 99; break;
- case 'N': flagsub = 0; break;
-+ case 'f': usefrom = 1; break;
-+ case 'F': usefrom = 0; break;
- case 'v':
- case 'V': strerr_die2x(0,
- "ezmlm-issubn version: ezmlm-0.53+",EZIDX_VERSION);
-@@ -44,6 +55,11 @@
- die_usage();
- }
-
-+
-+ if (usefrom) {
-+ from_addr = get_from(&ssin);
-+ }
-+
- dir = argv[optind];
- if (chdir(dir) == -1)
- strerr_die4sys(111,FATAL,ERR_SWITCH,dir,": ");
-@@ -54,6 +70,9 @@
- if (issub(dir,addr,(char *) 0,FATAL)) {
- closesql();
- _exit(flagsub); /* subscriber */
-+ } else if (from_addr && issub(dir, from_addr, (char *) 0, FATAL)) {
-+ closesql();
-+ _exit(flagsub);
- }
- }
- closesql();
-
diff --git a/net-mail/ezmlm-idx-mysql/files/get_header.c b/net-mail/ezmlm-idx-mysql/files/get_header.c
deleted file mode 100644
index 38b0bf3fd427..000000000000
--- a/net-mail/ezmlm-idx-mysql/files/get_header.c
+++ /dev/null
@@ -1,113 +0,0 @@
-#include "substdio.h"
-#include "seek.h"
-#include "get_header.h"
-#include "stralloc.h"
-#include "errtxt.h"
-#include "strerr.h"
-
-#define FATAL "get_header: fatal: "
-
-static stralloc line = {0};
-
-static void die_nomem()
-{
- strerr_die2x(111,FATAL,ERR_NOMEM);
-}
-
-/**
- * This function assumes that input is at the begining of the file;
- * and it returns input to that state when the function has completed.
- * The return is 0 if the header was not found, and 1 otherwise. If
- * found, the header will be stored in the value stralloc struct.
- */
-int get_header(input, name, value)
-substdio *input;
-char *name;
-stralloc *value;
-{
- int match = 0;
- int found_start = 0;
- unsigned int len;
- char *cp;
-
- for (;;) {
- if (getln(input, &line, &match, '\n') == -1)
- strerr_die2sys(111, FATAL,ERR_READ_INPUT);
- if (!match) break;
- if (line.len == 1) break;
- cp = line.s ; len = line.len;
- if (found_start) {
- if ((*cp == ' ' || *cp == '\t')) {
- if (!stralloc_catb(value, cp, len - 1)) die_nomem();
- } else {
- break;
- }
- } else {
- if (case_startb(cp,len,"from:")) {
- if (!stralloc_copyb(value, cp, len - 1)) die_nomem();
- found_start = 1;
- }
- }
- }
-
- if (seek_begin(input->fd) == -1)
- strerr_die2sys(111,FATAL,ERR_SEEK_INPUT);
-
- return found_start;
-}
-
-/**
- * This function makes the same assumptions about input as get_header :
- * it should be at the begining of the file, and once done, seek will
- * be used to return it there. The return value is an e-mail address if
- * one can be found, or null otherwise. No attempt is made to validate
- * the email address, and the work done for parsing it is relatively
- * simplistic; it will handle the following forms as shown:
- *
- * username@domain => username@domain
- * "Name <username@domain>" => username@domain
- * username1@domain, username2@domain => username1@domain
- * username1@domain, "Name <username2@domain>" => username2@domain
- *
- * If junk is present in the From: header, this will return that. This
- * function may not be appropriate if a valid e-mail address is required.
- */
-char *get_from(input)
-substdio *input;
-{
- stralloc from_header = {0};
- int from_complete = 0, i;
- char *from_addr = (char *) 0;
-
- if (!get_header(input, "from:", &from_header))
- return (char *) 0;
-
- /* issub uses a char *, and stralloc structures aren't null
- * terminated -- they're ... 'Z' terminated ...
- * but the stuff in from_header is a copy anyway ... we'll modify it so
- * we don't have to do strcpy or somesuch.
- */
- for (i = strlen("from:") ; i < from_header.len ; ++i) {
- if (*(from_header.s + i) == '<') {
- from_addr = from_header.s + (i + 1);
- } else if (from_addr && *(from_header.s + i) == '>') {
- from_complete = 1;
- *(from_header.s+i) = '\0'; /* null terminate so from_addr is valid */
- break;
- }
- }
- if (!from_complete) { /* <...> not found ... assume a simpler format */
- for(i = strlen("from:") ; i < from_header.len ; ++i) {
- if (!from_addr && *(from_header.s + i) != ' ') {
- from_addr = from_header.s + i;
- } else if (from_addr && isspace(*(from_header.s + i)) ||
- *(from_header.s + i) == ',') {
- break;
- }
- }
- *(from_header.s + i) = '\0'; /* this is safe even if i == from_header.len */
- /* because strallocs have an extra char */
- }
- return from_addr;
-}
-
diff --git a/net-mail/ezmlm-idx-mysql/files/get_header.h b/net-mail/ezmlm-idx-mysql/files/get_header.h
deleted file mode 100644
index 9af1d4fffdf8..000000000000
--- a/net-mail/ezmlm-idx-mysql/files/get_header.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef GET_HEADER_H
-#define GET_HEADER_H
-
-extern int get_header();
-extern char *get_from();
-
-#endif
diff --git a/net-mail/ezmlm-idx-mysql/metadata.xml b/net-mail/ezmlm-idx-mysql/metadata.xml
deleted file mode 100644
index 51f94e3fbe0e..000000000000
--- a/net-mail/ezmlm-idx-mysql/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>net-mail</herd>
-</pkgmetadata>
diff --git a/net-mail/ezmlm-idx-pgsql/ChangeLog b/net-mail/ezmlm-idx-pgsql/ChangeLog
deleted file mode 100644
index ec333a145c06..000000000000
--- a/net-mail/ezmlm-idx-pgsql/ChangeLog
+++ /dev/null
@@ -1,42 +0,0 @@
-# ChangeLog for net-mail/ezmlm-idx-pgsql
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/ezmlm-idx-pgsql/ChangeLog,v 1.10 2008/05/21 18:58:31 dev-zero Exp $
-
- 21 May 2008; Tiziano Müller <dev-zero@gentoo.org>
- ezmlm-idx-pgsql-0.40-r2.ebuild:
- Changed dependency for postgresql from dev-db/postgresql to
- virtual/postgresql-server
-
- 23 Nov 2006; Francesco Riosa <vivo@gentoo.org>
- ezmlm-idx-pgsql-0.40-r2.ebuild:
- dev-db/mysql => virtual/mysql
-
- 20 Feb 2006; Michael Hanselmann <hansmi@gentoo.org>
- -ezmlm-idx-pgsql-0.40.ebuild, ezmlm-idx-pgsql-0.40-r2.ebuild:
- Removed old version, synched to net-mail/ezmlm-idx, stable.
-
- 18 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org>
- ezmlm-idx-pgsql-0.40-r2.ebuild, ezmlm-idx-pgsql-0.40.ebuild:
- PROVIDE is for virtuals
-
- 22 Feb 2004; Aron Griffis <agriffis@gentoo.org>
- ezmlm-idx-pgsql-0.40-r2.ebuild:
- Remove arm keywords
-
- 20 Sep 2003; Robin H. Johnson <robbat2@gentoo.org>
- ezmlm-idx-pgsql-0.40-r2.ebuild:
- fix head -1 bug
-
-*ezmlm-idx-pgsql-0.40-r2 (09 Apr 2003)
-
- 09 Apr 2003; Alastair Tse <liquidx@gentoo.org>
- ezmlm-idx-pgsql-0.40-r2.ebuild, files/ezmlm-0.53-errno.patch,
- files/from-header.patch, files/get_header.c, files/get_header.h:
- syncing with ezmlm-idx*
-
-*ezmlm-idx-pgsql-0.40 (16 Oct 2002)
-
- 16 Oct 2002; Daniel Robbins <drobbins@gentoo.org>: See ChangeLog for
- net-mail/ezmlm-idx, of which this is a clone (and should be kept in-sync with
- the ezmlm-idx ebuid.)
-
diff --git a/net-mail/ezmlm-idx-pgsql/Manifest b/net-mail/ezmlm-idx-pgsql/Manifest
deleted file mode 100644
index 2b310d41e79f..000000000000
--- a/net-mail/ezmlm-idx-pgsql/Manifest
+++ /dev/null
@@ -1,9 +0,0 @@
-AUX ezmlm-0.53-errno.patch 270 RMD160 71c3c288a938c28d1997012a687edfb2db70b316 SHA1 53d30d27ab589d861a46b963c06e79febe984b20 SHA256 9f40f040572e508c8265aed704952cf017a55bae2523180d114901cdb842f618
-AUX from-header.patch 6165 RMD160 581737fce527926494ff96242aa4272d29c0f865 SHA1 64003a086ed24090de11cf30204e899c270fbe91 SHA256 41dee44313a01c324dd5b0f31b0b1cd799f9472d3f15c958ba7cf07e7e706961
-AUX get_header.c 3486 RMD160 f12a2cc9021b3e7ef4e482476bd4b22dc97e4001 SHA1 c834092fcd2b73f50f2b4e84f5058ff5dd9e539c SHA256 71774bebea33c7fc3937762ee89f71fbdfca40680d110d01ff97f769d7a288b8
-AUX get_header.h 101 RMD160 91951b40ed0f6fc78f8f957107bd83c76292357c SHA1 f0dca69b4b3a4ff2bcd7bbb1db54c346ddfd339d SHA256 6db2744bcaa622a34d8b6f7f5e061fca190fd8ec9263687cadec28c60ac7de4e
-DIST ezmlm-0.53.tar.gz 62693 RMD160 6d366de2d7028a984ba454f1bec9d2d9f495c88b SHA1 3a7b618737fed8b774bec69c272d70f4142c1e30 SHA256 9639c3a5cc49d417f30e6cd7d8c5e2c6945262953c143134035889d8aa1004b9
-DIST ezmlm-idx-0.40.tar.gz 553974 RMD160 e8131819d89259f83b870a39c18f9528c39c30b0 SHA1 8a4db55624e6949e57ac8f243f0078b46516cf77 SHA256 d205c466b11d07c0f1e093d3c7ca9204e06a518cbf7dfcd290f232875f92a1e0
-EBUILD ezmlm-idx-pgsql-0.40-r2.ebuild 2491 RMD160 0f62606fdc43b54c3f07390f984c6e58b330e6de SHA1 26278ac9ec402013ed257da575c92feec51a2047 SHA256 d708c2a75284714b67392236a219da95849ca1b2821cbe21e23e0697b4c82762
-MISC ChangeLog 1519 RMD160 35eab5c4b6ae3b528acc671b95eb2fd0c0c001c3 SHA1 f239d3cbe05fcb6753e3733b872018ee98458f9e SHA256 bc15e8a30f53fb653b947a21710c441da908021569beefaa9b7b56ee8a4c27e8
-MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32
diff --git a/net-mail/ezmlm-idx-pgsql/ezmlm-idx-pgsql-0.40-r2.ebuild b/net-mail/ezmlm-idx-pgsql/ezmlm-idx-pgsql-0.40-r2.ebuild
deleted file mode 100644
index 1645dbb817c5..000000000000
--- a/net-mail/ezmlm-idx-pgsql/ezmlm-idx-pgsql-0.40-r2.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/ezmlm-idx-pgsql/ezmlm-idx-pgsql-0.40-r2.ebuild,v 1.12 2008/05/21 18:58:31 dev-zero Exp $
-
-# NOTE: ezmlm-idx, ezmlm-idx-mysql and ezmlm-idx-pgsql all supported by this single ebuild
-# (Please keep them in sync)
-
-inherit eutils fixheadtails
-
-PB=ezmlm-idx
-EZMLM_P=ezmlm-0.53
-
-S2=${WORKDIR}/${PB}-${PV}
-S=${WORKDIR}/${EZMLM_P}
-DESCRIPTION="Simple yet powerful mailing list manager for qmail."
-SRC_URI="
- http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/${PB}-${PV}.tar.gz
- http://cr.yp.to/software/${EZMLM_P}.tar.gz
-"
-HOMEPAGE="http://www.ezmlm.org"
-SLOT="0"
-LICENSE="as-is"
-KEYWORDS="alpha amd64 hppa mips ppc sparc x86"
-IUSE=""
-DEPEND="sys-apps/grep sys-apps/groff"
-RDEPEND="virtual/qmail"
-
-if [ "$PN" = "${PB}-pgsql" ]
-then
- DEPEND="$DEPEND virtual/postgresql-server"
- RDEPEND="$RDEPEND virtual/postgresql-server"
-elif [ "$PN" = "${PB}-mysql" ]
-then
- DEPEND="$DEPEND virtual/mysql"
- RDEPEND="$RDEPEND virtual/mysql"
-fi
-
-src_unpack() {
- unpack ${A}
- cd ${S2}
- mv ${S2}/* ${S} || die
-
- cd ${S}
- patch < idx.patch || die
- #remove cat-man pages
- cp MAN MAN.orig
- cat MAN.orig | grep -v cat > MAN
- echo "/usr/bin" > conf-bin
- echo "/usr/share/man" > conf-man
- echo "gcc ${CFLAGS}" > conf-cc
- echo "gcc" > conf-ld
- #tweak the install to go to ${D}
- cp Makefile Makefile.orig
- sed -e "s:/install.*conf-bin\`\":/install ${D}usr/bin:" \
- -e "s:/install.*conf-man\`\":/install ${D}usr/share/man:" Makefile.orig > Makefile
- #apply patch from Ed Korthof (edk@collab.net) that allows ezmlm-issub and ezmlm-gate
- #to check against the From: header as well as qmail's SENDER variable, which is set
- #from the envelope sender and often reflects the local MTA rather than the user's
- #"official" email address... enable this option by using "-f" with ezmlm-issub and/or
- #ezmlm-gate.
- cp ${FILESDIR}/get_header.[ch] . || die
- patch < ${FILESDIR}/from-header.patch || die
- echo ">>> Successfully applied Ed Korthof's From: header patch."
- epatch ${FILESDIR}/${EZMLM_P}-errno.patch
- ht_fix_file default.do ezmlm-test.sh setup.do auto_qmail.c.do auto_bin.c.do Makefile
-}
-
-src_compile() {
- cd ${S}
- if [ "$PN" = "${PB}-pgsql" ]
- then
- make pgsql
- elif [ "$PN" = "${PB}-mysql" ]
- then
- make mysql
- fi
- emake || die
-}
-
-src_install () {
- install -d ${D}/usr/bin ${D}/usr/share/man ${D}/etc/ezmlm
- make setup || die
- mv ${D}/usr/bin/ez*rc ${D}/etc/ezmlm
-}
diff --git a/net-mail/ezmlm-idx-pgsql/files/ezmlm-0.53-errno.patch b/net-mail/ezmlm-idx-pgsql/files/ezmlm-0.53-errno.patch
deleted file mode 100644
index 3028e5630f60..000000000000
--- a/net-mail/ezmlm-idx-pgsql/files/ezmlm-0.53-errno.patch
+++ /dev/null
@@ -1,9 +0,0 @@
-diff -urN ezmlm-0.53/error.h ezmlm-0.53-new/error.h
---- ezmlm-0.53/error.h 2003-04-06 07:59:49.000000000 +0200
-+++ ezmlm-0.53-new/error.h 2003-04-06 08:09:25.000000000 +0200
-@@ -1,5 +1,6 @@
- #ifndef ERROR_H
- #define ERROR_H
-+#include <errno.h>
-
- extern int errno;
diff --git a/net-mail/ezmlm-idx-pgsql/files/from-header.patch b/net-mail/ezmlm-idx-pgsql/files/from-header.patch
deleted file mode 100644
index c5a306a5ab28..000000000000
--- a/net-mail/ezmlm-idx-pgsql/files/from-header.patch
+++ /dev/null
@@ -1,209 +0,0 @@
---- Makefile.orig Mon Nov 27 19:20:43 2000
-+++ Makefile Mon Nov 27 18:41:29 2000
-@@ -350,9 +350,9 @@
- ezmlm-gate: \
- load ezmlm-gate.o subdb.a auto_bin.o getopt.a getln.a env.a sig.a strerr.a \
- stralloc.a alloc.a error.a str.a case.a wait.a substdio.a open.a lock.a \
--fs.a getconf.o slurpclose.o slurp.o seek.a conf-sqlld
-+fs.a getconf.o slurpclose.o slurp.o seek.a conf-sqlld get_header.a
- ./load ezmlm-gate subdb.a getconf.o slurpclose.o slurp.o \
-- getopt.a getln.a auto_bin.o env.a sig.a fs.a \
-+ getopt.a getln.a auto_bin.o env.a sig.a fs.a get_header.a \
- strerr.a substdio.a stralloc.a alloc.a error.a str.a case.a wait.a \
- open.a lock.a seek.a ${SQLLD}
-
-@@ -362,7 +362,7 @@
-
- ezmlm-gate.o: \
- compile ezmlm-gate.c idx.h errtxt.h subscribe.h auto_bin.h \
--sgetopt.h subgetopt.h substdio.h getconf.h \
-+sgetopt.h subgetopt.h substdio.h getconf.h get_header.h substdio.h \
- env.h sig.h strerr.h stralloc.h alloc.h error.h str.h case.h \
- fork.h wait.h exit.h getln.h open.h
- ./compile ezmlm-gate.c
-@@ -469,19 +469,20 @@
-
- ezmlm-issubn: \
- load ezmlm-issubn.o subdb.a getconf.o slurpclose.o slurp.o \
--env.a fs.a strerr.a getln.a getopt.a conf-sqlld \
--substdio.a stralloc.a alloc.a error.a str.a case.a open.a lock.a
-+env.a fs.a strerr.a getln.a getopt.a conf-sqlld get_header.a \
-+substdio.a stralloc.a alloc.a error.a str.a case.a open.a lock.a get_header.a
- ./load ezmlm-issubn subdb.a getconf.o slurpclose.o slurp.o \
-- getopt.a env.a fs.a strerr.a \
-+ getopt.a env.a fs.a strerr.a get_header.a substdio.a \
- getln.a substdio.a stralloc.a alloc.a error.a str.a case.a \
-- open.a lock.a ${SQLLD}
-+ open.a lock.a get_header.a ${SQLLD}
-
- ezmlm-issubn.0: \
- ezmlm-issubn.1
- nroff -man ezmlm-issubn.1 > ezmlm-issubn.0
-
- ezmlm-issubn.o: \
--compile ezmlm-issubn.c strerr.h subscribe.h env.h errtxt.h sgetopt.h idx.h
-+compile ezmlm-issubn.c strerr.h subscribe.h env.h errtxt.h sgetopt.h idx.h \
-+substdio.h readwrite.h
- ./compile ezmlm-issubn.c
-
- ezmlm-limit: \
-@@ -1280,6 +1281,14 @@
- stralloc.0: \
- stralloc.3
- nroff -man stralloc.3 > stralloc.0
-+
-+get_header.o: \
-+compile get_header.c get_header.h substdio.h seek.h stralloc.h strerr.h \
-+ ./compile get_header.c
-+
-+get_header.a: \
-+makelib get_header.o
-+ ./makelib get_header.a get_header.o stralloc.a seek_set.o strerr.a
-
- stralloc.a: \
- makelib stralloc_eady.o stralloc_pend.o stralloc_copy.o \
---- ezmlm-gate.c.orig Mon Nov 27 19:20:49 2000
-+++ ezmlm-gate.c Mon Nov 27 19:04:57 2000
-@@ -17,12 +17,18 @@
- #include "errtxt.h"
- #include "idx.h"
- #include "subscribe.h"
-+#include "get_header.h"
-+#include "substdio.h"
-+#include "readwrite.h"
-
- #define FATAL "ezmlm-gate: fatal: "
-
-+char buf0[256];
-+substdio ssin = SUBSTDIO_FDBUF(read,0,buf0,(int) sizeof(buf0));
-+
- void die_usage()
- {
-- strerr_die1x(100,"ezmlm-gate: usage: ezmlm-gate [-cCmMpPqrRsSvV] "
-+ strerr_die1x(100,"ezmlm-gate: usage: ezmlm-gate [-fFcCmMpPqrRsSvV] "
- "dir [moddir [...]]");
- }
- void die_nomem() { strerr_die2x(111,FATAL,ERR_NOMEM); }
-@@ -89,6 +95,9 @@
- int opt;
- int ret = 0;
- unsigned int i,j,k;
-+ int usefrom = 0;
-+
-+ char *from_addr = (char *)0;
-
- umask(022);
- sig_pipeignore();
-@@ -98,7 +107,7 @@
- if (!stralloc_copys(&storeopt," -")) die_nomem();
-
- while ((opt = getopt(argc,argv,
-- "cCmMpPq:Q:sSrRt:T:vV")) != opteof)
-+ "fFcCmMpPq:Q:sSrRt:T:vV")) != opteof)
- switch(opt) { /* pass on unrecognized options */
- case 'c': /* ezmlm-send flags */
- case 'C':
-@@ -116,6 +125,8 @@
- szchar[0] = opt;
- if (!stralloc_append(&storeopt,szchar)) die_nomem();
- break;
-+ case 'f': usefrom = 1; break;
-+ case 'F': usefrom = 0; break;
- case 'q': /* allow both qQ to be nice */
- case 'Q': if (optarg) queryext = optarg; break;
- case 'v':
-@@ -124,6 +135,10 @@
- die_usage();
- }
-
-+ if (usefrom) {
-+ from_addr = get_from(&ssin);
-+ }
-+
- dir = argv[optind++];
- if (!dir) die_usage();
- if (chdir(dir) == -1)
-@@ -155,8 +170,12 @@
- moddir = argv[optind++];
- if (moddir && !ret) { /* if exit 0 and moddir, add issub */
- pmod = (char *) 0;
-- while (moddir && !pmod && sender) {
-- pmod = issub(moddir,sender,(char *) 0,FATAL);
-+ while (moddir && !pmod && (sender || from_addr)) {
-+ if (sender)
-+ pmod = issub(moddir,sender,(char *) 0,FATAL);
-+ if (!pmod && from_addr)
-+ pmod = issub(moddir,from_addr,(char *) 0,FATAL);
-+
- closesql();
- moddir = argv[optind++];
- }
---- ezmlm-issubn.c.orig Mon Nov 27 19:20:54 2000
-+++ ezmlm-issubn.c Mon Nov 27 19:05:59 2000
-@@ -6,14 +6,21 @@
- #include "sgetopt.h"
- #include "errtxt.h"
- #include "idx.h"
-+#include "get_header.h"
-+#include "substdio.h"
-+#include "readwrite.h"
-
- #define FATAL "ezmlm-issubn: fatal: "
-
-+char buf0[256];
-+substdio ssin = SUBSTDIO_FDBUF(read,0,buf0,(int) sizeof(buf0));
-+
- void *psql = (void *) 0;
-
- void die_usage()
- {
-- strerr_die1x(100,"ezmlm-issubn: usage: ezmlm-issubn [-nN] dir [dir1 ...]");
-+ strerr_die1x(100,
-+ "ezmlm-issubn: usage: ezmlm-issubn [-fF] [-nN] dir [dir1 ...]");
- }
-
- void die_sender()
-@@ -28,15 +35,19 @@
- char *dir;
- char *addr;
- int flagsub = 0;
-+ int usefrom = 0;
- int opt;
-+ char *from_addr = (char *)0;
-
- addr = env_get("SENDER");
- if (!addr) die_sender(); /* REQUIRE sender */
-
-- while ((opt = getopt(argc,argv,"nNvV")) != opteof)
-+ while ((opt = getopt(argc,argv,"fFnNvV")) != opteof)
- switch(opt) {
- case 'n': flagsub = 99; break;
- case 'N': flagsub = 0; break;
-+ case 'f': usefrom = 1; break;
-+ case 'F': usefrom = 0; break;
- case 'v':
- case 'V': strerr_die2x(0,
- "ezmlm-issubn version: ezmlm-0.53+",EZIDX_VERSION);
-@@ -44,6 +55,11 @@
- die_usage();
- }
-
-+
-+ if (usefrom) {
-+ from_addr = get_from(&ssin);
-+ }
-+
- dir = argv[optind];
- if (chdir(dir) == -1)
- strerr_die4sys(111,FATAL,ERR_SWITCH,dir,": ");
-@@ -54,6 +70,9 @@
- if (issub(dir,addr,(char *) 0,FATAL)) {
- closesql();
- _exit(flagsub); /* subscriber */
-+ } else if (from_addr && issub(dir, from_addr, (char *) 0, FATAL)) {
-+ closesql();
-+ _exit(flagsub);
- }
- }
- closesql();
-
diff --git a/net-mail/ezmlm-idx-pgsql/files/get_header.c b/net-mail/ezmlm-idx-pgsql/files/get_header.c
deleted file mode 100644
index 38b0bf3fd427..000000000000
--- a/net-mail/ezmlm-idx-pgsql/files/get_header.c
+++ /dev/null
@@ -1,113 +0,0 @@
-#include "substdio.h"
-#include "seek.h"
-#include "get_header.h"
-#include "stralloc.h"
-#include "errtxt.h"
-#include "strerr.h"
-
-#define FATAL "get_header: fatal: "
-
-static stralloc line = {0};
-
-static void die_nomem()
-{
- strerr_die2x(111,FATAL,ERR_NOMEM);
-}
-
-/**
- * This function assumes that input is at the begining of the file;
- * and it returns input to that state when the function has completed.
- * The return is 0 if the header was not found, and 1 otherwise. If
- * found, the header will be stored in the value stralloc struct.
- */
-int get_header(input, name, value)
-substdio *input;
-char *name;
-stralloc *value;
-{
- int match = 0;
- int found_start = 0;
- unsigned int len;
- char *cp;
-
- for (;;) {
- if (getln(input, &line, &match, '\n') == -1)
- strerr_die2sys(111, FATAL,ERR_READ_INPUT);
- if (!match) break;
- if (line.len == 1) break;
- cp = line.s ; len = line.len;
- if (found_start) {
- if ((*cp == ' ' || *cp == '\t')) {
- if (!stralloc_catb(value, cp, len - 1)) die_nomem();
- } else {
- break;
- }
- } else {
- if (case_startb(cp,len,"from:")) {
- if (!stralloc_copyb(value, cp, len - 1)) die_nomem();
- found_start = 1;
- }
- }
- }
-
- if (seek_begin(input->fd) == -1)
- strerr_die2sys(111,FATAL,ERR_SEEK_INPUT);
-
- return found_start;
-}
-
-/**
- * This function makes the same assumptions about input as get_header :
- * it should be at the begining of the file, and once done, seek will
- * be used to return it there. The return value is an e-mail address if
- * one can be found, or null otherwise. No attempt is made to validate
- * the email address, and the work done for parsing it is relatively
- * simplistic; it will handle the following forms as shown:
- *
- * username@domain => username@domain
- * "Name <username@domain>" => username@domain
- * username1@domain, username2@domain => username1@domain
- * username1@domain, "Name <username2@domain>" => username2@domain
- *
- * If junk is present in the From: header, this will return that. This
- * function may not be appropriate if a valid e-mail address is required.
- */
-char *get_from(input)
-substdio *input;
-{
- stralloc from_header = {0};
- int from_complete = 0, i;
- char *from_addr = (char *) 0;
-
- if (!get_header(input, "from:", &from_header))
- return (char *) 0;
-
- /* issub uses a char *, and stralloc structures aren't null
- * terminated -- they're ... 'Z' terminated ...
- * but the stuff in from_header is a copy anyway ... we'll modify it so
- * we don't have to do strcpy or somesuch.
- */
- for (i = strlen("from:") ; i < from_header.len ; ++i) {
- if (*(from_header.s + i) == '<') {
- from_addr = from_header.s + (i + 1);
- } else if (from_addr && *(from_header.s + i) == '>') {
- from_complete = 1;
- *(from_header.s+i) = '\0'; /* null terminate so from_addr is valid */
- break;
- }
- }
- if (!from_complete) { /* <...> not found ... assume a simpler format */
- for(i = strlen("from:") ; i < from_header.len ; ++i) {
- if (!from_addr && *(from_header.s + i) != ' ') {
- from_addr = from_header.s + i;
- } else if (from_addr && isspace(*(from_header.s + i)) ||
- *(from_header.s + i) == ',') {
- break;
- }
- }
- *(from_header.s + i) = '\0'; /* this is safe even if i == from_header.len */
- /* because strallocs have an extra char */
- }
- return from_addr;
-}
-
diff --git a/net-mail/ezmlm-idx-pgsql/files/get_header.h b/net-mail/ezmlm-idx-pgsql/files/get_header.h
deleted file mode 100644
index 9af1d4fffdf8..000000000000
--- a/net-mail/ezmlm-idx-pgsql/files/get_header.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef GET_HEADER_H
-#define GET_HEADER_H
-
-extern int get_header();
-extern char *get_from();
-
-#endif
diff --git a/net-mail/ezmlm-idx-pgsql/metadata.xml b/net-mail/ezmlm-idx-pgsql/metadata.xml
deleted file mode 100644
index 51f94e3fbe0e..000000000000
--- a/net-mail/ezmlm-idx-pgsql/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>net-mail</herd>
-</pkgmetadata>
diff --git a/net-mail/ezmlm/ChangeLog b/net-mail/ezmlm/ChangeLog
deleted file mode 100644
index 88a4c95e8be9..000000000000
--- a/net-mail/ezmlm/ChangeLog
+++ /dev/null
@@ -1,60 +0,0 @@
-# ChangeLog for net-mail/ezmlm
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/ezmlm/ChangeLog,v 1.18 2007/02/22 01:42:21 peper Exp $
-
- 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
- Transition to Manifest2.
-
- 02 Dec 2006; Steve Dibb <beandog@gentoo.org> ezmlm-0.53-r1.ebuild:
- Add ~amd64, bug 128686
-
- 20 Feb 2006; Michael Hanselmann <hansmi@gentoo.org> ezmlm-0.53-r1.ebuild:
- Changed to virtual/qmail.
-
- 16 May 2005; Andrej Kacian <ticho@gentoo.org> ezmlm-0.53-r1.ebuild:
- Inherit toolchain-funcs.eclass instead of gcc.eclass. Bug #92745.
-
- 29 May 2004; Hallgrimur H. Gunnarsson <hhg@gentoo.org> ezmlm-0.53-r1.ebuild:
- Fixed homepage link; reported by Ben <bent@munat.com> in bug #52316
-
- 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> ezmlm-0.53.ebuild:
- Add inherit eutils
-
-*ezmlm-0.53-r1 (30 Nov 2003)
-
- 30 Nov 2003; Robin H. Johnson <robbat2@gentoo.org> ezmlm-0.53-r1.ebuild,
- files/ezmlm-0.53-gcc33.patch:
- fix bug 33745 and heads/tails stuff
-
- 19 Jul 2003; Tavis Ormandy <taviso@gentoo.org> ezmlm-0.53.ebuild:
- marking ~alpha
-
- 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
-
- 14 May 2002; Thilo Bangert <bangert@gentoo.org> :
-
- fixor (bug #4281) - wrong location - thanks Lagos
-
- 14 May 2002; Thilo Bangert <bangert@gentoo.org> :
-
- fixor (bug #2729) - added LICENSE
-
-*ezmlm-0.53 (25 Mar 2002)
-
- 09 Apr 2003; Alastair Tse <liquidx@gentoo.org> ezmlm-0.53.ebuild:
- added ~ppc to keywords. See #18843.
-
- 08 Apr 2003; Alastair Tse <liquidx@gentoo.org> ezmlm-0.53.ebuild,
- files/ezmlm-0.53-errno.patch:
- errno fix for glibc-2.3.2. thanks to Sebastian Klemke <packet@berlin.ccc.de>.
-
- 25 Mar 2002; Thilo Bangert <thilo.bangert@gmx.net> ChangeLog:
-
- added qmail runtime dependancy
-
-
-*ezmlm-0.53 (13 Mar 2002)
-
- 13 Mar 2002; Thilo Bangert <thilo.bangert@gmx.net> ChangeLog:
-
- initial release
diff --git a/net-mail/ezmlm/Manifest b/net-mail/ezmlm/Manifest
deleted file mode 100644
index 334c082a1419..000000000000
--- a/net-mail/ezmlm/Manifest
+++ /dev/null
@@ -1,7 +0,0 @@
-AUX ezmlm-0.53-errno.patch 270 RMD160 71c3c288a938c28d1997012a687edfb2db70b316 SHA1 53d30d27ab589d861a46b963c06e79febe984b20 SHA256 9f40f040572e508c8265aed704952cf017a55bae2523180d114901cdb842f618
-AUX ezmlm-0.53-gcc33.patch 300 RMD160 beae51ef09936b4430dd0cbb94f214c818646d4f SHA1 477a10564c00e89d81dd2f2853d48fec404bde8a SHA256 33c05e5e3472d67047bc822b4788ffe3cfc8ff0c3428aee5ed541ee42a8e62f5
-DIST ezmlm-0.53-ia64.patch 4403 RMD160 a7de21b1abd5e2db5048274cc042fd65a97f18f2 SHA1 e99949a210994ad26eee83d4c0304bdbf551422f SHA256 f54f311b487aaabe60748452820df593de43421e28b7b14baa07f732b22c534f
-DIST ezmlm-0.53.tar.gz 62693 RMD160 6d366de2d7028a984ba454f1bec9d2d9f495c88b SHA1 3a7b618737fed8b774bec69c272d70f4142c1e30 SHA256 9639c3a5cc49d417f30e6cd7d8c5e2c6945262953c143134035889d8aa1004b9
-EBUILD ezmlm-0.53-r1.ebuild 1189 RMD160 a4950222fda3a8246ae09bb001eb5bb73f7b1a10 SHA1 105c3a48270dcbba4767350e106cf9629d69afcf SHA256 136774f0231ae02b7bdddf4c472ee957722d40afff97df5f964e4f2fd9a0a557
-MISC ChangeLog 1938 RMD160 4d8205d949cc70a95e570c315d93a8ae2483850c SHA1 9c1ff947bc7a48ab7684f5808c5f1e9cb9b7ab84 SHA256 4caf902aacf2371fe33ec89e4a760bd930a653ddb64d1ac6f0a3cb817a595357
-MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32
diff --git a/net-mail/ezmlm/ezmlm-0.53-r1.ebuild b/net-mail/ezmlm/ezmlm-0.53-r1.ebuild
deleted file mode 100644
index a86eba73ff02..000000000000
--- a/net-mail/ezmlm/ezmlm-0.53-r1.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/ezmlm/ezmlm-0.53-r1.ebuild,v 1.9 2006/12/02 22:06:06 beandog Exp $
-
-inherit eutils fixheadtails toolchain-funcs
-
-DESCRIPTION="Simple yet powerful mailing list manager for qmail"
-HOMEPAGE="http://cr.yp.to/ezmlm.html"
-SRC_URI="http://cr.yp.to/software/${P}.tar.gz
- http://csa-net.dk/djbware/ezmlm-0.53-ia64.patch"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="alpha ~amd64 ppc sparc x86"
-IUSE=""
-
-DEPEND="sys-apps/groff"
-RDEPEND="virtual/qmail"
-
-src_unpack() {
- unpack ${A}
- epatch ${FILESDIR}/ezmlm-0.53-errno.patch
- epatch ${DISTDIR}/ezmlm-0.53-ia64.patch
- epatch ${FILESDIR}/ezmlm-0.53-gcc33.patch
- cd ${S}
- ht_fix_file Makefile *.do
- echo "/usr/bin" > conf-bin
- echo "/usr/share/man" > conf-man
- echo "$(tc-getCC) ${CFLAGS}" > conf-cc
- echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
-}
-
-src_compile() {
- mkdir tmp
- # single thread only to avoid bug in makefile
- make || die
-}
-
-src_install () {
- dobin ezmlm-list ezmlm-make ezmlm-manage \
- ezmlm-reject ezmlm-return ezmlm-send \
- ezmlm-sub ezmlm-unsub ezmlm-warn ezmlm-weed \
- || die
-
- doman *.1 *.5
-}
diff --git a/net-mail/ezmlm/files/ezmlm-0.53-errno.patch b/net-mail/ezmlm/files/ezmlm-0.53-errno.patch
deleted file mode 100644
index 3028e5630f60..000000000000
--- a/net-mail/ezmlm/files/ezmlm-0.53-errno.patch
+++ /dev/null
@@ -1,9 +0,0 @@
-diff -urN ezmlm-0.53/error.h ezmlm-0.53-new/error.h
---- ezmlm-0.53/error.h 2003-04-06 07:59:49.000000000 +0200
-+++ ezmlm-0.53-new/error.h 2003-04-06 08:09:25.000000000 +0200
-@@ -1,5 +1,6 @@
- #ifndef ERROR_H
- #define ERROR_H
-+#include <errno.h>
-
- extern int errno;
diff --git a/net-mail/ezmlm/files/ezmlm-0.53-gcc33.patch b/net-mail/ezmlm/files/ezmlm-0.53-gcc33.patch
deleted file mode 100644
index 9ab46890d079..000000000000
--- a/net-mail/ezmlm/files/ezmlm-0.53-gcc33.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -uwrbB -X list ezmlm-0.53.orig/log.h ezmlm-0.53/log.h
---- ezmlm-0.53.orig/log.h 2003-11-30 03:25:29.000000000 -0800
-+++ ezmlm-0.53/log.h 2003-11-30 03:22:16.000000000 -0800
-@@ -1,6 +1,6 @@
- #ifndef LOG_H
- #define LOG_H
-
--extern void log();
-+extern void log(char * event,char * addr);
-
- #endif
diff --git a/net-mail/ezmlm/metadata.xml b/net-mail/ezmlm/metadata.xml
deleted file mode 100644
index 51f94e3fbe0e..000000000000
--- a/net-mail/ezmlm/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>net-mail</herd>
-</pkgmetadata>