[Python-bugs-list] [ python-Bugs-736407 ] Problem With email.MIMEText Package
SourceForge.net
noreply@sourceforge.net
Mon, 12 May 2003 02:43:10 -0700
Bugs item #736407, was opened at 2003-05-12 09:41
Message generated for change (Settings changed) made by judasiscariot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=736407&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: John Abel (judasiscariot)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: Problem With email.MIMEText Package
Initial Comment:
Problem with email.MIMEText. I created a MIMEText
message (following the example in the documentation).
The problem occurs when as_string() is called. This is
the traceback:
File "/usr/local/lib/python2.3/email/Message.py",
line 113, in as_string
g.flatten(self, unixfrom=unixfrom)
File "/usr/local/lib/python2.3/email/Generator.py",
line 102, in flatten
self._write(msg)
File "/usr/local/lib/python2.3/email/Generator.py",
line 137, in _write
self._write_headers(msg)
File "/usr/local/lib/python2.3/email/Generator.py",
line 183, in _write_headers
header_name=h, continuation_ws='\t').encode()
File "/usr/local/lib/python2.3/email/Header.py", line
415, in encode
return self._encode_chunks(newchunks, maxlinelen)
File "/usr/local/lib/python2.3/email/Header.py", line
375, in _encode_chunks
_max_append(chunks, s, maxlinelen, extra)
File "/usr/local/lib/python2.3/email/quopriMIME.py",
line 84, in _max_append
L.append(s.lstrip())
AttributeError: 'list' object has no attribute 'lstrip'
I'm using 2.3b1, on RH9. The same piece of code works
with 2.2.2.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=736407&group_id=5470