[issue14983] email.generator should always add newlines after closing boundaries
Stephen J. Turnbull
report at bugs.python.org
Sat Sep 21 20:03:38 CEST 2013
Stephen J. Turnbull added the comment:
Seems this hasn't been resolved. I have to disagree with David's interpretation of RFC 2046. The definition of a boundary says that it is "terminated" with a CRLF. It also clarifies that the introducing CRLF is "conceptually part" of the boundary. Thus each boundary contains both the leading and the trailing CRLF. There is no exception for the final boundary that I can see.
This implies that when two boundaries abut, they need to be separated by *two* CRLFs, the trailing CRLF on the ending boundary of the inner multipart and the leading CRLF on the next boundary (which might be a separator or the ending boundary) of the containing multipart.
----------
nosy: +sjt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14983>
_______________________________________
More information about the Python-bugs-list
mailing list