aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-08-08 04:17:55 +0800
committersat <sat@FreeBSD.org>2007-08-08 04:17:55 +0800
commit29c86facc7fff09105ced4fa62981c2161d37ed6 (patch)
tree91a4a88a4d757499ccfcbf71d6b676c604bdbf29 /mail
parent3d966d11d8c218a1c059458d3d84b586ce5ab475 (diff)
downloadfreebsd-ports-gnome-29c86facc7fff09105ced4fa62981c2161d37ed6.tar.gz
freebsd-ports-gnome-29c86facc7fff09105ced4fa62981c2161d37ed6.tar.zst
freebsd-ports-gnome-29c86facc7fff09105ced4fa62981c2161d37ed6.zip
Add port mail/textmail:
Textmail filters a mail message or mbox, replacing MS Word, MS Excel, HTML, RTF, and PDF attachments with the plain text contained therein. By default, the following attachments are also deleted: image, audio, video, and MS Windows executables. MS winmail.dat attachments are replaced by any attachments contained therein, which are then replaced by text or deleted in the same fashion. Any of these actions can be suppressed with the command line options. Mail headers can also be selectively deleted. WWW: http://raf.org/textmail/ Author: raf <raf@raf.org>
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/textmail/Makefile34
-rw-r--r--mail/textmail/distinfo3
-rw-r--r--mail/textmail/pkg-descr11
4 files changed, 49 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 9e709cddae9c..e373e5a6da8b 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -613,6 +613,7 @@
SUBDIR += t-prot
SUBDIR += teapop
SUBDIR += teapop-devel
+ SUBDIR += textmail
SUBDIR += thunderbird
SUBDIR += thunderbird-dictionaries
SUBDIR += thunderbird-i18n
diff --git a/mail/textmail/Makefile b/mail/textmail/Makefile
new file mode 100644
index 000000000000..faa8c541e032
--- /dev/null
+++ b/mail/textmail/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: textmail
+# Date created: 8 August 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= textmail
+PORTVERSION= 20070803
+CATEGORIES= graphics
+MASTER_SITES= http://raf.org/textmail/ CENKES
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= Converts e-mail attachments to plain-text
+
+RUN_DEPENDS= antiword:${PORTSDIR}/textproc/antiword \
+ catdoc:${PORTSDIR}/textproc/catdoc \
+ xls2csv:${PORTSDIR}/textproc/catdoc \
+ lynx:${PORTSDIR}/www/lynx \
+ pdftotext:${PORTSDIR}/graphics/xpdf
+
+USE_PERL5= yes
+PLIST_FILES= bin/${PORTNAME}
+NO_WRKSUBDIR= yes
+MAN1= ${PORTNAME}.1
+
+do-build:
+ @cd ${WRKSRC}/&&pod2man ${PORTNAME}>${PORTNAME}.1
+
+do-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+ @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
+
+.include <bsd.port.mk>
diff --git a/mail/textmail/distinfo b/mail/textmail/distinfo
new file mode 100644
index 000000000000..2ad0863a285c
--- /dev/null
+++ b/mail/textmail/distinfo
@@ -0,0 +1,3 @@
+MD5 (textmail-20070803.tar.gz) = b8595480deb69df270b51a09443618bf
+SHA256 (textmail-20070803.tar.gz) = d6e0252a4fdd0efe3822e9808976e976172a26937da9bc7a3324ac6d96845fbb
+SIZE (textmail-20070803.tar.gz) = 14706
diff --git a/mail/textmail/pkg-descr b/mail/textmail/pkg-descr
new file mode 100644
index 000000000000..42c41dcc757b
--- /dev/null
+++ b/mail/textmail/pkg-descr
@@ -0,0 +1,11 @@
+Textmail filters a mail message or mbox, replacing MS Word, MS Excel,
+HTML, RTF, and PDF attachments with the plain text contained therein.
+By default, the following attachments are also deleted: image, audio,
+video, and MS Windows executables. MS winmail.dat attachments are
+replaced by any attachments contained therein, which are then replaced
+by text or deleted in the same fashion. Any of these actions can be
+suppressed with the command line options. Mail headers can also be
+selectively deleted.
+
+WWW: http://raf.org/textmail/
+Author: raf <raf@raf.org>