aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/normalizemime/Makefile37
-rw-r--r--mail/normalizemime/distinfo2
-rw-r--r--mail/normalizemime/files/patch-normalizemime.cc11
-rw-r--r--mail/normalizemime/pkg-descr12
5 files changed, 63 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 9e3686e7dccb..2cbc25d0f595 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -243,6 +243,7 @@
SUBDIR += noattach
SUBDIR += nocc
SUBDIR += nohtml
+ SUBDIR += normalizemime
SUBDIR += nullmailer
SUBDIR += offlineimap
SUBDIR += openwebmail
diff --git a/mail/normalizemime/Makefile b/mail/normalizemime/Makefile
new file mode 100644
index 000000000000..b7d56b7fb736
--- /dev/null
+++ b/mail/normalizemime/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: normalize mime
+# Date created: Wed Aug 31 00:24:53 UTC 2005
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= normalizemime
+PORTVERSION= 1.16.20050628
+CATEGORIES= mail
+MASTER_SITES= http://hyvatti.iki.fi/~jaakko/spam/
+DISTNAME= normalizemime.cc
+EXTRACT_SUFX=
+EXTRACT_ONLY=
+
+MAINTAINER= lioux@FreeBSD.org
+COMMENT= A mime normalizer to be used as a preprocessor for email classication
+
+USE_ICONV= yes
+NO_WRKSUBDIR= yes
+
+CXXFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -liconv
+
+PLIST_FILES= bin/${DISTNAME:R}
+
+post-extract:
+ @${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${WRKSRC}
+
+do-build:
+ @cd ${WRKSRC} && ${CXX} ${CXXFLAGS} ${LDFLAGS} \
+ ${DISTNAME} -o ${DISTNAME:R}
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME:R} ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/mail/normalizemime/distinfo b/mail/normalizemime/distinfo
new file mode 100644
index 000000000000..f746e7454ce5
--- /dev/null
+++ b/mail/normalizemime/distinfo
@@ -0,0 +1,2 @@
+MD5 (normalizemime.cc) = ba31fdfbe6f3cb193df6d6be75fd940a
+SIZE (normalizemime.cc) = 41621
diff --git a/mail/normalizemime/files/patch-normalizemime.cc b/mail/normalizemime/files/patch-normalizemime.cc
new file mode 100644
index 000000000000..f8974d60cd14
--- /dev/null
+++ b/mail/normalizemime/files/patch-normalizemime.cc
@@ -0,0 +1,11 @@
+--- normalizemime.cc.orig Tue Aug 30 21:31:02 2005
++++ normalizemime.cc Tue Aug 30 21:33:08 2005
+@@ -498,7 +498,7 @@
+ char *obuf = buf;
+ memcpy (icopy, message.c_str(), in_left);
+ message.erase ();
+- char *ibuf = icopy;
++ const char *ibuf = icopy;
+
+ while (in_left > 0) {
+ if ((size_t)(-1) == iconv (ic, &ibuf, &in_left, &obuf, &out_left)) {
diff --git a/mail/normalizemime/pkg-descr b/mail/normalizemime/pkg-descr
new file mode 100644
index 000000000000..2722a55daaa0
--- /dev/null
+++ b/mail/normalizemime/pkg-descr
@@ -0,0 +1,12 @@
+[ excerpt from developer's www site with modifications ]
+
+This is a mime email message parser to be used as a preprocessor
+for email classification software.
+
+Tries to normalize the content to 8bit encoding with utf-8 character
+set. Also appends a copy of message body with HTML removed (IMG and
+A tags remain unaffected).
+
+WWW: http://hyvatti.iki.fi/~jaakko/spam/
+
+-- lioux@FreeBSD.org