After cvs up today, the Spambayes sb_filter.py app
croaks on the attached spam (spam10). I suspect
it's got something to do with the new FeedParser
in the email package.
Running 'sb_filter.py spam10' I get this traceback:
Traceback (most recent call last):
File "/Users/skip/local/bin/sb_filter.py", line 257, in ?
main()
File "/Users/skip/local/bin/sb_filter.py", line 245, in main
mbox = mboxutils.getmbox(fname)
File "/Users/skip/local/lib/python2.4/site-packages/
spambayes/mboxutils.py", line 66, in getmbox
return [get_message(sys.stdin)]
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 317, in _parsegen
mo = boundaryre.match(line)
TypeError: expected string or buffer
|