[Spambayes-checkins] spambayes hammie.py,1.35,1.36

Skip Montanaro montanaro@users.sourceforge.net
Wed Nov 6 02:07:44 2002


Update of /cvsroot/spambayes/spambayes
In directory usw-pr-cvs1:/tmp/cvs-serv15267

Modified Files:
	hammie.py 
Log Message:
use mboxutils.get_message()


Index: hammie.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/hammie.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** hammie.py	3 Nov 2002 14:24:36 -0000	1.35
--- hammie.py	6 Nov 2002 02:07:42 -0000	1.36
***************
*** 263,270 ****
          """
  
!         if hasattr(msg, "readlines"):
!             msg = email.message_from_file(msg)
!         elif not hasattr(msg, "add_header"):
!             msg = email.message_from_string(msg)
          prob, clues = self._scoremsg(msg, True)
          if prob < ham_cutoff:
--- 263,267 ----
          """
  
!         msg = mboxutils.get_message(msg)
          prob, clues = self._scoremsg(msg, True)
          if prob < ham_cutoff: