The new parser for the email package croaks with an
AssertionError on the attached email message. Here's the
traceback:
Traceback (most recent call last):
File "/Users/skip/local/lib/python2.4/site-packages/
spambayes/mboxutils.py", line 129, in get_message
msg = email.message_from_string(obj)
File "/Users/skip/local/lib/python2.4/email/__init__.py",
line 45, in message_from_string
return Parser(_class, strict=strict).parsestr(s)
File "/Users/skip/local/lib/python2.4/email/Parser.py", line
67, in parsestr
return self.parse(StringIO(text),
headersonly=headersonly)
File "/Users/skip/local/lib/python2.4/email/Parser.py", line
56, in parse
feedparser.feed(data)
File "/Users/skip/local/lib/python2.4/email/FeedParser.py",
line 145, in feed
self._call_parse()
File "/Users/skip/local/lib/python2.4/email/FeedParser.py",
line 149, in _call_parse
self._parse()
File "/Users/skip/local/lib/python2.4/email/FeedParser.py",
line 359, in _parsegen
assert capturing_preamble
Assigning to Barry on the outside chance that he'll have
enough round tuits to fix this before the 2.4 release.
|