Article View: news.software.nntp
Article #82372Incorrect lines count in $hdr{__LINES__}
From: Steve Crook
Date: Fri, 18 Dec 2009 17:03
Date: Fri, 18 Dec 2009 17:03
31 lines
2307 bytes
2307 bytes
Hi all,
Whilst scanning through some Cleanfeed logs for today, I noticed a
number of misplaced binaries that had not been trapped by Cleanfeed's
is_binary routine. I believe the reason for this is that
$hdr{__LINES__} in every instance was returning 7 instead of the actual
2000-3000 lines in the posting. Consequently the binary filter passed
them as being acceptably small.
Here is an example header:
INFO: Scoring filter (11)
Score: !!NoFup(4)!Lines:7-3151!!!PowerPost!!!CapRat(0.99)!!SymRat(0.87)#Adult+Url
Date: Sat, 19 Dec 2009 06:37:14 -0500
From: SydneyAust29@Hotmail.com
Lines: 3151
Message-ID: <P4OWm.99704$E62.2888@unlimited.newshosting.com>
Newsgroups: alt.sex.erotica.marketplace,alt.sex.erotica.marketplacen,alt.sex.fetish.feet,a
lt.sex.fetish
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Path:
hq-usenetpeers.eweka.nl!81.171.88.250.MISMATCH!newsfeed.eweka.nl!eweka.nl!feeder3.ew
eka.nl!69.16.177.246.MISMATCH!cyclone03.ams2.highwinds-media.com!npeer03.iad.highwinds-med
ia.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!new
shosting.com!post02.iad!not-for-mail
Subject: My colection___Alison - '121' of '148'
X-Complaints-To: abuse(at)newshosting.com
X-Newsposter: NNTP POWER-POST 2000 (Build 24b) - net-toys.8k.com
X-No-Archive: yes
The Lines header is more or less correct at 3151, but the
$hdr{__LINES__} (reported in the Score header) is 7.
Technical Details
Message-ID:
<slrnhindf5.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.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!news.mixmin.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrnhindf5.mt9.steve@news.mixmin.net>
Subject: Incorrect lines count in $hdr{__LINES__}
Date: Fri, 18 Dec 2009 17:03:33 +0000
From: Steve Crook <steve@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.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!news.mixmin.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Lines: 31
NNTP-Posting-Host: ip6-localhost
X-Trace: news.mixmin.net 1261155813 25539 ::1 (18 Dec 2009 17:03:33 GMT)
X-Complaints-To: abuse@mixmin.net
NNTP-Posting-Date: Fri, 18 Dec 2009 17:03:33 +0000 (UTC)
User-Agent: slrn/pre1.0.0-18 (Linux)