Article View: news.software.nntp
Article #90100Re: No colon-space in header field check in INN
From: Julian Bradfield
Date: Tue, 07 Feb 2023 16:05
Date: Tue, 07 Feb 2023 16:05
28 lines
2324 bytes
2324 bytes
On 2023-02-07, D Finnigan <dog_cow@macgui.com> wrote:
> Jesse Rehmer <jesse.rehmer@blueworldhosting.com> wrote:
>> I've been on auto-pilot for a bit, but started checking logs/reports today and
>> notice an increasing number of articles rejected due to the following:
>>
>> 439 No colon-space in "User-Agent:" header field
>>
>> When reviewing headers of the those messages there is a User-Agent: header,
>> but its blank and does not contain a space.
>>
>> It is probably against a RFC to accept these messages,
>
> The colon is merely a separator between field name and field value. The
> space afterward is only for human readability and is not mandated by the
> RFCs. The whitespace following a colon is part of the field value and is
> typically trimmed out.
>
> Check the RFCs; people assume the space following a colon is mandatory, but
> it's not.
I think you should check the RFCs before telling people off for not
doing so. Here is what the current RFC, RFC 5536, says (sec. 2.2):
o All agents MUST generate header fields so that at least one space
immediately follows the ':' separating the header field name and
the header field body (for compatibility with deployed software,
including NNTP [RFC3977] servers). News agents MAY accept header
fields that do not contain the required space.
Technical Details
Message-ID:
<slrntu4tmk.1ce8k.jcb@bridgetown.inf.ed.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<trd09m$1369$1@nnrp.usenet.blueworldhosting.com> <1121673478697475192.561257dog_cow-macgui.com@reader02.eternal-september.org>Show Full Headers
Complete Article Headers
Message-ID: <slrntu4tmk.1ce8k.jcb@bridgetown.inf.ed.ac.uk> Subject: Re: No colon-space in header field check in INN Date: Tue, 07 Feb 2023 16:05:40 +0000 From: Julian Bradfield <jcb@inf.ed.ac.uk> References: <trd09m$1369$1@nnrp.usenet.blueworldhosting.com> <1121673478697475192.561257dog_cow-macgui.com@reader02.eternal-september.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Lines: 28 Nntp-Posting-Host: bridgetown.inf.ed.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: macpro.inf.ed.ac.uk 1675785940 11501 129.215.24.192 (7 Feb 2023 16:05:40 GMT) X-Complaints-To: usenet@macpro.inf.ed.ac.uk Nntp-Posting-Date: Tue, 7 Feb 2023 16:05:40 +0000 (UTC) User-Agent: slrn/0.9.9p1 (Linux)