aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-08-07 20:17:55 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-08-07 20:17:55 +0000
commitc6b4f42a5ea82977d1f769085baf30e1d47f0e38 (patch)
tree128be31546860915831e6a63cca141c666c7b622 /mail
parentbca6524f5f7d3b6de3eb3c3d9df28d7c103409c5 (diff)
downloadports-c6b4f42a5ea82977d1f769085baf30e1d47f0e38.tar.gz
ports-c6b4f42a5ea82977d1f769085baf30e1d47f0e38.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>
Notes
Notes: svn path=/head/; revision=197312
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>