spambayes/scripts sb_server.py,1.45,1.46

"Tony Meyer" <[email protected]>
Newsgroups gmane.mail.spam.spambayes.cvs
Message-ID <[email protected]>
Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27215/scripts

Modified Files:
	sb_server.py 
Log Message:
Fix [ 1182671 ] When cache directories are full, 1.1a1 starts slowly

We re-opened the message database for every message in the corpus directory.  We are meant to open it once and keep track of it.

Index: sb_server.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_server.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** sb_server.py	6 Apr 2005 04:13:41 -0000	1.45
--- sb_server.py	22 Apr 2005 07:15:08 -0000	1.46
***************
*** 889,895 ****
              map(storage.ensureDir, [sc, hc, uc])
              if self.gzipCache:
!                 factory = GzipFileMessageFactory()
              else:
!                 factory = FileMessageFactory()
              age = options["Storage", "cache_expiry_days"]*24*60*60
              self.spamCorpus = ExpiryFileCorpus(age, factory, sc,
--- 889,895 ----
              map(storage.ensureDir, [sc, hc, uc])
              if self.gzipCache:
!                 factory = GzipFileMessageFactory(self.mdb)
              else:
!                 factory = FileMessageFactory(self.mdb)
              age = options["Storage", "cache_expiry_days"]*24*60*60
              self.spamCorpus = ExpiryFileCorpus(age, factory, sc,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.