Revision: 3221
http://spambayes.svn.sourceforge.net/spambayes/?rev=3221&view=rev
Author: montanaro
Date: 2008-11-25 15:34:18 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
Add support for x-mine_nntp_headers.
Modified Paths:
--------------
trunk/spambayes/spambayes/Options.py
Modified: trunk/spambayes/spambayes/Options.py
===================================================================
--- trunk/spambayes/spambayes/Options.py 2008-11-25 15:33:35 UTC (rev
3220)
+++ trunk/spambayes/spambayes/Options.py 2008-11-25 15:34:18 UTC (rev
3221)
@@ -33,7 +33,7 @@
__all__ = ['options', '_']
# Grab the stuff from the core options class.
-from OptionsClass import *
+from spambayes.OptionsClass import *
# A little magic. We'd like to use ZODB as the default storage,
# because we've had so many problems with bsddb, and we'd like to swap
@@ -199,6 +199,12 @@
reasons if your corpora are from different sources."""),
BOOLEAN, RESTORE),
+ ("x-mine_nntp_headers", _("Mine NNTP-Posting-Host headers"), False,
+ _("""Usenet is host to a lot of spam. Usenet/Mailing list gateways
+ can let it leak across. Similar to mining received headers, we pick
+ apart the IP address or host name in this header for clues."""),
+ BOOLEAN, RESTORE),
+
("address_headers", _("Address headers to mine"), ("from", "to", "cc",
"sender", "reply-to"),
_("""Mine the following address headers. If you have mixed source
@@ -603,8 +609,8 @@
("persistent_use_database", _("Database backend"), DB_TYPE[0],
_("""SpamBayes can use either a ZODB or dbm database (quick to score
one message) or a pickle (quick to train on huge amounts of messages).
- There is also (currently experimental) the ability to use a mySQL or
- PostgrepSQL database."""),
+ There is also (experimental) ability to use a mySQL or PostgresSQL
+ database."""),
("zeo", "zodb", "cdb", "mysql", "pgsql", "dbm", "pickle"), RESTORE),
("persistent_storage_file", _("Storage file name"), DB_TYPE[1],
@@ -1360,7 +1366,7 @@
# in the current directory, and no win32 extensions installed
# to locate the "user" directory - seeing things are so lamely
# setup, it is worth printing a warning
- print >>sys.stderr, "NOTE: We can not locate an INI file " \
+ print >> sys.stderr, "NOTE: We can not locate an INI file " \
"for SpamBayes, and the Python for Windows extensions " \
"are not installed, meaning we can't locate your " \
"'user' directory. An empty configuration file at " \
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins