[issue11584] email/header.py: missing str()ification, and bogus encode()s
Steffen Daode Nurpmeso
report at bugs.python.org
Thu Mar 17 14:52:46 CET 2011
Steffen Daode Nurpmeso <sdaoden at googlemail.com> added the comment:
On Thu, Mar 17, 2011 at 01:03:43PM +0000, R. David Murray wrote:
> did you forget to attatch something?
I'll attach that TBZ archive you may use freely.
It's very large, but it contains everything i have to state to EMAIL.
It's the requested test.
Unpack it, cd to the created rdm-postman directory,
and run runit.sh from *within there*.
You may want to remove the '-VV' option to s-postman.py, it
produces a huge amount of output on STDERR...
The contained s-postman.py is patched; search 'DAVID PATCH' -
remove that patch and see your code handling mail gracefully.
(The only places which are of interest are indeed 'class
Ticket._bewitch_msg()' and 'class Splitter._text_digest()', and in
the end, but i also have a job to do ...)
> Also, in this:
>
> elf._msg[n] = email.header.make_header(email.header.decode_header(b))
>
> unless 'b' is an ASCII-only string, it isn't going to work.
David, i have no idea what it is, except that it is part of
a tuple which has been returned by Message.items().
This is your side of the story.
----------
Added file: http://bugs.python.org/file21268/rdm-postman.tbz
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11584>
_______________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdm-postman.tbz
Type: application/octet-stream
Size: 457054 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20110317/392e32a5/attachment-0001.obj>
More information about the Python-bugs-list
mailing list