Update of /cvsroot/spambayes/website
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22718
Modified Files:
applications.ht download.ht index.ht reply.txt windows.ht
Log Message:
Update for 1.0rc2
Index: applications.ht
===================================================================
RCS file: /cvsroot/spambayes/website/applications.ht,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** applications.ht 5 May 2004 07:42:09 -0000 1.28
--- applications.ht 26 Jun 2004 06:57:06 -0000 1.29
***************
*** 28,32 ****
Mark has packaged together an installer for the plugin.
Go to the Windows page for more.
! Alternatively, to run from source, download 1.0 release candidate 1.
Alternatively, you can use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
--- 28,32 ----
Mark has packaged together an installer for the plugin.
Go to the Windows page for more.
! Alternatively, to run from source, download 1.0 release candidate 2.
Alternatively, you can use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
***************
*** 44,48 ****
Availability
! Download 1.0 release candidate 1.
Alternatively, use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
--- 44,48 ----
Availability
! Download 1.0 release candidate 2.
Alternatively, use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
***************
*** 77,81 ****
Availability
! Download 1.0 release candidate 1.
Alternatively, use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
--- 77,81 ----
Availability
! Download 1.0 release candidate 2.
Alternatively, use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
***************
*** 93,97 ****
Availability
! Download 1.0 release candidate 1.
Alternatively, use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
--- 93,97 ----
Availability
! Download 1.0 release candidate 2.
Alternatively, use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
***************
*** 111,114 ****
Availability
! Download 1.0 release candidate 1.
Alternatively, use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
--- 111,114 ----
Availability
! Download 1.0 release candidate 2.
Alternatively, use CVS to get the code - go to the CVS page on the project's sourceforge site for more.
Index: download.ht
===================================================================
RCS file: /cvsroot/spambayes/website/download.ht,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** download.ht 5 May 2004 06:49:20 -0000 1.25
--- download.ht 26 Jun 2004 06:57:07 -0000 1.26
***************
*** 3,13 ****
Author: SpamBayes
! Version 1.0 (Release Candidate 1) of the SpamBayes project is now available.
!
This release is primarily to shake out those last few bugs on the way to a final 1.0
! release. Feedback to spambayes@python.org.
!
You may like to view the release notes
! or the files that make up this release.
Microsoft Windows
--- 3,14 ----
Author: SpamBayes
! Version 1.0 (Release Candidate 2) of the SpamBayes project is now available.
!
The purpose of this release is solely to shake out those last few bugs on the way to a final 1.0
! release - assuming no problems are found, a 1.0 release will follow in a few days. Feedback to
! spambayes@python.org.
!
You may like to view the release notes
! or the
! files that make up this release.
Microsoft Windows
Index: index.ht
===================================================================
RCS file: /cvsroot/spambayes/website/index.ht,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** index.ht 5 May 2004 06:49:20 -0000 1.33
--- index.ht 26 Jun 2004 06:57:07 -0000 1.34
***************
*** 5,9 ****
News
! The Version 1.0 release candidate (both source and Windows
binary installer) is now available!
See the download page for more.
--- 5,9 ----
News
! The second Version 1.0 release candidate (both source and Windows
binary installer) is now available!
See the download page for more.
Index: reply.txt
===================================================================
RCS file: /cvsroot/spambayes/website/reply.txt,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** reply.txt 13 Apr 2004 05:11:24 -0000 1.13
--- reply.txt 26 Jun 2004 06:57:07 -0000 1.14
***************
*** 48,53 ****
-----------------------------------------------
! Please ensure that you have the latest version. As of 2004-04-13, this is
! 1.0b1 for both the source and for the binary installer (for the Outlook
plug-in and sb_server). If you are still having trouble, try looking at the
bug reports that are currently open:
--- 48,53 ----
-----------------------------------------------
! Please ensure that you have the latest version. As of 2004-06-26, this is
! 1.0rc2 for both the source and for the binary installer (for the Outlook
plug-in and sb_server). If you are still having trouble, try looking at the
bug reports that are currently open:
Index: windows.ht
===================================================================
RCS file: /cvsroot/spambayes/website/windows.ht,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** windows.ht 18 May 2004 01:17:07 -0000 1.38
--- windows.ht 26 Jun 2004 06:57:07 -0000 1.39
***************
*** 11,17 ****
Latest Release
! The latest release is 1.0rc1 - see the
! release notes
! or download the installation program.
--- 11,17 ----
Latest Release
! The latest release is 1.0rc2 - see the
! release notes
! or download the installation program.
***************
*** 74,78 ****
Windows users using other mail clients and retrieving mail via POP3
can now download the same
!
installation program and use it to install a binary version of
sb_server, including a tray application.
--- 74,78 ----
Windows users using other mail clients and retrieving mail via POP3
can now download the same
!
installation program and use it to install a binary version of
sb_server, including a tray application.
From montanaro at users.sourceforge.net Sat Jun 26 15:12:33 2004
From: montanaro at users.sourceforge.net (Skip Montanaro)
Date: Sat Jun 26 15:12:36 2004
Subject: [Spambayes-checkins] spambayes/spambayes postfixproxy.py,1.1,1.2
Message-ID:
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15120
Modified Files:
postfixproxy.py
Log Message:
add a couple missing imports
realize the message is returned as a string from score_and_filter()
Index: postfixproxy.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/postfixproxy.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** postfixproxy.py 26 Jun 2004 01:47:57 -0000 1.1
--- postfixproxy.py 26 Jun 2004 19:12:31 -0000 1.2
***************
*** 7,13 ****
"""
import smtpd
import email.Parser
! from spambayes import Options, hammie
__all__ = ['SpambayesProxy']
--- 7,14 ----
"""
+ import os
import smtpd
import email.Parser
! from spambayes import Options, hammie, storage
__all__ = ['SpambayesProxy']
***************
*** 64,74 ****
pass
else:
! prob, msg = self.h.score_and_filter(msg)
if prob >= self.spam_cutoff:
self.push('503 Error: probable spam')
! self.log_message(msg)
return
- msg.add_header("X-Peer", peer[0])
- data = str(msg)
refused = self._deliver(mailfrom, rcpttos, data)
--- 65,74 ----
pass
else:
! msg.add_header("X-Peer", peer[0])
! prob, data = self.h.score_and_filter(msg)
if prob >= self.spam_cutoff:
self.push('503 Error: probable spam')
! self.log_message(data)
return
refused = self._deliver(mailfrom, rcpttos, data)
From montanaro at users.sourceforge.net Sat Jun 26 17:07:39 2004
From: montanaro at users.sourceforge.net (Skip Montanaro)
Date: Sat Jun 26 17:07:42 2004
Subject: [Spambayes-checkins] spambayes/spambayes postfixproxy.py,1.2,1.3
Message-ID:
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1612
Modified Files:
postfixproxy.py
Log Message:
Correct the import of smtpd. It's probably already imported as __main__.
We don't want to import it as smtpd in that case because the main program
setup may set the DEBUGSTREAM module global.
Index: postfixproxy.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/postfixproxy.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** postfixproxy.py 26 Jun 2004 19:12:31 -0000 1.2
--- postfixproxy.py 26 Jun 2004 21:07:37 -0000 1.3
***************
*** 8,12 ****
import os
! import smtpd
import email.Parser
from spambayes import Options, hammie, storage
--- 8,20 ----
import os
! # This module is generally going to be imported from smtpd which will be run
! # as the main program and thus be named __main__. Importing smtpd directly
! # will override any global object definitions. In particular, the
! # DEBUGSTREAM setting might get hosed.
! import __main__ as smtpd
! if not hasattr(smtpd, "PureProxy"):
! import smtpd
!
! import time
import email.Parser
from spambayes import Options, hammie, storage
***************
*** 60,63 ****
--- 68,72 ----
def process_message(self, peer, mailfrom, rcpttos, data):
+ t1 = time.time()
try:
msg = email.Parser.Parser().parsestr(data)
***************
*** 65,76 ****
pass
else:
msg.add_header("X-Peer", peer[0])
prob, data = self.h.score_and_filter(msg)
! if prob >= self.spam_cutoff:
! self.push('503 Error: probable spam')
! self.log_message(data)
! return
! refused = self._deliver(mailfrom, rcpttos, data)
! # TBD: what to do with refused addresses?
! print >> smtpd.DEBUGSTREAM, 'we got some refusals:', refused
--- 74,93 ----
pass
else:
+ t2 = time.time()
msg.add_header("X-Peer", peer[0])
prob, data = self.h.score_and_filter(msg)
! t3 = time.time()
! try:
! if prob >= self.spam_cutoff:
! self.log_message(data)
! print >> smtpd.DEBUGSTREAM, 'probable spam: %.2f' % prob
! return '503 Error: probable spam'
! refused = self._deliver(mailfrom, rcpttos, data)
! t4 = time.time()
! # TBD: what to do with refused addresses?
! print >> smtpd.DEBUGSTREAM, 'we got some refusals:', refused
! print >> smtpd.DEBUGSTREAM, 'deliver time:', t4-t3
! finally:
! print >> smtpd.DEBUGSTREAM, 'parse time:', t2-t1
! print >> smtpd.DEBUGSTREAM, 'score time:', t3-t2
From montanaro at users.sourceforge.net Mon Jun 28 09:23:03 2004
From: montanaro at users.sourceforge.net (Skip Montanaro)
Date: Mon Jun 28 09:23:07 2004
Subject: [Spambayes-checkins] spambayes/contrib tte.py,1.9,1.10
Message-ID:
Update of /cvsroot/spambayes/spambayes/contrib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7665
Modified Files:
tte.py
Log Message:
Worm around the extremely rare case during verbose most where the message
sneaks through without either a message-id or a subject.
Index: tte.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/contrib/tte.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** tte.py 28 Apr 2004 03:29:46 -0000 1.9
--- tte.py 28 Jun 2004 13:22:58 -0000 1.10
***************
*** 113,117 ****
if score > ham_cutoff:
if verbose:
! print >> sys.stderr, "miss ham: %.6f %s" % (score, hammsg["message-id"])
hmisses += 1
tdict[hammsg["message-id"]] = True
--- 113,125 ----
if score > ham_cutoff:
if verbose:
! selector = (hammsg["message-id"] or
! hammsg["subject"])
! if selector is None:
! print >> sys.stderr, "-"*25
! print >> sys.stderr, mboxutils.as_string(hammsg)
! print >> sys.stderr, "-"*25
! else:
! print >> sys.stderr, "miss ham: %.6f %s" % (
! score, selector)
hmisses += 1
tdict[hammsg["message-id"]] = True
***************
*** 121,125 ****
if score < spam_cutoff:
if verbose:
! print >> sys.stderr, "miss spam: %.6f %s" % (score, spammsg["message-id"])
smisses += 1
tdict[spammsg["message-id"]] = True
--- 129,141 ----
if score < spam_cutoff:
if verbose:
! selector = (spammsg["message-id"] or
! spammsg["subject"])
! if selector is None:
! print >> sys.stderr, "-"*25
! print >> sys.stderr, mboxutils.as_string(spammsg)
! print >> sys.stderr, "-"*25
! else:
! print >> sys.stderr, "miss spam: %.6f %s" % (
! score, selector)
smisses += 1
tdict[spammsg["message-id"]] = True
From kpitt at users.sourceforge.net Tue Jun 29 09:05:51 2004
From: kpitt at users.sourceforge.net (Kenny Pitt)
Date: Tue Jun 29 09:05:54 2004
Subject: [Spambayes-checkins] spambayes/Outlook2000/docs welcome.html, 1.7,
1.8
Message-ID:
Update of /cvsroot/spambayes/spambayes/Outlook2000/docs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12237
Modified Files:
welcome.html
Log Message:
Update screenshot of SpamBayes menu, and adjust dimensions in the HTML page
to match.
Index: welcome.html
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/docs/welcome.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** welcome.html 5 Nov 2003 13:05:15 -0000 1.7
--- welcome.html 29 Jun 2004 13:05:47 -0000 1.8
***************
*** 87,91 ****
|
--- 87,91 ----
|
From kpitt at users.sourceforge.net Tue Jun 29 09:05:52 2004
From: kpitt at users.sourceforge.net (Kenny Pitt)
Date: Tue Jun 29 09:05:57 2004
Subject: [Spambayes-checkins] spambayes/Outlook2000/docs/images
manager-select.jpg, 1.2, 1.3
Message-ID:
Update of /cvsroot/spambayes/spambayes/Outlook2000/docs/images
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12237/images
Modified Files:
manager-select.jpg
Log Message:
Update screenshot of SpamBayes menu, and adjust dimensions in the HTML page
to match.
Index: manager-select.jpg
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/docs/images/manager-select.jpg,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
Binary files /tmp/cvsxJmbud and /tmp/cvs2Qzyio differ
From nascheme at users.sourceforge.net Tue Jun 29 16:38:50 2004
From: nascheme at users.sourceforge.net (Neil Schemenauer)
Date: Tue Jun 29 16:38:56 2004
Subject: [Spambayes-checkins] spambayes/utilities hammie2cdb.py,NONE,1.1
Message-ID:
Update of /cvsroot/spambayes/spambayes/utilities
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11627
Added Files:
hammie2cdb.py
Log Message:
Simple script that converts hammie databases into cdb databases (usable
by CdbClassifier).
--- NEW FILE: hammie2cdb.py ---
#/usr/bin/env python
"""
Convert a hammie database to a cdb database.
usage %(prog)s [ -h ] [ -d | -p ]
-h - Print this usage message and exit.
-d file - Use a database-based classifier named file.
-p file - Use a pickle-based classifier named file.
"""
import sys
import getopt
from spambayes import cdb
from spambayes import storage
from spambayes.cdb_classifier import CdbClassifier
def usage(msg=None):
if msg is not None:
print >> sys.stderr, msg
print >> sys.stderr, __doc__.strip() % globals()
def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "hd:p:",
["help", "database=", "pickle="])
except getopt.GetoptError, msg:
usage(msg)
return 1
if len(args) != 1:
usage(msg)
return 1
cdbname = args[0]
dbname = usedb = None
for opt, arg in opts:
if opt in ("-h", "--help"):
usage()
return 0
dbname, usedb = storage.database_type(opts)
store = storage.open_storage(dbname, usedb)
bayes = CdbClassifier()
items = []
for word in store._wordinfokeys():
record = store._wordinfoget(word)
prob = store.probability(record)
items.append((word, str(prob)))
cdbfile = open(cdbname, "wb")
cdb.cdb_make(cdbfile, items)
cdbfile.close()
main()
From nascheme at users.sourceforge.net Tue Jun 29 18:28:08 2004
From: nascheme at users.sourceforge.net (Neil Schemenauer)
Date: Tue Jun 29 18:28:11 2004
Subject: [Spambayes-checkins] spambayes/utilities hammie2cdb.py,1.1,1.2
Message-ID:
Update of /cvsroot/spambayes/spambayes/utilities
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3483
Modified Files:
hammie2cdb.py
Log Message:
Fix usage error.
Index: hammie2cdb.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/utilities/hammie2cdb.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** hammie2cdb.py 29 Jun 2004 20:38:47 -0000 1.1
--- hammie2cdb.py 29 Jun 2004 22:28:05 -0000 1.2
***************
*** 14,17 ****
--- 14,18 ----
import sys
+ import os
import getopt
from spambayes import cdb
***************
*** 19,22 ****
--- 20,25 ----
from spambayes.cdb_classifier import CdbClassifier
+ prog = os.path.basename(sys.argv[0])
+
def usage(msg=None):
if msg is not None:
***************
*** 24,30 ****
print >> sys.stderr, __doc__.strip() % globals()
! def main():
try:
! opts, args = getopt.getopt(sys.argv[1:], "hd:p:",
["help", "database=", "pickle="])
except getopt.GetoptError, msg:
--- 27,33 ----
print >> sys.stderr, __doc__.strip() % globals()
! def main(args):
try:
! opts, args = getopt.getopt(args, "hd:p:",
["help", "database=", "pickle="])
except getopt.GetoptError, msg:
***************
*** 33,37 ****
if len(args) != 1:
! usage(msg)
return 1
cdbname = args[0]
--- 36,40 ----
if len(args) != 1:
! usage()
return 1
cdbname = args[0]
***************
*** 56,58 ****
cdbfile.close()
! main()
--- 59,62 ----
cdbfile.close()
! if __name__ == "__main__":
! sys.exit(main(sys.argv[1:]))
From anadelonbrin at users.sourceforge.net Wed Jun 30 19:10:41 2004
From: anadelonbrin at users.sourceforge.net (Tony Meyer)
Date: Wed Jun 30 19:10:45 2004
Subject: [Spambayes-checkins] spambayes/windows pop3proxy_tray.py,1.20,1.21
Message-ID:
Update of /cvsroot/spambayes/spambayes/windows
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15960/windows
Modified Files:
pop3proxy_tray.py
Log Message:
Fix typo identified by Richard B Barger
Index: pop3proxy_tray.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/windows/pop3proxy_tray.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** pop3proxy_tray.py 23 Dec 2003 03:12:40 -0000 1.20
--- pop3proxy_tray.py 30 Jun 2004 23:10:38 -0000 1.21
***************
*** 190,194 ****
self.tip = None
if self.use_service and not self.IsServiceAvailable():
! print "Service not availible. Using thread."
self.use_service = False
--- 190,194 ----
self.tip = None
if self.use_service and not self.IsServiceAvailable():
! print "Service not available. Using thread."
self.use_service = False