Article View: news.software.nntp
Article #84250Re: Empty folded line in header field (was Re: Censure ?)
From: Julien ÉLIE
Date: Tue, 09 Aug 2011 17:34
Date: Tue, 09 Aug 2011 17:34
101 lines
5242 bytes
5242 bytes
Hi Florian,
>> Hmm... nnrpd accepts to inject the article. Something that needs
>> being changed... :-)
>
> Both pullnews and nnrpd would be expected to fix the header by
> cutting the illegal line, no?
pullnews is considered as a relaying agent here.
According to RFC 5537:
3.6. Duties of a Relaying Agent
Relaying agents MUST NOT alter, delete, or rearrange any part of an
article except for the Path and Xref header fields. They MUST NOT
modify the body of articles in any way. If an article is not
acceptable as is, the article MUST be rejected rather than modified.
As for nnrpd:
3.5. Duties of an Injecting Agent
2. It MUST reject any proto-article that does not have the proper
mandatory header fields for a proto-article, that has Injection-
Info or Xref header fields, that has a Path header field
containing the "POSTED" <diag-keyword>, or that is not
syntactically valid as defined by [RFC5536].
So, NO, they are not expected to fix anything.
> pullnews seems to assume that a header line containing only whitespace
> must be a broken transition to the message body, hence it can't find a
> Message-ID. I think pullnews could be a little more intelligent about
> this and have a look at the following line; if it's in "Headername:
> header body" format, or another continuing line starting with
> whitespace, then perhaps that can count as a sufficient indicator that
> we're still in the header?
Yes, I agree with you. Please note that it is not really a bug because
pullnews follows this MAY:
3.6. Duties of a Relaying Agent
4. It SHOULD reject any article that does not include all the
mandatory header fields. It MAY reject any article that contains
header fields that do not have valid contents.
However, I would tend not to follow this MAY. I reckon that the best
thing to do is to accept the article with the parsing you suggest, and
relay it without any modification.
innd already relays it correctly (without modification).
> Note that the first two chunks of this patch address a different issue
> introduced to the 2.5 branch with the INN::Util::Shlock commit; things
> seem to be a little different in the trunk branch
Oh, many thanks Florian!
It is true that commit 9100 is for INN 2.6.0 only, and shared (but only
later) a common bit with INN 2.5.3 for the use of INN::Config and
INN::Utils::Shlock packages.
http://inn.eyrie.org/trac/changeset/9100
Now fixed.
> but if pullnews is to
> be used independently of an INN installation, then perhaps it should not
> make use of INN::Utils::Shlock at all?
As pullnews is currently shipped with INN and, as far as I know, is not
released in another package elsewhere, I think we can go on improving
the script and using INN::Utils::Shlock; we may want to reconsider it in
case somebody steps up and wants to maintain the script out of the INN
tar ball. It is for instance what is done with pgpverify or signcontrol.
However, without the use of shlock(), there is a portability issue.
Dennis reported that pullnews does not work on Solaris.
So a fix, in case pullnews should not refer to INN packages, would be to
use LockFile::Simple (when INN::Utils::Shlock is not loadable). A
supplementary dependency.
Or of course still use flock(), but it is not available on every system.
--
Julien ÉLIE
« C'est souvent la femme qui nous inspire les grandes choses qu'elles
nous empêchent d'accomplir. » (Alexandre Dumas Fils)
Technical Details
Message-ID:
<j1rr3h$bpi$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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-67-40.w83-200.abo.wanadoo.fr!not-for-mailReferences:
<mn.8c0c7db70f4125e7.121321@tellas.gr> <ivv2jt$273a$1@talisker.lacave.net> <4e231311$0$1752$426a74cc@news.free.fr> <j0i4vv$p8j$1@news.trigofacile.com> <j0i6d5$qt7$1@news.trigofacile.com> <9aco4fFv07U1@mid.uni-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <j1rr3h$bpi$1@news.trigofacile.com> Subject: Re: Empty folded line in header field (was Re: Censure ?) Date: Tue, 09 Aug 2011 19:34:41 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <mn.8c0c7db70f4125e7.121321@tellas.gr> <ivv2jt$273a$1@talisker.lacave.net> <4e231311$0$1752$426a74cc@news.free.fr> <j0i4vv$p8j$1@news.trigofacile.com> <j0i6d5$qt7$1@news.trigofacile.com> <9aco4fFv07U1@mid.uni-berlin.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-67-40.w83-200.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 9 Aug 2011 17:34:41 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-552-1-67-40.w83-200.abo.wanadoo.fr:83.200.66.40"; logging-data="12082"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr; In-Reply-To: <9aco4fFv07U1@mid.uni-berlin.de> Lines: 100 X-Original-Bytes: 5073