[Spambayes-checkins] spambayes unheader.py,1.5,1.6

Greg Ward gward@users.sourceforge.net
Tue, 24 Sep 2002 19:09:00 -0700


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

Modified Files:
	unheader.py 
Log Message:
Make Parser a HeaderParser subclass, so get_payload() returns the raw
message body.  Necessary because doSA() assuems get_payload() always
returns a string, which isn't so if the message has MIME structure.


Index: unheader.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/unheader.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** unheader.py	25 Sep 2002 02:02:41 -0000	1.5
--- unheader.py	25 Sep 2002 02:08:58 -0000	1.6
***************
*** 24,28 ****
                  self._headers[i] = (k, newval)
  
! class Parser(email.Parser.Parser):
      def __init__(self):
          email.Parser.Parser.__init__(self, Message)
--- 24,28 ----
                  self._headers[i] = (k, newval)
  
! class Parser(email.Parser.HeaderParser):
      def __init__(self):
          email.Parser.Parser.__init__(self, Message)