[Spambayes-checkins] spambayes hammie.py,1.10,1.11
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 06 Sep 2002 23:18:05 -0700
Update of /cvsroot/spambayes/spambayes
In directory usw-pr-cvs1:/tmp/cvs-serv24222
Modified Files:
hammie.py
Log Message:
filter(): output 'unixfrom' line only if it was present on input.
Index: hammie.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/hammie.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** hammie.py 7 Sep 2002 06:11:10 -0000 1.10
--- hammie.py 7 Sep 2002 06:18:03 -0000 1.11
***************
*** 239,243 ****
disp += "; " + formatclues(clues)
msg.add_header(DISPHEADER, disp)
! output.write(str(msg))
def score(bayes, msgs):
--- 239,243 ----
disp += "; " + formatclues(clues)
msg.add_header(DISPHEADER, disp)
! output.write(msg.as_string(unixfrom=(msg.get_unixfrom() is not None)))
def score(bayes, msgs):