[Spambayes-checkins] spambayes/spambayes FileCorpus.py,1.13,1.14
Tony Meyer
anadelonbrin at users.sourceforge.net
Fri Jul 16 02:31:38 CEST 2004
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30741/spambayes
Modified Files:
FileCorpus.py
Log Message:
Fix another bug I introduced. If we don't set msg.loaded, then the body is
wiped (we try to load it from the file, which we haven't written yet).
Index: FileCorpus.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/FileCorpus.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** FileCorpus.py 15 Jul 2004 23:53:27 -0000 1.13
--- FileCorpus.py 16 Jul 2004 00:31:34 -0000 1.14
***************
*** 282,285 ****
--- 282,287 ----
del self[name]
self[name] = value
+ print msg.get_payload()
+ print msg.as_string()
def remove(self):
***************
*** 351,354 ****
--- 353,357 ----
msg.file_name = key
msg.directory = directory
+ msg.loaded = True
return msg
return FileMessage(key, directory)
***************
*** 383,386 ****
--- 386,390 ----
msg.file_name = key
msg.directory = directory
+ msg.loaded = True
return msg
return GzipFileMessage(key, directory)
More information about the Spambayes-checkins
mailing list