[Spambayes-checkins] spambayes/utilities hammer.py,NONE,1.1
Richie Hindle
richiehindle at users.sourceforge.net
Wed Dec 31 20:56:14 EST 2003
Update of /cvsroot/spambayes/spambayes/utilities
In directory sc8-pr-cvs1:/tmp/cvs-serv9186
Added Files:
hammer.py
Log Message:
Hammers the core SpamBayes code, repeatedly training and
classifying using faked-up messages.
--- NEW FILE: hammer.py ---
#! /usr/bin/env python
# Part of the SpamBayes project. Released under the Python Software
# Foundation license; see http://www.python.org/
import os, sys, re, random, textwrap
from spambayes import storage
from spambayes import tokenizer
__author__ = "Richie Hindle <richie at entrian.com>"
headerTemplate = """To: %(To)s
From: %(From)s
Subject: %(Subject)s
Date: %(Date)s
"""
[...1219 lines suppressed...]
tools. IT IS UP TO YOU NOW !
ORDER YOUR REPORTS TODAY AND GET STARTED ON YOUR ROAD
TO FREEDOM.
THERE IS NO NEED TO RESPOND TO THIS E-MAIL IF YOU DO NOT WISH TO
RECEIVE FURTHER CORRESPONDENCE. THIS IS A ONETIME E-MAIL.
Happy Mailing!
______________"""
} ]
if __name__ == '__main__':
hammer()
More information about the Spambayes-checkins
mailing list