πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #1630

Re: Newbie question

#1630
From: Eli
Date: Wed, 12 Apr 2023 10:09
35 lines
2259 bytes
On 12 Apr 2023 at 10:33:39 CEST, "Julien Γ‰LIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

>> About pullnews:
>> 
>> In pullnews I use the '-w -1000000' option to download the 1 million most
>> recent articles per newsgroup.
>> 
>> This works fine, but when pullnews is restarted (for example after a server
>> timeout), pullnews will redownload all already downloaded articles.
>> 
>> It does come with the message that the articles already exist, but when there
>> are almost a million per newsgroup, it is not very pleasant.
>> 
>> It would be nice if pullnews continued downloading where it left off. For
>> example, only if the high water mark >0.
>> 
>> Could you improve this on pullnews?
> 
> I assume you do not use '-w -1000000' for another run of pullnews
> (manual or out of cron); it would otherwise be normal for it to download
> again a million of articles.

Yes, I do because there are more newsgroups in the pullnews.mark file that may
not have been downloaded yet.

But I modified pullnews with the line below and this seems to work fine:

if (defined $watermark) {
    printf LOG "\tOur previous highest: %d\n", $prevHigh if not $quiet;
    $high = $watermark;
    $high = $last + $watermark if substr($watermark, 0, 1) eq '-';
+    $high = $prevHigh if $prevHigh > 0;
    $high = 0 if $high < 0;$shash->{$group} = [time, $high];
}
Technical Details
Message-ID: <OrvZL.2104725$THq2.706453@fx08.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-mail
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <u13bps$188ar$4@news.trigofacile.com> <4IgZL.4406762$WRz3.2096474@fx03.ams4> <u15qd4$1aneb$2@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <OrvZL.2104725$THq2.706453@fx08.ams4>
Subject: Re: Newbie question
Date: Wed, 12 Apr 2023 10:09:50 GMT
From: Eli <eliistheman@gmail.com>
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <u13bps$188ar$4@news.trigofacile.com> <4IgZL.4406762$WRz3.2096474@fx03.ams4> <u15qd4$1aneb$2@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.6/l - Full License
Lines: 35
X-Complaints-To: abuse@eweka.nl
Nntp-Posting-Date: Wed, 12 Apr 2023 10:09:50 UTC
Organization: Eweka Internet Services