Article View: news.software.nntp
Article #87519Re: Multiple occurences of header fields
From: Adam H. Kerman
Date: Sun, 04 Sep 2016 15:48
Date: Sun, 04 Sep 2016 15:48
72 lines
4468 bytes
4468 bytes
Julien <iulius@nom-de-mon-site.com.invalid> wrote: >. . . > Compliant software MUST NOT generate (but MAY accept) header field > lines of more than 998 octets. This is the only limit on the > length of a header field line prescribed by this standard. > However, specific rules to the contrary may apply in particular > cases (for example, according to [RFC2047], lines of a header > field containing encoded words are limited to 76 octets). >=> The check for 998 octets is already done, but not the one for 76 octets! >As INN does not generate such headers, I believe it is OK not to check >the length of header fields containing encoded words (an injecting agent >MAY accept them). Once the encoding is added, you can end up displaying a rather short line. Is it 76 because a longer line is thought to interfere with decoding? > o The character set for header fields is US-ASCII. Where the use of > non-ASCII characters is required, they MUST be encoded using the > MIME mechanisms defined in [RFC2047] and [RFC2231]. >=> This check is currently not done. I suggest to do nothing about it >because it will otherwise probably do harm when receiving >"internationalized" header fields (for instance encoded in UTF-8). It sounds like a worthwhile sanity check to perform. It's rarely the author of the article who absolutely positively has to use characters that must be encoded but aren't. They end up in the article because he's violating copyright by copying and pasting an article from the Web and he hasn't run it through translation first to put it into proper syntax useful on Usenet. If these full-text quotes were regularly refused, no harm has come to actual Usenet authors because the author was someone else and he didn't choose to post to Usenet in the first place. More often than not, an author writing his own words and posting to Usenet will get the encoding right because the newsreader does it sanely. These people usually aren't the problem. (Yes, yes, there is one well-known exception who uses tons of characters that must be encoded but refuses to encode them; I refuse to say its name.) > The following header fields defined in this document do not allow > <comment>s (i.e., they use FWS rather than CFWS). > Control > Distribution > Followup-To > Lines > Newsgroups > Path > Supersedes > Xref >=> I think nnrpd does not check that for Supersedes (and perhaps other >of these fields). We should enforce that check, and better, enforce the >right syntax for these specific headers (Supersedes expects a valid >message-ID for instance, whereas unstructured text can now be injected). >. . . Does References already get checked for a string of valid Message-IDs too, or just the Message-ID getting appended? I have no idea how Distribution could possibly be checked beyond disallowed character; gotta leave that for some local list of recognized Distributions as that must be customized. If Control is checked for syntax errors, the error message should be in the form of laughter and insults.
Technical Details
Message-ID:
<nqhfo8$nvl$1@news.albasani.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<2116899503.484444288.248931.dunno-dunno.dunno@news.mixmin.net> <alpine.OSX.2.20.1605111043570.14592@mako.ath.cx> <nhsd2n$mdi$1@news.trigofacile.com> <ni2afm$96b$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <nqhfo8$nvl$1@news.albasani.net> Subject: Re: Multiple occurences of header fields Date: Sun, 04 Sep 2016 15:48:25 +0000 From: "Adam H. Kerman" <ahk@chinet.com> References: <2116899503.484444288.248931.dunno-dunno.dunno@news.mixmin.net> <alpine.OSX.2.20.1605111043570.14592@mako.ath.cx> <nhsd2n$mdi$1@news.trigofacile.com> <ni2afm$96b$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: albasani.net Lines: 70 X-Trace: news.albasani.net VWHc7G2rzUxHXqmVNVGlhTE2n56eW6iYTcBnfYlhqy8/8pwAprHZU6v8CXKCRbmA+ti49+tYW8kudBGCS0wbKX49zSULfM0OfkyrKm5qM5zOYmZMbrM55qK2hTQ3tlGC NNTP-Posting-Date: Sun, 4 Sep 2016 15:48:25 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="8xFIs/jF+pZH1Pk8qFlcyYiFnU6U9t2P0UgV+yQnqd9t9EFe/AE5ospKc3xCLqfQeXskqhz5brYI28joXQhwI0IO0lHBTgoh+8e+Y/gWrxf0yPEZi56IPH6q8QOc2rb7"; mail-complaints-to="abuse@albasani.net" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Cancel-Lock: sha1:1Y7HI0n4i1l1IfKWQIMEne90peo= X-Received-Bytes: 4283 X-Received-Body-CRC: 1016568187