Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Gravity brings me down.


computers / news.admin.peering / Re: Newbie question

SubjectAuthor
* Re: Newbie questionEli
`* Re: Newbie questionJulien ÉLIE
 +* Re: Newbie questionJesse Rehmer
 |`- Re: Newbie questionJulien ÉLIE
 `* Re: Newbie questionEli
  `* Re: Newbie questionJulien ÉLIE
   +* Re: Newbie questionJesse Rehmer
   |`* Re: Newbie questionJulien ÉLIE
   | `* Re: Newbie questionJesse Rehmer
   |  `* Re: Newbie questionJulien ÉLIE
   |   `* Re: Newbie questionJesse Rehmer
   |    `- Re: Newbie questionJulien ÉLIE
   `* Re: Newbie questionEli
    `* Re: Newbie questionTom Furie
     `* Re: Newbie questionEli
      `* Re: Newbie questionJulien ÉLIE
       `* Re: Newbie questionJesse Rehmer
        `* Re: Newbie questionJulien ÉLIE
         `* Re: Newbie questionEli
          `* Re: Newbie questionEli
           `* Re: Newbie questionJulien ÉLIE
            +* Re: Newbie questionEli
            |`* Re: Newbie questionJulien ÉLIE
            | `* Re: Newbie questionEli
            |  `* Re: Newbie questionJulien ÉLIE
            |   `* Re: Newbie questionEli
            |    +* Re: Newbie questionJesse Rehmer
            |    |`* Re: Newbie questionEli
            |    | `* Re: Newbie questionJulien ÉLIE
            |    |  +- Re: Newbie questionJesse Rehmer
            |    |  `* Re: Newbie questionEli
            |    |   `* Re: Newbie questionJulien ÉLIE
            |    |    +* Re: Newbie questionJesse Rehmer
            |    |    |`* Re: Newbie questionJulien ÉLIE
            |    |    | +* Re: Newbie questionEli
            |    |    | |+- Re: Newbie questionEli
            |    |    | |+- Re: Newbie questionJulien ÉLIE
            |    |    | |`- Re: Newbie questionGrant Taylor
            |    |    | `* Re: Newbie questionEli
            |    |    |  `* Re: Newbie questionFranck
            |    |    |   `* Re: Newbie questionEli
            |    |    |    `* Re: Newbie questionJulien ÉLIE
            |    |    |     +- Re: Newbie questionJulien ÉLIE
            |    |    |     `* Re: Newbie questionEli
            |    |    |      `* Re: Newbie questionJulien ÉLIE
            |    |    |       `* Re: Newbie questionEli
            |    |    |        `* Re: Newbie questionJulien ÉLIE
            |    |    |         `- Re: Newbie questionEli
            |    |    +- Re: Newbie questionGrant Taylor
            |    |    `* Re: Newbie questionEli
            |    |     `* Re: Newbie questionJulien ÉLIE
            |    |      `* Re: Newbie questionEli
            |    |       `* Re: Newbie questionJulien ÉLIE
            |    |        `* Re: Newbie questionEli
            |    |         `- Re: Newbie questionJulien ÉLIE
            |    `* Re: Newbie questionJulien ÉLIE
            |     `- Re: Newbie questionEli
            `* Re: Newbie questionEli
             `* Re: Newbie questionJulien ÉLIE
              `- Re: Newbie questionEli

Pages:123
Re: Newbie question

<8%UXL.2263692$gs1.368622@fx15.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=574&group=news.admin.peering#574

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx15.ams4.POSTED!not-for-mail
From: eliisthe...@gmail.com (Eli)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <u0n4rp$uic5$1@news.trigofacile.com> <nhHXL.973853$5Fj1.717913@fx07.ams4> <u0ogpq$vv88$1@news.trigofacile.com>
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.5/l - Full License
Lines: 43
Message-ID: <8%UXL.2263692$gs1.368622@fx15.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Fri, 07 Apr 2023 13:36:04 UTC
Organization: Eweka Internet Services
Date: Fri, 07 Apr 2023 13:36:04 GMT
X-Received-Bytes: 2187
 by: Eli - Fri, 7 Apr 2023 13:36 UTC

On 7 Apr 2023 at 09:30:02 CEST, "Julien ÉLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Eli,
>
>> It was the 'server' setting indeed.
>>
>> I'm getting close, but now inews is trying to connect using the
>> IPv6 address of the server, instead of IPv4.
>
> Did you try to just put the IPv4 address of your server in the "server"
> setting? (instead of its hostname)
> It will maybe work (I have not tested).

Hello Julien,

Yes, that was the trick.
It works now :)

Thank you.

I have another question about the settings in expiration.ctl.

What settings should I use if I want to delete all posts older than 90 days
for 1 specific newsgroup (e.g. linux.debian.bugs.dist).

As far as I can read in the documentation, this mainly concerns the middle
field (the default value) and the first and last fields (keep and purge) are
only important for messages that have an expiration header. But if I set the
<purge> field lower than the <default> field, inncheck still throws a warning.
So it seems that the <keep and purge> fields still affect the <default> value.

linux.debian.bugs.dist:AX:0:90:11
inncheck returns: purge `11' younger than default `90'

linux.debian.bugs.dist:AX:0:90:90
seems good.

What I would like is to have all messages older than 90 days deleted
immediately and messages with the expiration header deleted immediately after
the expiration date.

Which setting do you recommend for this in expire.ctl?

Re: Newbie question

<jjVXL.4378630$vSy3.384664@fx04.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=575&group=news.admin.peering#575

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx04.ams4.POSTED!not-for-mail
From: eliisthe...@gmail.com (Eli)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <tvfr7u$1ua8$2@news.trigofacile.com> <evKSL.4136913$SIb3.775609@fx05.ams4> <tvft64$240m$1@news.trigofacile.com>
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.5/l - Full License
Lines: 39
Message-ID: <jjVXL.4378630$vSy3.384664@fx04.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Fri, 07 Apr 2023 13:57:35 UTC
Organization: Eweka Internet Services
Date: Fri, 07 Apr 2023 13:57:35 GMT
X-Received-Bytes: 2131
 by: Eli - Fri, 7 Apr 2023 13:57 UTC

On 22 Mar 2023 at 23:49:55 CET, "Julien ÉLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Eli,
>
>> Another question, is it possible to limit the maximum number of connections
>> per authenticated user? I know this is possible for peers, but can this also
>> be set up for authenticated users? Maybe a setting in readers.conf or nnrpd
>> that I'm overlooking?
>
> Unfortunately, the response is no. There's no native way of limiting
> users' connections.
> You may want to write a custom authentication hook (perl_auth or
> python_auth in readers.conf) that would do the job by accounting how
> many connections are open by a given user, and deny access if it exceeds
> the limit. I am not aware of existing scripts to do that :-(
>
> It could be worthwhile having though, as you're not the first one to ask
> (but nobody wrote or shared what he came up with).

Hi Julies,

The nnrpd manual states:

"As each command is received, nnrpd tries to change its "argv" array so that
ps(1) will print out the command being executed."

This will then look like this:
nnrpd: <xxx.xxx.xxx.xxx> GROUP
nnrpd: <xxx.xxx.xxx.xxx> XOVER

Is it perhaps also possible to add the authenticated user to this?

Something like:
nnrpd: <xxx.xxx.xxx.xxx> Eli GROUP
nnrpd: <xxx.xxx.xxx.xxx> Eli XOVER

This would make it possible to limit the number of connections per user via a
perl script.

Re: Newbie question

<u0pci2$10dft$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=576&group=news.admin.peering#576

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176.143-2-105.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
Date: Fri, 7 Apr 2023 17:23:46 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u0pci2$10dft$1@news.trigofacile.com>
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4>
<u0n4rp$uic5$1@news.trigofacile.com> <nhHXL.973853$5Fj1.717913@fx07.ams4>
<u0ogpq$vv88$1@news.trigofacile.com> <8%UXL.2263692$gs1.368622@fx15.ams4>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 7 Apr 2023 15:23:46 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="1062397"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.9.1
Cancel-Lock: sha1:MNF+kxL0TPscu7kkLKdXDG4cMGQ= sha256:7Jvh1MiBoZZ0JojU9vNc1DpLfSlOaocfJXzZyijz4wI=
sha1:dLTe0GHDPacsOb/4bGEopHQBQAo= sha256:4OTLmLPovBYBDS0GkHQ9EPiv7Ar6oh0nyBbsSnKriKU=
In-Reply-To: <8%UXL.2263692$gs1.368622@fx15.ams4>
 by: Julien ÉLIE - Fri, 7 Apr 2023 15:23 UTC

Hi Eli,

> I have another question about the settings in expire.ctl.
>
> What settings should I use if I want to delete all posts older than 90 days
> for 1 specific newsgroup (e.g. linux.debian.bugs.dist).
>
> As far as I can read in the documentation, this mainly concerns the middle
> field (the default value) and the first and last fields (keep and purge) are
> only important for messages that have an expiration header. But if I set the
> <purge> field lower than the <default> field, inncheck still throws a warning.
> So it seems that the <keep and purge> fields still affect the <default> value.
>
> linux.debian.bugs.dist:AX:0:90:11
> inncheck returns: purge `11' younger than default `90'

"""
<pattern>:<flag>:<min>:<default>:<max>

The middle field, <default>, will be used as the expiration period for
most articles. The other two fields, <min> and <max>, only come into
play if the article requests a particular expiration date with an
Expires header field. Articles with an Expires header field will be
expired at the date given in that header field, subject to the
constraints that they will be retained at least <min> days and no
longer than <max> days.

One should think of the fields as a lower bound, the default, and an
upper bound. Since most articles do not have an Expires header field,
the second field is the most important and most commonly applied.

It is often useful to honor the Expires header field in articles,
especially those in moderated groups. To do this, set <min> to zero,
<default> to whatever normal expiration you wish, and <max> to "never"
or some large number, like 365 days for a maximum article life of a
year.
"""

> linux.debian.bugs.dist:AX:0:90:90
> seems good.

It is indeed what I would parameter for this newsgroup.

> What I would like is to have all messages older than 90 days deleted
> immediately and messages with the expiration header deleted immediately after
> the expiration date.

That's what the 0:90:90 setting does.

With 0:90:11, suppose that you have an article with an Expires header
field corresponding to 30 days, it would be deleted after 11 days which
is not what you were expecting. That's the reason of the warning from
inncheck; it looks unusual to force the deletion of articles with an
Expires header field sooner than other articles. (The date in the
Expires header field will still be respected.)

--
Julien ÉLIE

« A killfile on Usenet can get you peace and quiet. A killfile in the
real world can get you twenty years to life. » (Nils Nieuwjaar)

Re: Newbie question

<6GXXL.4306220$miq3.3158150@fx02.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=577&group=news.admin.peering#577

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx02.ams4.POSTED!not-for-mail
From: eliisthe...@gmail.com (Eli)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <u0ogpq$vv88$1@news.trigofacile.com> <8%UXL.2263692$gs1.368622@fx15.ams4> <u0pci2$10dft$1@news.trigofacile.com>
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.5/l - Full License
Lines: 12
Message-ID: <6GXXL.4306220$miq3.3158150@fx02.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Fri, 07 Apr 2023 16:38:26 UTC
Organization: Eweka Internet Services
Date: Fri, 07 Apr 2023 16:38:26 GMT
X-Received-Bytes: 1278
 by: Eli - Fri, 7 Apr 2023 16:38 UTC

On 7 Apr 2023 at 17:23:46 CEST, "Julien ÉLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> With 0:90:11, suppose that you have an article with an Expires header
> field corresponding to 30 days, it would be deleted after 11 days which
> is not what you were expecting. That's the reason of the warning from
> inncheck; it looks unusual to force the deletion of articles with an
> Expires header field sooner than other articles. (The date in the
> Expires header field will still be respected.)

Another stunning explanation.
Thanks again, Julien!

Re: Newbie question

<u13bps$188ar$4@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=578&group=news.admin.peering#578

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
Date: Tue, 11 Apr 2023 12:12:12 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u13bps$188ar$4@news.trigofacile.com>
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4>
<tvfr7u$1ua8$2@news.trigofacile.com> <evKSL.4136913$SIb3.775609@fx05.ams4>
<tvft64$240m$1@news.trigofacile.com> <jjVXL.4378630$vSy3.384664@fx04.ams4>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 11 Apr 2023 10:12:12 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105";
logging-data="1319259"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.9.1
Cancel-Lock: sha1:tmx2/sHWWzxEebeMGTooybf210M= sha256:t/Z3n2OFU2v06sBeSLl64pKsyrwjMQbr7BU8TsvkO2g=
sha1:z7JFt94MJha6MzQKnIVu92t3GMg= sha256:D181638T2LMAee44zN7AESgwKxFjq2CgQNyxC1EaML0=
In-Reply-To: <jjVXL.4378630$vSy3.384664@fx04.ams4>
 by: Julien ÉLIE - Tue, 11 Apr 2023 10:12 UTC

Hi Eli,

> The nnrpd manual states:
>
> "As each command is received, nnrpd tries to change its "argv" array so that
> ps(1) will print out the command being executed."
>
> This will then look like this:
> nnrpd: <xxx.xxx.xxx.xxx> GROUP
> nnrpd: <xxx.xxx.xxx.xxx> XOVER
>
> Is it perhaps also possible to add the authenticated user to this?
>
> Something like:
> nnrpd: <xxx.xxx.xxx.xxx> Eli GROUP
> nnrpd: <xxx.xxx.xxx.xxx> Eli XOVER
>
> This would make it possible to limit the number of connections per user via a
> perl script.

It is indeed possible to use that "feature".

If you can rebuild INN from sources, just change the following command
in nnrpd/nnrpd.c:

- setproctitle("%s %s", Client.host, av[0]);
+ + setproctitle("%s %s %s", Client.host,
+ PERMuser[0] != '\0' ? PERMuser : "-", av[0]);

I then have lines like that in a ps output:

nnrpd: accepting connections
nnrpd: 176-143-2-105.abo.bbox.fr julien GROUP
nnrpd: 5.14.145.68 <all> LIST

I am unsure if this would be worth having in an official release; there
may be privacy concerns. Maybe it should be configurable with a
readers.conf option (like addprocesstitleuser which would enable that
behaviour when set to true in an access group).

--
Julien ÉLIE

« Et maintenant, la balle est dans le camp des slalomeurs. »

Re: Newbie question

<4IgZL.4406762$WRz3.2096474@fx03.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=579&group=news.admin.peering#579

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx03.ams4.POSTED!not-for-mail
From: eliisthe...@gmail.com (Eli)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <tvft64$240m$1@news.trigofacile.com> <jjVXL.4378630$vSy3.384664@fx04.ams4> <u13bps$188ar$4@news.trigofacile.com>
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: 60
Message-ID: <4IgZL.4406762$WRz3.2096474@fx03.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Tue, 11 Apr 2023 17:23:12 UTC
Organization: Eweka Internet Services
Date: Tue, 11 Apr 2023 17:23:12 GMT
X-Received-Bytes: 2740
 by: Eli - Tue, 11 Apr 2023 17:23 UTC

On 11 Apr 2023 at 12:12:12 CEST, "Julien ÉLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Eli,
>
>> The nnrpd manual states:
>>
>> "As each command is received, nnrpd tries to change its "argv" array so that
>> ps(1) will print out the command being executed."
>>
>> This will then look like this:
>> nnrpd: <xxx.xxx.xxx.xxx> GROUP
>> nnrpd: <xxx.xxx.xxx.xxx> XOVER
>>
>> Is it perhaps also possible to add the authenticated user to this?
>>
>> Something like:
>> nnrpd: <xxx.xxx.xxx.xxx> Eli GROUP
>> nnrpd: <xxx.xxx.xxx.xxx> Eli XOVER
>>
>> This would make it possible to limit the number of connections per user via a
>> perl script.
>
> It is indeed possible to use that "feature".
>
> If you can rebuild INN from sources, just change the following command
> in nnrpd/nnrpd.c:
>
> - setproctitle("%s %s", Client.host, av[0]);
> +
> + setproctitle("%s %s %s", Client.host,
> + PERMuser[0] != '\0' ? PERMuser : "-", av[0]);

That is great news.
Thanks !

> I am unsure if this would be worth having in an official release; there
> may be privacy concerns. Maybe it should be configurable with a
> readers.conf option (like addprocesstitleuser which would enable that
> behaviour when set to true in an access group).

I don't know if many people will use this feature, but it is nice if INN
supports it. Making it configurable is a good idea.

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?
Thanks.

Re: Newbie question

<u15qd4$1aneb$2@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=580&group=news.admin.peering#580

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
Date: Wed, 12 Apr 2023 10:33:39 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u15qd4$1aneb$2@news.trigofacile.com>
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4>
<tvft64$240m$1@news.trigofacile.com> <jjVXL.4378630$vSy3.384664@fx04.ams4>
<u13bps$188ar$4@news.trigofacile.com> <4IgZL.4406762$WRz3.2096474@fx03.ams4>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 12 Apr 2023 08:33:40 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105";
logging-data="1400267"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.9.1
Cancel-Lock: sha1:K0Ge/YP3htQUCkPTTD+kinJ9mHw= sha256:1ZJ7ZqPd92Es8B1AfmpmnXSbs0Ne7HJpEKTH1BBu1tQ=
sha1:Ijo/J7olkqhx2c/m3aMGNg+EVuc= sha256:wH1H+3wIIA5r8bgDuqz/yqZiPi13EGsKcE3IdPRnQJE=
In-Reply-To: <4IgZL.4406762$WRz3.2096474@fx03.ams4>
 by: Julien ÉLIE - Wed, 12 Apr 2023 08:33 UTC

Hi Eli,

>> I am unsure if this would be worth having in an official release; there
>> may be privacy concerns. Maybe it should be configurable with a
>> readers.conf option (like addprocesstitleuser which would enable that
>> behaviour when set to true in an access group).
>
> I don't know if many people will use this feature, but it is nice if INN
> supports it. Making it configurable is a good idea.

OK, I'll have a look for a future version.

> 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?

Ah, I see the point.
You may want to use "-O" right now to prevent the download of already
existing articles.

When pullnews automatically restart after a timeout, -w is indeed
applied again. After a quick look at all the options, only -w should be
improved in that case, for not being applied on the newsgroup it was
treating when the timeout occurred, but directly restart from where it
was. I'll provide a patch (not today however but probably tomorrow, I
hope that's fine for you).

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.

--
Julien ÉLIE

« Ils ont refusé une offre de Normand ?!? » (Astérix)

Re: Newbie question

<OrvZL.2104725$THq2.706453@fx08.ams4>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=581&group=news.admin.peering#581

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx08.ams4.POSTED!not-for-mail
From: eliisthe...@gmail.com (Eli)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
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>
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
Message-ID: <OrvZL.2104725$THq2.706453@fx08.ams4>
X-Complaints-To: abuse@eweka.nl
NNTP-Posting-Date: Wed, 12 Apr 2023 10:09:50 UTC
Organization: Eweka Internet Services
Date: Wed, 12 Apr 2023 10:09:50 GMT
X-Received-Bytes: 2103
 by: Eli - Wed, 12 Apr 2023 10:09 UTC

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];
}

Re: Newbie question

<u18qj9$1d4c4$2@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=582&group=news.admin.peering#582

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176.143-2-105.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
Supersedes: <u18p2t$1d4c4$1@news.trigofacile.com>
Date: Thu, 13 Apr 2023 13:55:20 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u18qj9$1d4c4$2@news.trigofacile.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> <OrvZL.2104725$THq2.706453@fx08.ams4>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 13 Apr 2023 11:55:21 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="1479044"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.9.1
Cancel-Key: sha1:zk8ZnEv34KZ4grFL/ZnZYN/tsp4= sha256:GSrImKxQQvF8dLHMOvpeWXS/HxAd0r/llS9GOjQajLk=
Cancel-Lock: sha1:VqYcaP0C6x16F12sUWehLSwwAiU= sha256:UFC4fQ/buztcWGPaK4i6FWtaUvPVpeyd5vwTxSbbCr0=
sha1:x/K0RtV3JqLxU0c+X3t1EMnIh2c= sha256:XIl8loLgwU4xw1e4GI12yY8/vDSZJs/L76zdG0e9Xmc=
In-Reply-To: <OrvZL.2104725$THq2.706453@fx08.ams4>
 by: Julien ÉLIE - Thu, 13 Apr 2023 11:55 UTC

Hi Eli,

> 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];
> }

I am unsure this change does what you expected.
On *each* run, including the first one before any timeout occurs, $high will be forced to $prevHigh, and therefore -w won't be taken into account.
$prevHigh is the highest article number previously downloaded (as recorded in pullnews.marks). In case it is "0" or unset in pullnews.marks, -w will work, but in case pullnews.marks has for instance recorded 500, and you use "-w -100", nothing will happen ($high won't be set to 400 to force the re-downloading of the latest 100 articles).

I would suggest the following patch instead:

--- a/frontends/pullnews
+++ b/frontends/pullnews
@@ -560,6 +560,7 @@ if (not $quiet and not $quietness) {
}

my $connectionAttempts = 0;
+my %groupsStarted = ();

UPSTREAM:
foreach my $server (@servers) {
@@ -689,6 +690,7 @@ foreach my $server (@servers) {
} continue {
# Reinitialize the counter for the next server.
$connectionAttempts = 0;
+ %groupsStarted = ();
}

saveConfig();
@@ -852,12 +854,17 @@ sub crossFeedGroup {
printf LOG "\t%d article%s available (first %d, last %d)\n",
$narticles, $narticles != 1 ? "s" : "", $first, $last;
}
- if (defined $watermark) {
+ + # Do not set several times the water mark to another value. Just go on
+ # downloading articles from the last retrieved one when the connection
+ # timed out.
+ if (defined($watermark) and !exists($groupsStarted{$group})) {
printf LOG "\tOur previous highest: %d\n", $prevHigh if not $quiet;
$high = $watermark;
$high = $last + $watermark if substr($watermark, 0, 1) eq '-';
$high = 0 if $high < 0;
$shash->{$group} = [time, $high];
+ $groupsStarted{$group} = 1;
}
printf LOG "\tOur current highest: %d", $high if not $quiet;

Incidentally, I see that "pullnews -w" just sets the watermark without downloading articles in the same run.
pullnews -w -100 modifies 500 in pullnews.marks to 400, and exits. I have to run pullnews again to actually download the articles.
It should not be this way I think. Suggestion of another fix:

@@ -876,7 +883,7 @@ sub crossFeedGroup {
$high = $first + floor(($last - $first + 1) * (1 - $opt_b));
$toget = $last - $high;
print LOG " (reset highwater mark to $high)" unless $quiet;
- } elsif ($prevHigh == -1 || $last <= $prevHigh) {
+ } elsif ($prevHigh == -1 || $last <= $high) {
# We connected OK but there's nothing there, or we just want
# to reset our highwater mark.
$shash->{$group} = [time, $high];

--
Julien ÉLIE

« – Par Thor !
– Par Odin !
– Par exemple ! » (Astérix)

Re: Newbie question

<u1cdv9$1fiio$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=589&group=news.admin.peering#589

  copy link   Newsgroups: news.admin.peering
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.admin.peering
Subject: Re: Newbie question
Date: Fri, 14 Apr 2023 22:44:25 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u1cdv9$1fiio$1@news.trigofacile.com>
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4>
<tv7aco$3s29i$1@news.trigofacile.com>
<tva027$2b4p$1@nnrp.usenet.blueworldhosting.com>
<tvaatb$3u1tg$4@news.trigofacile.com>
<tvacl5$1hs0$1@nnrp.usenet.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 14 Apr 2023 20:44:25 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105";
logging-data="1559128"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.10.0
Cancel-Lock: sha1:EesZGe/Rvmvt9+exObMY1JmXy00= sha256:z+yY4Zp17XStccmeHkX3sMjKJMQw7C9O29KyH+4gObQ=
sha1:xqBaeQUA31GmW152T8qyn236pu8= sha256:dAAeLiQjE1GsmaiM6IGdxWxzEoTKOxyMiiADU6WYDO0=
In-Reply-To: <tvacl5$1hs0$1@nnrp.usenet.blueworldhosting.com>
 by: Julien ÉLIE - Fri, 14 Apr 2023 20:44 UTC

Hi Jesse,

>>> [news@spool1 ~]$ cat pullnews4.marks
>>> [news@spool1 ~]$
>>
>> Could you try to add an explicit message error ?
>>
>> close(FILE) or die "can't close $groupFile: $!\n";;
>
> Sure, may be a few days before I reply back with results!

Is the problem of an empty pullnews.marks file still happening?

--
Julien ÉLIE

« Le caramel est un invité du palais qui menace la couronne. » (Tristan
Bernard)

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor