[Pymilter] Another bug to quash in email package
Stuart D. Gathman
stuart at bmsi.com
Wed Apr 28 23:24:36 EDT 2004
Yet another message that crashes the email package. Will need to
work around in the mime package somehow. At least I have a nice
example for unit testing.
Test script:
import sys
import mime
msg = mime.MimeMessage(sys.stdin)
sys.stdout.write(msg.as_string())
$ python2 te.py <test.fail
Traceback (most recent call last):
File "te.py", line 8, in ?
sys.stdout.write(msg.as_string())
File "/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/email/Message.py", line 130, in as_string
g.flatten(self, unixfrom=unixfrom)
File "/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/email/Generator.py", line 102, in flatten
self._write(msg)
File "/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/email/Generator.py", line 130, in _write
self._dispatch(msg)
File "/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/email/Generator.py", line 156, in _dispatch
meth(msg)
File "/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/email/Generator.py", line 199, in _handle_text
raise TypeError, 'string payload expected: %s' % type(payload)
TypeError: string payload expected: <type 'list'>
--
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
-------------- next part --------------
From gquvet at guam.net Wed Apr 28 21:35:45 2004
Received: from 162.255.167.64 by 68.81.212.198; Thu, 29 Apr 2004 08:30:53 +0600
Message-ID: <FFKXBLSDBZIBEVYPQLTE at pipex.com>
From: "Eliza Stapleton" <gquvet at guam.net>
Reply-To: "Eliza Stapleton" <gquvet at guam.net>
To: jean at victim.com
Subject: Mort.gage ra.tes are decreasing
Date: Wed, 28 Apr 2004 22:33:53 -0400
MIME-Version: 1.0
Content-Type: text/html;
boundary="--20194380884522122"
X-Originating-IP: 66.160.67.186
Received-SPF: neutral (spidey.bmsi.com: guessing: 68.81.212.198 is neither permitted nor denied by domain of guam.net)
----20194380884522122
Content-Type: text/html;
Content-Transfer-Encoding: 7Bit
<html><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
ypical spam pitch.
</html>
----20194380884522122--
More information about the Pymilter
mailing list