From 1719d1b5865c6e2cdc4eb1cabfc1940f48cd0aec Mon Sep 17 00:00:00 2001 From: manu Date: Thu, 3 Apr 2003 12:06:07 +0000 Subject: Bayesian spam filter written in C --- mail/bogofilter/DESCR | 20 ++++++++++++++++++++ mail/bogofilter/Makefile | 20 ++++++++++++++++++++ mail/bogofilter/PLIST | 10 ++++++++++ mail/bogofilter/distinfo | 4 ++++ 4 files changed, 54 insertions(+) create mode 100644 mail/bogofilter/DESCR create mode 100644 mail/bogofilter/Makefile create mode 100644 mail/bogofilter/PLIST create mode 100644 mail/bogofilter/distinfo (limited to 'mail') diff --git a/mail/bogofilter/DESCR b/mail/bogofilter/DESCR new file mode 100644 index 00000000000..baa9a60ff37 --- /dev/null +++ b/mail/bogofilter/DESCR @@ -0,0 +1,20 @@ +Bogofilter is a mail filter that classifies mail as spam or ham +(non-spam) by a statistical analysis of the message's header and +content (body). The program is able to learn from the user's +classifications and corrections. + +The statistical technique is known as the Bayesian technique and +its use for spam was first described by Paul Graham in his article +A Plan For Spam. Gary Robinson, in his weblog Rants, suggests some +refinements for improved discrimination between spam and ham. +Bogofilter's primary algorithm uses the f(w) parameter and the +Fisher inverse chi-square technique that he describes. + +Bogofilter is run by an MDA script to classify an incoming message +as spam or ham (using wordlists stored by BerkeleyDB). Bogofilter +provides processing for plain text and html. It supports multi-part +mime message with decoding of base64, quoted-printable, and +uuencoded text and ignores attachments, such as images. + +Bogofilter is written in C. Supported platforms: Linux, FreeBSD, +Solaris, OS X, HP-UX, AIX, ... diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile new file mode 100644 index 00000000000..d1ed4f2a5e5 --- /dev/null +++ b/mail/bogofilter/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/04/03 12:06:07 manu Exp $ +# + +DISTNAME= bogofilter-0.11.1.3 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bogofilter/} + +MAINTAINER= manu@netbsd.org +HOMEPAGE= http://bogofilter.sourceforge.net +COMMENT= Bayesian spam filter written in C + +DEPENDS+= db4:../../databases/db4 + +HAS_CONFIGURE= YES + +CONFIGURE_ARGS+= --with-db=${BUILDLINK_PREFIX.db4}/include/db4 +CONFIGURE_ARGS+= --prefix=${PREFIX} + +.include "../../databases/db4/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/bogofilter/PLIST b/mail/bogofilter/PLIST new file mode 100644 index 00000000000..29c25db9efb --- /dev/null +++ b/mail/bogofilter/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/03 12:06:07 manu Exp $ +bin/bogofilter +bin/bogoutil +bin/bogolexer +bin/bogoupgrade +etc/bogofilter.cf.example +man/man1/bogofilter.1 +man/man1/bogoutil.1 +man/man1/bogoupgrade.1 +man/man1/bogolexer.1 diff --git a/mail/bogofilter/distinfo b/mail/bogofilter/distinfo new file mode 100644 index 00000000000..57abf18a46c --- /dev/null +++ b/mail/bogofilter/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/04/03 12:06:07 manu Exp $ + +SHA1 (bogofilter-0.11.1.3.tar.gz) = 3a3e32c02b6ea545e1fba45be54dc63b33e476f4 +Size (bogofilter-0.11.1.3.tar.gz) = 447122 bytes -- cgit v1.2.3