Article View: news.software.nntp
Article #82380Re: Incorrect lines count in $hdr{__LINES__}
From: Julien ÉLIE
Date: Sat, 19 Dec 2009 23:56
Date: Sat, 19 Dec 2009 23:56
52 lines
3064 bytes
3064 bytes
Hi Steve,
>> Especially, the next time you see that, could you please see how many lines
>> are reported by an OVER request on it?
>
> Certainly.
>
>> What I think is happening is that these articles are malformed and contain
>> only "\n" as line delimitors, and not "\r\n". But only a careful inspection
>> of these articles will tell us.
>
> You are correct. Using a hexeditor on the log, I can see that all the
> uuencoded lines in these articles are terminated with just 0A, not 0D0A.
> The text lines are correctly terminated which causes the reported line
> count of 7.
OK, then it explains the count.
Other examples will provide the same result. And an OVER request will
answer 7 (the number of "\r\n" in the article).
It is the real number of lines. We cannot do more with INN. Maybe these
articles should be rejected by Cleanfeed -- another parameter?
RFC 5536 (USEFOR) :
3.3.1. Lines
The line count is the number of CRLF separators in the <body>.
Note that the Lines: headers is deprecated.
RFC 3977 (NNTP) :
8.1.2. The :lines Metadata Item
The :lines metadata item for an article is a decimal integer. It
MUST equal the number of lines in the article body (excluding the
empty line separating headers and body). Equivalently, it is two
less than the number of CRLF pairs that the BODY command would return
for that article (the extra two are those following the response code
and the termination octet).
--
Julien ÉLIE
« Pourquoi les programmeurs confondent-ils Halloween et Noël ?
Parce que OCT 31 == DEC 25. »
Technical Details
Message-ID:
<hgjp7i$rdn$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.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<slrnhindf5.mt9.steve@news.mixmin.net> <hggok5$u3p$1@news.trigofacile.com> <slrnhipvt8.mt9.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <hgjp7i$rdn$1@news.trigofacile.com>
Subject: Re: Incorrect lines count in $hdr{__LINES__}
Date: Sun, 20 Dec 2009 00:56:33 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <slrnhindf5.mt9.steve@news.mixmin.net> <hggok5$u3p$1@news.trigofacile.com> <slrnhipvt8.mt9.steve@news.mixmin.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 52
NNTP-Posting-Host: amontpellier-159-1-62-153.w83-197.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1261266995 28087 83.197.141.153 (19 Dec 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 19 Dec 2009 23:56:35 +0000 (UTC)
Injection-Date: Sat, 19 Dec 2009 23:56:35 +0000 (UTC)
In-Reply-To: <slrnhipvt8.mt9.steve@news.mixmin.net>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005