[issue10281] Exception raised when an NNTP overview field is absent

Julien ÉLIE report at bugs.python.org
Wed Nov 3 19:01:09 CET 2010


Julien ÉLIE <julien at trigofacile.com> added the comment:

> My conclusion in working on the email package is that only
> the first space after the ':', if it exists, should be stripped.
> That is, even though the RFC (for email) reads as if the space
> after the colon is part of the value, in practice it is part
> of the delimiter, but is optional (and almost always present,
> in email).

That is why the RFC (for netnews) explicitly mentions that the space after the colon is not part of the value.  See the grammar for OVER in RFC 3977:

  hdr-n-content = [(header-name ":" / metadata-name) SP hdr-content]

So yes, only the first space should be stripped.

----------

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


More information about the Python-bugs-list mailing list