[Python-Dev] Patch making the current email package (mostly) support bytes
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...
Size: 836 bytes
Desc: not available
More information about the Python-Dev