Article View: news.software.nntp
Article #8365Re: patch to innd to screen wide crossposts
From: Wolfgang Schelongowski
Date: Fri, 07 Jun 1996 00:00
Date: Fri, 07 Jun 1996 00:00
87 lines
3181 bytes
3181 bytes
In <4p5fuu$ir0@augusta.math.psu.edu> barr@math.psu.edu (Dave Barr) writes:
>In article <4p4s4t$oa2@cgl.ucsf.edu>, Eric Pettersen <pett@cgl.ucsf.edu> wrote:
>>I was surprised by how many articles are rejected even with the threshold
>>set at 25. Since applying the patch yesterday,
You wanted to read: man 5 newsfeeds, paragraph Gcount and tell the sites
which feed you about it. Now if you had created a new option (say) Jcount
which worked like Gcount but grants exception to any article crossposted
to news.answers, WOW ...
>>about 24 hours ago, ~400
>>articles were rejected by it. The limit could be much lower. It wouldn't
>>be out of line to make the limit 12, or even 6.
>If I recall, there's a FAQ posted to news.answers which is crossposted
>to 14 newsgroups.
Groups FAQs
12: 4
13: 2
14: 2
15: 3
17: 4
18: 1
19: 1
26: 1 internationalization/iso-8859-1-charset
Since the Perl script to produce the above listing and more is only
50 line hack, I append it here. Use at your own risk, bei Nebenwirkungen
schlagen Sie Ihren Arzt oder Apotheker.
#!/usr/bin/perl
#
# Usage: find <archiv-directory> -type f | ngostat.pl
$lim = 14; # report all articles with #(newsgroups) >= $lim
#$|=1;
while ($fn = <>){
chop($fn);
if ( ! open(ARTIKEL, $fn) > 0 ){
$no_open++;
}else{
while (<ARTIKEL>){
chop;
if (/^$/){
$n_no_ng++;
print "N $fn\n";
last;
}elsif ( m/^Newsgroups:\s+(.*)$/io ){
$n_mit_ng++;
$ngln = $1;
$ngno = scalar(split(/,/, $ngln));
$ngnos{$ngno}++;
if ( $ngno >= $lim ){
print "L $fn $ngno $ngln\n";
$res1 = (($dev, $ino, $mode, $nlink, $uid, $gid, $rdev,
$size, $atime, $mtime, $ctime, $blksize, $blocks)
= stat($fn));
$res2 = (($sec, $min, $hour, $mday, $mon, $year,
$wday, $yday, $isdst) = localtime($mtime));
if ($res1 && $res2){
$mon++;
printf "M %s %4d/%02d/%02d %02d.%02d.%02d\n",
$fn, 1900+$year, $mon, $mday, $hour, $min, $sec;
};
};
last;
};
};
close(ARTIKEL);
};
};
printf "\ntotal %5d (%d not found, %d without newsgroups line)\n",
$n_mit_ng, $no_open, $no_no_ng;
foreach $i (sort {$a <=> $b} keys %ngnos){
printf "%3d: %5d\n", $i, $ngnos{$i};
};
--
Wolfgang Schelongowski ws@xivic.ruhr.de
Mustela locuta, causa finita. (With apologies to St. Chris)
Technical Details
Message-ID:
<4p93kp$mlm@xivic.ruhr.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.mbox.zip!not-for-mailReferences:
<4p4s4t$oa2@cgl.ucsf.edu> <4p5fuu$ir0@augusta.math.psu.edu>Show Full Headers
Complete Article Headers
Message-ID: <4p93kp$mlm@xivic.ruhr.de> Subject: Re: patch to innd to screen wide crossposts Date: Fri, 07 Jun 1996 00:00:00 +0000 From: ws@xivic.ruhr.de (Wolfgang Schelongowski) References: <4p4s4t$oa2@cgl.ucsf.edu> <4p5fuu$ir0@augusta.math.psu.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 159000240 Content-type: text/plain; charset=iso-8859-1 Organization: Private site in Germany Mime-version: 1.0 Newsgroups: news.software.nntp,news.software.b