[Spambayes-checkins] spambayes/spambayes message.py,1.7,1.8
Tim Stone
timstone4 at users.sourceforge.net
Sat Apr 12 20:02:57 EDT 2003
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv25842
Modified Files:
message.py
Log Message:
A few corrections
Index: message.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/message.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** message.py 11 Apr 2003 02:09:09 -0000 1.7
--- message.py 13 Apr 2003 02:02:54 -0000 1.8
***************
*** 141,145 ****
def setPayload(self, payload):
! prs = email.Parser.HeaderParser()
prs._parseheaders(self, StringIO(payload))
# we may want to do some header parsing error handling here
--- 141,147 ----
def setPayload(self, payload):
! prs = email.Parser.Parser()
! # this is kindof a hack, due to the fact that the parser creates a
! # new message object, and we already have the message object
prs._parseheaders(self, StringIO(payload))
# we may want to do some header parsing error handling here
***************
*** 183,187 ****
if self.c == 'u':
return options.header_unsure_string
!
return None
--- 185,189 ----
if self.c == 'u':
return options.header_unsure_string
!
return None
***************
*** 266,269 ****
--- 268,274 ----
if options.pop3proxy_add_mailid_to.find("header") != -1:
self[options.pop3proxy_mailid_header_name] = self.id
+
+ # print self._headers
+ # print self.as_string()
# This won't work for now, because email.Message does not isolate message body
More information about the Spambayes-checkins
mailing list