[Python-Dev] Patch making the current email package (mostly) support bytes

Barry Warsaw barry at python.org
Fri Oct 8 15:57:38 CEST 2010

On Oct 08, 2010, at 12:37 PM, Stephen J. Turnbull wrote:

>Ouch.  RFC 822 line wrapping is a bytes->bytes transformation, and the
>client shouldn't see it at all unless it inspects the wire format.

Header wrapping sucks even more because it's supposed to take the semantic
context into account, which means that a generic Header wrapping algorithm
cannot work for everything.  E.g. Received: headers are supposed to wrap after
the semicolon.  The current email package does a pretty poor job of emulating
this requirement, though it often gets it right enough.  David has plans for
addressing this problem.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20101008/e194d8dc/attachment.pgp>

More information about the Python-Dev mailing list