Article View: news.software.nntp
Article #83687Re: [INN] pullnews byte count
From: Edmund H. Ramm
Date: Thu, 18 Nov 2010 00:00
Date: Thu, 18 Nov 2010 00:00
59 lines
3015 bytes
3015 bytes
Bjr Julien,
In <ic1af4$irk$1@news.trigofacile.com> =?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
>> E.g. the flag '-k 50' gets only honoured when there are >50
>> articles in one group.
>> [...]
> You're right. This patch should do the trick.
> [...]
Well...
Hunk #1 FAILED at 302.
Hunk #2 succeeded at 311 (offset -19 lines).
Hunk #3 succeeded at 599 with fuzz 2 (offset -23 lines).
Hunk #4 succeeded at 815 (offset -55 lines).
1 out of 4 hunks FAILED -- saving rejects to file pullnews.rej
pullnews.rej:
-----
***************
*** 302,315 ****
open(FILE, "<$groupFile") || die "can't open group file $groupFile\n";
- my $count = 0;
while (<FILE>) {
next if m!^\s*\#! || m!^\s*$!;
if (m!^(\S+)(\s+(\S+)\s+(\S+))?\s*$!) {
$sname = $1;
$servers->{$sname} = {};
- $servers->{$sname}->{_order} = $count++;
$passwd{$sname} = [ $3, $4 ] if defined $3 and $3 ne "";
} elsif (m!^\s+(\S+)\s+(\d+)\s+(\d+)!) {
my ($group,$date,$high) = ($1,$2,$3);
--- 302,315 ----
open(FILE, "<$groupFile") || die "can't open group file $groupFile\n";
+ my $array_order = 0;
while (<FILE>) {
next if m!^\s*\#! || m!^\s*$!;
if (m!^(\S+)(\s+(\S+)\s+(\S+))?\s*$!) {
$sname = $1;
$servers->{$sname} = {};
+ $servers->{$sname}->{_order} = $array_order++;
$passwd{$sname} = [ $3, $4 ] if defined $3 and $3 ne "";
} elsif (m!^\s+(\S+)\s+(\d+)\s+(\d+)!) {
my ($group,$date,$high) = ($1,$2,$3);
-----
HTH, Eddi ._._.
--
e-mail: dk3uz AT arrl DOT net | AMPRNET: dk3uz@db0hht.ampr.org
If replying to a Usenet article, please use above e-mail address.
Linux/m68k, the best U**x ever to hit an Atari!
Technical Details
Message-ID:
<ic1qb6$flb$1@dk3uz.ampr.org>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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.alt.net!dk3uz!not-for-mailReferences:
<ibuccd$8n5$1@dk3uz.ampr.org> <ibun7q$kt2$1@news.trigofacile.com> <ibv7h5$gv8$1@dk3uz.ampr.org> <ic1af4$irk$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <ic1qb6$flb$1@dk3uz.ampr.org> Subject: Re: [INN] pullnews byte count Date: Thu, 18 Nov 2010 00:00:38 +0000 From: ehramm@dk3uz.ampr.org (Edmund H. Ramm) References: <ibuccd$8n5$1@dk3uz.ampr.org> <ibun7q$kt2$1@news.trigofacile.com> <ibv7h5$gv8$1@dk3uz.ampr.org> <ic1af4$irk$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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.alt.net!dk3uz!not-for-mail Newsgroups: news.software.nntp Organization: Private Linux/68k site Lines: 59 Sender: ehramm@dk3uz.ampr.org NNTP-Posting-Host: dk3uz.ampr.org X-Trace: dk3uz.ampr.org 1290038438 16043 44.130.0.81 (18 Nov 2010 00:00:38 GMT) X-Complaints-To: usenet@dk3uz.ampr.org NNTP-Posting-Date: Thu, 18 Nov 2010 00:00:38 +0000 (UTC) X-No-Archive: yes X-No-HTML: yes User-Agent: nn/6.7.3