[issue11243] email/message.py str conversion

Steffen Daode Nurpmeso report at bugs.python.org
Tue Feb 22 11:42:45 CET 2011


Steffen Daode Nurpmeso <sdaoden at googlemail.com> added the comment:

(Of course you're right.  It just reads, passes around and spits out that ... of a mail just the same it came in.  Performance is very well, too, just about 1.5 seconds - some two weeks ago it took about 1.1 seconds, but with Python 2.7 - so!

P.S.: my very own desire was just to have a single entry point where i can drop whatever ... in and get something back which may be just as silly but at least conformant, e.g. '__setitem__[x] = ADJUST(__getitem__[x])'; imagine what a swiss ;-) would need to do to get to that point with EMail 5.1: x=header.decode_header(), if x[1] is None check wether string is ASCII clean, otherwise hard-encode with latin1/unknown 8-bit; but even if x[1] is not None the content may be malformed; and then remember that all these steps can throw exceptions, which need to be handled because the mail *will* be processed.  Of course, we're talking about the header here only 8-))

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11243>
_______________________________________


More information about the Python-bugs-list mailing list