[Spambayes] Spam crashing sb_imapfilter.py
Woo, Christopher
Christopher.Woo at pepperdine.edu
Tue Aug 31 00:16:31 CEST 2004
Has anyone come across spam that crashes sb_imapfilter.py? I've been getting
one or two a week that will stop sb_imapfilter.py cold, and the only way I
can fix it is to go in manually and delete the offending spam. I've several
of these emails saved, and I can reproduce the error:
c:\spambayes\scripts\sb_imapfilter.py -c -e y
SpamBayes IMAP Filter Version 0.3 (April 2004)
and engine SpamBayes Engine Version 0.3 (January 2004).
Traceback (most recent call last):
File "c:\spambayes\scripts\sb_imapfilter.py", line 857, in ?
run()
File "c:\spambayes\scripts\sb_imapfilter.py", line 847, in run
imap_filter.Filter()
File "c:\spambayes\scripts\sb_imapfilter.py", line 719, in Filter
self.unsure_folder)
File "c:\spambayes\scripts\sb_imapfilter.py", line 633, in Filter
for msg in self:
File "c:\spambayes\scripts\sb_imapfilter.py", line 528, in __iter__
yield self[key]
File "c:\spambayes\scripts\sb_imapfilter.py", line 577, in __getitem__
msg.Save()
File "c:\spambayes\scripts\sb_imapfilter.py", line 443, in Save
self.as_string())
File "C:\Python23\Lib\site-packages\spambayes\message.py", line 277, in
as_string
return self._force_CRLF(email.Message.Message.as_string(self, unixfrom))
File "C:\Python23\Lib\site-packages\email\Message.py", line 113, in
as_string
g.flatten(self, unixfrom=unixfrom)
File "C:\Python23\Lib\site-packages\email\Generator.py", line 103, in
flatten
self._write(msg)
File "C:\Python23\Lib\site-packages\email\Generator.py", line 131, in
_write
self._dispatch(msg)
File "C:\Python23\Lib\site-packages\email\Generator.py", line 157, in
_dispatch
meth(msg)
File "C:\Python23\Lib\site-packages\email\Generator.py", line 200, in
_handle_text
raise TypeError, 'string payload expected: %s' % type(payload)
TypeError: string payload expected: <type 'list'>
==================
Is this something that the spammers are deliberately putting into their
emails? I have the email (and several others that cause crashes), just
didn't know if the list would take to kindly to have it attached to the
message.
Chris
More information about the Spambayes
mailing list