[Spambayes] Re: Outlook plugin plus Exchange

Mark Hammond mhammond@skippinet.com.au
Tue Nov 12 06:44:30 2002


Something that confuses me completely here is:

* Outlook shows headers with blank lines, appearing to royally screw things
up.
* Out Outlook client simply appends the body(s) to the headers as a simple
string.
* We pass this re-constituted string back into the email package, and it too
seems to screw up the header parsing!

ie, Outlook shows the headers as:

"""
...
X-OriginalArrivalTime: 13 Apr 2002 10:19:01.0938 (UTC)
FILETIME=[A1D8F920:01C1E2D4]

--next_part_of_message
of_message
...
"""

And the traceback from the email package shows:

"C:\Python22\spam\spambayes\email\Parser.py", line 105, in _parseheaders
    raise Errors.HeaderParseError(
HeaderParseError: Not a header, not a continuation: ``of_message''

Which seems very strange to me.  Why is the email package complaining about
the "of_message" line, rather than itself stopping header parsing after that
blank?  (Recall that the the email package does not see the "ContentType:"
header, as we remove that before sending it in.)

I assume I am simply missing how messages are parsed.

Mark.




More information about the Spambayes mailing list