[ python-Bugs-1030941 ] Email message croaks the new email pkg
parser
SourceForge.net
noreply at sourceforge.net
Mon Sep 20 02:34:46 CEST 2004
Bugs item #1030941, was opened at 2004-09-19 19:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1030941&group_id=5470
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: Email message croaks the new email pkg parser
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1030941&group_id=5470
More information about the Python-bugs-list
mailing list