[spambayes-bugs] [ spambayes-Bugs-1019797 ] some spam repeatably crashes sb_filter.py (backtrace)

SourceForge.net noreply at sourceforge.net
Wed Nov 3 04:52:46 CET 2004


Bugs item #1019797, was opened at 2004-09-01 03:59
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1019797&group_id=61702

Category: hammie
Group: Binary 1.0rc2
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Nathan Kurz (nkurz)
Assigned to: Nobody/Anonymous (nobody)
Summary: some spam repeatably crashes sb_filter.py (backtrace)

Initial Comment:
I'm running Python 2.3.1 on Linux, processing my mail
with procmail.  Recently I've been getting spam that
crashes sb_filter.py.  Failure can be repeated from the
command line.  

Seems to affect only mail that SpamAssassin has tagged
as spam.  Repeatable for any message that fails.  I had
this problem starting 2 weeks ago with Source 1.0rc1,
upgraded to Source 1.0rc2 and problem persists. 
Affects ~10% of messages.

(note: no option for Source 1.0rc2 in reporting form)

Backtrace looks looks like this:

Traceback (most recent call last):
  File "/usr/bin/sb_filter.py", line 257, in ?
    main()
  File "/usr/bin/sb_filter.py", line 253, in main
    result = mboxutils.as_string(msg, unixfrom=unixfrom)
  File
"/usr/lib/python2.3/site-packages/spambayes/mboxutils.py",
line 170, in as_string
    parts.append(part.as_string())
  File "/usr/lib/python2.3/email/Message.py", line 130,
in as_string
    g.flatten(self, unixfrom=unixfrom)
  File "/usr/lib/python2.3/email/Generator.py", line
103, in flatten
    self._write(msg)
  File "/usr/lib/python2.3/email/Generator.py", line
131, in _write
    self._dispatch(msg)
  File "/usr/lib/python2.3/email/Generator.py", line
157, in _dispatch
    meth(msg)
  File "/usr/lib/python2.3/email/Generator.py", line
298, in _handle_message
    g.flatten(msg.get_payload(0), unixfrom=False)
  File "/usr/lib/python2.3/email/Generator.py", line
103, in flatten
    self._write(msg)
  File "/usr/lib/python2.3/email/Generator.py", line
131, in _write
    self._dispatch(msg)
  File "/usr/lib/python2.3/email/Generator.py", line
157, in _dispatch
    meth(msg)
  File "/usr/lib/python2.3/email/Generator.py", line
200, in _handle_text
    raise TypeError, 'string payload expected: %s' %
type(payload)
TypeError: string payload expected: <type 'list'>

Test message attached.


----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-11-03 16:52

Message:
Logged In: YES 
user_id=552329

We haven't heard from the original reporter of the bug for some
time.  Without the requested information, there really isn't much
we can do.  If anyone does provide further information, please
also change the bug status back to "Open".

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-09-16 15:15

Message:
Logged In: YES 
user_id=552329

I thought that sb_filter handled these ok with 1.0rc2 - is
that definately the version you are using?

If you are able/willing to use Python 2.4, you will stop
having these problems, BTW.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1019797&group_id=61702


More information about the Spambayes-bugs mailing list