From 41fb9bf5e69d83f5c82128e910085d9f2c5f951e Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 18 Jul 2007 10:08:27 +0000 Subject: [PATCH] import spambayes 1.1a4 SpamBayes is a tool used to segregate unwanted mail (spam) from the mail you want (ham). Before SpamBayes can be your spam filter of choice you need to train it on representative samples of email you receive. After it's been trained, you use SpamBayes to classify new mail according to its spamminess and hamminess qualities. from Will Maier (MAINTAINER), with some small tweaks by me --- mail/spambayes/Makefile | 33 ++++++++ mail/spambayes/distinfo | 5 ++ mail/spambayes/pkg/DESCR | 16 ++++ mail/spambayes/pkg/PLIST | 165 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 219 insertions(+) create mode 100644 mail/spambayes/Makefile create mode 100644 mail/spambayes/distinfo create mode 100644 mail/spambayes/pkg/DESCR create mode 100644 mail/spambayes/pkg/PLIST diff --git a/mail/spambayes/Makefile b/mail/spambayes/Makefile new file mode 100644 index 00000000000..d9d8e79b16a --- /dev/null +++ b/mail/spambayes/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/07/18 10:08:27 jasper Exp $ + +COMMENT= statistical anti-spam filter + +DISTNAME= spambayes-1.1a4 + +CATEGORIES= mail lang/python + +HOMEPAGE= http://www.spambayes.org/ + +MAINTAINER= Will Maier + +# PSF +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=spambayes/} + +MODULES= lang/python + +NO_REGRESS= Yes + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/spambayes + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/spambayes + ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/spambayes/ +.for file in muttrc procmailrc spambayes.el + ${INSTALL_DATA} ${WRKSRC}/contrib/${file} ${PREFIX}/share/examples/spambayes/ +.endfor + +.include diff --git a/mail/spambayes/distinfo b/mail/spambayes/distinfo new file mode 100644 index 00000000000..712127d7d26 --- /dev/null +++ b/mail/spambayes/distinfo @@ -0,0 +1,5 @@ +MD5 (spambayes-1.1a4.tar.gz) = NUlK3hvzgGUbzDB3vxCDEA== +RMD160 (spambayes-1.1a4.tar.gz) = OtQYTX5dGW784+OTENtJBxBa19E= +SHA1 (spambayes-1.1a4.tar.gz) = 6EmDPyFSS/u9sMj4VJBs3BpQZoM= +SHA256 (spambayes-1.1a4.tar.gz) = fuhU0odmgDe5JxyWZOVFd1q/pKsl0GeahZ00EssW/DQ= +SIZE (spambayes-1.1a4.tar.gz) = 992533 diff --git a/mail/spambayes/pkg/DESCR b/mail/spambayes/pkg/DESCR new file mode 100644 index 00000000000..49f1ca40508 --- /dev/null +++ b/mail/spambayes/pkg/DESCR @@ -0,0 +1,16 @@ +SpamBayes is a tool used to segregate unwanted mail (spam) from the mail +you want (ham). Before SpamBayes can be your spam filter of choice you +need to train it on representative samples of email you receive. After +it's been trained, you use SpamBayes to classify new mail according to +its spamminess and hamminess qualities. + +When SpamBayes filters your email, it compares each unclassified message +against the information it saved from training and makes a decision +about whether it thinks the message qualifies as ham or spam, or if it's +unsure about how to classify the message. It then passes this +information on to your mail client. Unless you are using IMAP or +Outlook, this means it adds a header to each message, +X-SpamBayes-Classification: spam|ham|unsure. You can then filter on this +header, to file away suspected spam into its own mail folder for +example. IMAP and Outlook both have the capacity to do the filtering +themselves, so the header is not necessary. diff --git a/mail/spambayes/pkg/PLIST b/mail/spambayes/pkg/PLIST new file mode 100644 index 00000000000..d5e6627ff72 --- /dev/null +++ b/mail/spambayes/pkg/PLIST @@ -0,0 +1,165 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/07/18 10:08:27 jasper Exp $ +bin/core_server.py +bin/sb_bnfilter.py +bin/sb_bnserver.py +bin/sb_chkopts.py +bin/sb_client.py +bin/sb_dbexpimp.py +bin/sb_evoscore.py +bin/sb_filter.py +bin/sb_imapfilter.py +bin/sb_mailsort.py +bin/sb_mboxtrain.py +bin/sb_notesfilter.py +bin/sb_pop3dnd.py +bin/sb_server.py +bin/sb_unheader.py +bin/sb_upload.py +bin/sb_xmlrpcserver.py +lib/python${MODPY_VERSION}/site-packages/spambayes/ +lib/python${MODPY_VERSION}/site-packages/spambayes/CorePlugin.py +lib/python${MODPY_VERSION}/site-packages/spambayes/CorePlugin.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/CoreUI.py +lib/python${MODPY_VERSION}/site-packages/spambayes/CoreUI.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/Corpus.py +lib/python${MODPY_VERSION}/site-packages/spambayes/Corpus.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/CostCounter.py +lib/python${MODPY_VERSION}/site-packages/spambayes/CostCounter.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/Dibbler.py +lib/python${MODPY_VERSION}/site-packages/spambayes/Dibbler.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/FileCorpus.py +lib/python${MODPY_VERSION}/site-packages/spambayes/FileCorpus.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/Histogram.py +lib/python${MODPY_VERSION}/site-packages/spambayes/Histogram.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/ImageStripper.py +lib/python${MODPY_VERSION}/site-packages/spambayes/ImageStripper.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/ImapUI.py +lib/python${MODPY_VERSION}/site-packages/spambayes/ImapUI.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/MoinSecurityPolicy.py +lib/python${MODPY_VERSION}/site-packages/spambayes/MoinSecurityPolicy.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/Options.py +lib/python${MODPY_VERSION}/site-packages/spambayes/Options.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/OptionsClass.py +lib/python${MODPY_VERSION}/site-packages/spambayes/OptionsClass.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/ProxyUI.py +lib/python${MODPY_VERSION}/site-packages/spambayes/ProxyUI.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/PyMeldLite.py +lib/python${MODPY_VERSION}/site-packages/spambayes/PyMeldLite.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/ServerUI.py +lib/python${MODPY_VERSION}/site-packages/spambayes/ServerUI.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/Stats.py +lib/python${MODPY_VERSION}/site-packages/spambayes/Stats.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/TestDriver.py +lib/python${MODPY_VERSION}/site-packages/spambayes/TestDriver.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/TestToolsUI.py +lib/python${MODPY_VERSION}/site-packages/spambayes/TestToolsUI.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/Tester.py +lib/python${MODPY_VERSION}/site-packages/spambayes/Tester.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/UserInterface.py +lib/python${MODPY_VERSION}/site-packages/spambayes/UserInterface.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/Version.py +lib/python${MODPY_VERSION}/site-packages/spambayes/Version.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/XMLRPCPlugin.py +lib/python${MODPY_VERSION}/site-packages/spambayes/XMLRPCPlugin.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/__init__.py +lib/python${MODPY_VERSION}/site-packages/spambayes/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/cdb.py +lib/python${MODPY_VERSION}/site-packages/spambayes/cdb.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/cdb_classifier.py +lib/python${MODPY_VERSION}/site-packages/spambayes/cdb_classifier.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/chi2.py +lib/python${MODPY_VERSION}/site-packages/spambayes/chi2.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/classifier.py +lib/python${MODPY_VERSION}/site-packages/spambayes/classifier.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/compatcsv.py +lib/python${MODPY_VERSION}/site-packages/spambayes/compatcsv.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/compatheapq.py +lib/python${MODPY_VERSION}/site-packages/spambayes/compatheapq.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/compatsets.py +lib/python${MODPY_VERSION}/site-packages/spambayes/compatsets.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/ +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/README_txt.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/README_txt.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/__init__.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/classify_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/classify_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/config_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/config_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/helmet_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/helmet_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/help_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/help_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/message_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/message_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/query_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/query_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/scanning__init__.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/scanning__init__.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/status_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/status_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/train_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/train_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/ui_html.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/ui_html.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/ui_psp.py +lib/python${MODPY_VERSION}/site-packages/spambayes/core_resources/ui_psp.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/dbmstorage.py +lib/python${MODPY_VERSION}/site-packages/spambayes/dbmstorage.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/dnscache.py +lib/python${MODPY_VERSION}/site-packages/spambayes/dnscache.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/hammie.py +lib/python${MODPY_VERSION}/site-packages/spambayes/hammie.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/hammiebulk.py +lib/python${MODPY_VERSION}/site-packages/spambayes/hammiebulk.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/i18n.py +lib/python${MODPY_VERSION}/site-packages/spambayes/i18n.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/mboxutils.py +lib/python${MODPY_VERSION}/site-packages/spambayes/mboxutils.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/message.py +lib/python${MODPY_VERSION}/site-packages/spambayes/message.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/msgs.py +lib/python${MODPY_VERSION}/site-packages/spambayes/msgs.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/oe_mailbox.py +lib/python${MODPY_VERSION}/site-packages/spambayes/oe_mailbox.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/optimize.py +lib/python${MODPY_VERSION}/site-packages/spambayes/optimize.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/postfixproxy.py +lib/python${MODPY_VERSION}/site-packages/spambayes/postfixproxy.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/ +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/__init__.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/classify_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/classify_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/config_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/config_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/helmet_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/helmet_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/help_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/help_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/message_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/message_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/query_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/query_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/scanning__init__.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/scanning__init__.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/status_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/status_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/train_gif.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/train_gif.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/ui_html.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/ui_html.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/ui_psp.py +lib/python${MODPY_VERSION}/site-packages/spambayes/resources/ui_psp.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/smtpproxy.py +lib/python${MODPY_VERSION}/site-packages/spambayes/smtpproxy.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/storage.py +lib/python${MODPY_VERSION}/site-packages/spambayes/storage.pyc +lib/python${MODPY_VERSION}/site-packages/spambayes/tokenizer.py +lib/python${MODPY_VERSION}/site-packages/spambayes/tokenizer.pyc +share/doc/spambayes/ +share/doc/spambayes/README.txt +share/examples/spambayes/ +share/examples/spambayes/muttrc +share/examples/spambayes/procmailrc +share/examples/spambayes/spambayes.el