[spambayes-bugs] [ spambayes-Bugs-695632 ] MySQL Digest Causes Spambayes to Crash

SourceForge.net noreply at sourceforge.net
Tue Sep 16 00:54:07 EDT 2003


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

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Richard Scott (rich1)
Assigned to: Nobody/Anonymous (nobody)
Summary: MySQL Digest Causes Spambayes to Crash

Initial Comment:
The main mysql e-mail list (digest version) and the

mysql bugs e-mail list (digest version) always cause

Spambayes to crash.  It appears that the error occurs

in Generator.py.

Here is the output:



Training ham (/home/richard/Mail/inbox):

  Reading as MH mailbox

  /home/richard/Mail/inbox/2        

  /home/richard/Mail/inbox/5        

  /home/richard/Mail/inbox/6        

  /home/richard/Mail/inbox/724        

  /home/richard/Mail/inbox/29        

  /home/richard/Mail/inbox/751        

Traceback (most recent call last):

  File "/home/richard/spambayes/mboxtrain.py", line

278, in ?

    main()

  File "/home/richard/spambayes/mboxtrain.py", line

265, in main

    train(h, g, False, force)

  File "/home/richard/spambayes/mboxtrain.py", line

207, in train

    mhdir_train(h, path, is_spam, force)

  File "/home/richard/spambayes/mboxtrain.py", line

190, in mhdir_train

    f.write(msg.as_string())

  File

"/usr/lib/python2.2/site-packages/email/Message.py",

line 107, in as_string

    g.flatten(self, unixfrom=unixfrom)

  File

"/usr/lib/python2.2/site-packages/email/Generator.py",

line 100, in flatten

    self._write(msg)

  File

"/usr/lib/python2.2/site-packages/email/Generator.py",

line 128, in _write

    self._dispatch(msg)

  File

"/usr/lib/python2.2/site-packages/email/Generator.py",

line 154, in _dispatch

    meth(msg)

  File

"/usr/lib/python2.2/site-packages/email/Generator.py",

line 243, in _handle_multipart

    g.flatten(part, unixfrom=False)

  File

"/usr/lib/python2.2/site-packages/email/Generator.py",

line 100, in flatten

    self._write(msg)

  File

"/usr/lib/python2.2/site-packages/email/Generator.py",

line 128, in _write

    self._dispatch(msg)

  File

"/usr/lib/python2.2/site-packages/email/Generator.py",

line 154, in _dispatch

    meth(msg)

  File

"/usr/lib/python2.2/site-packages/email/Generator.py",

line 212, in _handle_text

    raise TypeError, 'string payload expected: %s' %

type(payload)

TypeError: string payload expected: <type 'list'>



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

>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-09-16 16:54

Message:
Logged In: YES 
user_id=552329

No further comment (since March), so presumably Tim is 

correct and it has been resolved.  Please reopen if this is not 

the case.

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

Comment By: Tim Stone (timstone4)
Date: 2003-03-19 06:48

Message:
Logged In: YES 
user_id=645698

I believe this problem has been resolved for pop3proxy.

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

Comment By: Chuck Bearden (cfbearden)
Date: 2003-03-19 04:24

Message:
Logged In: YES 
user_id=499555

I am experiencing the same problem with the axkit digest and

also with the 

monthly log files for a LISTSERV list that I run.  Perhaps

it's the presence of 

so many From: To: Subject: Received: etc. lines within one

email message.



I can fix this problem for myself by inserting a procmail

recipe for the digests

before the spambayes recipes, but I'm not sure how well that

approach will

scale to the 100+ folks I'd like to deploy this for.  Also,

it could cause 

problems for POP proxy users, since I don't see how they can

prevent their

digest traffic from being considered by by the spambayes

filters on the proxy.





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

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



More information about the Spambayes-bugs mailing list