[Spambayes] training error on very long lines
Dan Leavitt
dll at scitools.com
Fri Apr 30 13:25:21 EDT 2004
Hi,
I'm starting to get these error messages once in a while, apparently when training from messages with very long lines. Have I
missed a fix for this or is this an existing bug?
Dan
Traceback (most recent call last):
File "/usr/bin/sb_mboxtrain.py", line 351, in ?
main()
File "/usr/bin/sb_mboxtrain.py", line 342, in main
train(h, s, True, force, trainnew, removetrained)
File "/usr/bin/sb_mboxtrain.py", line 266, in train
mbox_train(h, path, is_spam, force)
File "/usr/bin/sb_mboxtrain.py", line 193, in mbox_train
outf.write(msg.as_string(True))
File "/usr/lib/python2.2/email/Message.py", line 107, in as_string
g.flatten(self, unixfrom=unixfrom)
File "/usr/lib/python2.2/email/Generator.py", line 100, in flatten
self._write(msg)
File "/usr/lib/python2.2/email/Generator.py", line 128, in _write
self._dispatch(msg)
File "/usr/lib/python2.2/email/Generator.py", line 154, in _dispatch
meth(msg)
File "/usr/lib/python2.2/email/Generator.py", line 212, in _handle_text
raise TypeError, 'string payload expected: %s' % type(payload)
TypeError: string payload expected: <type 'list'>
The trimmed cut and pasted message is:
>From uvsna at stny.rr.com Wed Apr 28 23:40:55 2004
Return-Path: <uvsna at stny.rr.com>
Message-ID: <CYDBKAJZFJQLGIVLFWNV at planet.nl>
From: "Dustin Cantu" <uvsna at stny.rr.com>
Reply-To: "Dustin Cantu" <uvsna at stny.rr.com>
To: whomever
Subject: Homeowners Get the best r.ate in half the time
Date: Wed, 28 Apr 2004 22:41:02 -0600
MIME-Version: 1.0
Content-Type: text/html;
boundary="--05801166718280276418"
X-Priority: 3
X-IP: 244.223.184.112
Status: O
X-Status:
X-Keywords:
----05801166718280276418
Content-Type: text/html;
Content-Transfer-Encoding: 7Bit
<html><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><p>If you are paying more than 6% on your mort.gage,
we can slash your payment!
<p>
GUARANTEED LOWEST RA.TES ON THE PLANET
<p>
APPROVAL REGARDLESS OF C.REDIT HISTORY!
<p>
Start saving today
<p>
<b><a href="http://www.expeditemortgage.net/?mal">Show Me The Lowest Ra.tes</a></b>
<p><font color=#CCCCCC>mop pompey slow sod voss colloquy mantlepiece patagonia imagen oracle execute gould shameface care pentagon
milan rummage harlan centrist arccosine borax rand copy herbert camp atlantis awesome deficit american minuend bob rescue salle
shade chuckwalla songbook bike differentiate bootes condominium nellie village pizzicato venus voyage horace cute indiscreet clone
cherry amalgam debtor coxcomb versailles bizet counterfeit dependent elsie doherty </font> <p><p><a
href="http://www.expeditemortgage.net/100/">re.move</a><p>
</html>
----05801166718280276418--
More information about the Spambayes
mailing list