[Spambayes-checkins] spambayes/Outlook2000 export.py,1.14,1.15
Tim Peters
tim_one at users.sourceforge.net
Thu Dec 25 14:21:58 EST 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv17442
Modified Files:
export.py
Log Message:
We were generating identical useless "Unix From" lines at the start of
each exported msg, like
From nobody Thu Dec 25 14:15:40 2003
Did no harm beyond wasting bytes, but it was confusing, and we *don't*
generate them when the Outlook plugin is scoring or training a msg.
Index: export.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/export.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** export.py 25 Dec 2003 19:15:27 -0000 1.14
--- export.py 25 Dec 2003 19:21:56 -0000 1.15
***************
*** 51,55 ****
# filename is the EID.txt
try:
! msg_text = str(message.GetEmailPackageObject())
except KeyboardInterrupt:
raise
--- 51,57 ----
# filename is the EID.txt
try:
! # Don't use str(msg) instead -- that inserts an information-
! # free "Unix From" line at the top of each msg.
! msg_text = message.GetEmailPackageObject().as_string()
except KeyboardInterrupt:
raise
***************
*** 72,76 ****
manager = GetManager()
config = manager.config
-
num_spam, num_ham, buckets = BuildBuckets(manager)
print "Have", num_spam, "spam and", num_ham, "ham to export,",
--- 74,77 ----
More information about the Spambayes-checkins
mailing list