[issue28463] Email long headers parsing/serialization

Mariusz Masztalerczuk report at bugs.python.org
Tue Oct 18 11:57:06 EDT 2016


Mariusz Masztalerczuk added the comment:

I think that it is not bug. It is just rfc ;) Due to https://www.ietf.org/rfc/rfc2822.txt, 

A message consists of header fields, optionally followed by a message
   body.  Lines in a message MUST be a maximum of 998 characters
   excluding the CRLF, but it is RECOMMENDED that lines be limited to 78
   characters excluding the CRLF

Because you have the line with the size more then 78 chars (the header + value), the python is trying to break this line into two. 

Maybe there should be option to increase this value to something more then 78? (because max is 998 due to rfc)

----------
nosy: +mmasztalerczuk

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


More information about the Python-bugs-list mailing list