Article View: news.admin.peering
Article #1529Re: Newbie question
From: Eli
Date: Fri, 17 Mar 2023 23:44
Date: Fri, 17 Mar 2023 23:44
42 lines
2020 bytes
2020 bytes
On 17 Mar 2023 at 20:49:23 CET, "Julien ΓLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Eli,
>
>> Is it possible in pullnews to pre-skip articles above a certain number of
>> bytes, instead of downloading the whole article first?
>
> Currently not.
>
>
>> Maybe by making a small change in the perl script?
>
> I would suggest these additional lines:
>
>
> @@ -928,6 +928,13 @@
> push @{$article}, "\n" if not $is_control_art;
> }
> }
> +
> + my $overview = $fromServer->xover($i);
> + # Skip the article if its size is more than 100,000 bytes.
> + if ($$overview{$i}[5] and $$overview{$i}[5] > 100000) {
> + $skip_article = 1;
> + }
> +
> if (not $skip_article
> and (not $header_only or $is_control_art or
> $add_bytes_header))
> {
>
> I've quickly tested it, and I believe it works.
>
> I may add a dedicated option to pullnews and integrate it in a future
> release, if that may prove to be useful for others.
Hello Julien,
This also works perfectly.
Thanks again :)
Technical Details
Message-ID:
<kX6RL.3874719$WRz3.3051509@fx03.ams4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<sXMOL.4024495$MJk2.1098149@fx06.ams4> <tuujhn$3imqa$2@news.trigofacile.com> <2d%QL.1647199$gs1.1522536@fx15.ams4> <tv2g83$3lcvn$3@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <kX6RL.3874719$WRz3.3051509@fx03.ams4> Subject: Re: Newbie question Date: Fri, 17 Mar 2023 23:44:16 GMT From: Eli <eliistheman@gmail.com> References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <tuujhn$3imqa$2@news.trigofacile.com> <2d%QL.1647199$gs1.1522536@fx15.ams4> <tv2g83$3lcvn$3@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.admin.peering Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit User-Agent: Usenapp for MacOS X-Usenapp: v1.26.3/l - Full License Lines: 42 X-Complaints-To: abuse@eweka.nl Nntp-Posting-Date: Fri, 17 Mar 2023 23:44:16 UTC Organization: Eweka Internet Services