🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Nigel Reed Sun, 21 Jan 2024 09:56
Re: INN2 artcutoff (was: Re: Old articles)
#91459
Author: Nigel Reed
Date: Sun, 21 Jan 2024 09:56
43 lines
2243 bytes
On Sun, 21 Jan 2024 09:30:12 +0100
yamo' <yamo@beurdin.invalid> wrote:

> Hi, 
> [FU2 news.software.nntp]
> Jesse Rehmer a tapoté :
> > 
> > The administrator of news.corradoroberto.it was using suck, pulling
> > from my server and those articles made their way back out through
> > other peers of news.corradoroberto.it who accepted the old
> > articles. The injection-bsd1 node is only in a handful of articles
> > on my server, so it likely won't do you much good to filter based
> > on that.  
> 
> Yes, nothing found in innreport today!
> 
> > 
> > News administrators should have a proper article cutoff set on the
> > servers which they peer with others. If only the administrator of
> > news.corradoroberto.it made the mistake originally it would not
> > have leaked beyond.  
> 
> Yes good advice but sometimes the newsmaster has to modify "artcutoff"
>  in inn.conf and forget changing it after...
> 
> Maybe reporting the value of "artcutoff" in log and INNReport
>  would be a nice thing.
> 

I'm actually fine accepting old articles but understand that not all
news admins would want to receive them. I guess I am relying on my
peers not to accept old articles if they dont want them should I get
them from other sources.

I still intend to backfill a number of my groups, I'm just nervous
about propagating old articles while still being able to receive and
send new ones.


-- 
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23
Re: INN2 artcutoff
#91460
Author: Julien ÉLIE
Date: Sun, 21 Jan 2024 10:27
34 lines
2341 bytes
Hi Nigel,

> I still intend to backfill a number of my groups, I'm just nervous
> about propagating old articles while still being able to receive and
> send new ones.

Did you try to add a fake hop when using pullnews?  (-F flag)
   https://www.eyrie.org/~eagle/software/inn/docs/pullnews.html

"""
In case you have running peers and don't want to propagate them the 
articles you are pulling from upstream servers, you should add a fake 
hop with the -F flag to all the pulled articles, and add that very fake 
hop in the exclusion sub-field of all the sites configured in your 
newsfeeds file.  (For example, using "pullnews -F myserverimported", 
change "sitename:*:Tm:innfeed!" to 
"sitename/myserverimported:*:Tm:innfeed!" for every sitename in 
newsfeeds you don't want to feed the pulled articles to.)
"""

This way, you will never be nervous again when running pullnews :-)



P.-S.: If someone has a better or quicker way to prevent pulled articles 
from being sent to peers, please tell, and I'll update the pullnews 
documentation accordingly.

I don't know whether suck has a similar facility.

-- 
Julien ÉLIE

« Audentes fortunat iuvat. » (Virgile)
Re: INN2 artcutoff
#91461
Author: Jesse Rehmer
Date: Sun, 21 Jan 2024 10:51
81 lines
4132 bytes
On Jan 21, 2024 at 4:27:39 AM CST, "Julien ÉLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Nigel,
> 
>> I still intend to backfill a number of my groups, I'm just nervous
>> about propagating old articles while still being able to receive and
>> send new ones.
> 
> Did you try to add a fake hop when using pullnews?  (-F flag)
>    https://www.eyrie.org/~eagle/software/inn/docs/pullnews.html
> 
> """
> In case you have running peers and don't want to propagate them the
> articles you are pulling from upstream servers, you should add a fake
> hop with the -F flag to all the pulled articles, and add that very fake
> hop in the exclusion sub-field of all the sites configured in your
> newsfeeds file.  (For example, using "pullnews -F myserverimported",
> change "sitename:*:Tm:innfeed!" to
> "sitename/myserverimported:*:Tm:innfeed!" for every sitename in
> newsfeeds you don't want to feed the pulled articles to.)
> """
> 
> This way, you will never be nervous again when running pullnews :-)
> 
> 
> 
> P.-S.: If someone has a better or quicker way to prevent pulled articles
> from being sent to peers, please tell, and I'll update the pullnews
> documentation accordingly.
> 
> I don't know whether suck has a similar facility.

With suck you need to use the post filter function. From the man page:

"POST FILTER
       if the -y post_filter option is specified on the command line in
       conjunction with any of the batch modes, then suck will call the post
       filter specified, after downloading the articles, and before
       batching/posting the articles.  The filter is passed the directory
       where the articles are stored (the -dm option).  The filter program is
       responsible for parsing the contents of the directory.  See
       sample/post_filter.pl for a sample post filter.  This option was
       designed to allow you to add your own host name to the Path: header,
       but if you need to do anything else to the messages, you can."

The sample post_filter.pl:

#!/usr/local/bin/perl

# sample program for editting/changing the downloaded articles.
# this program is passed the directory where the articles are
# stored

# it modifies the Path: header, so you can add your own unique
# host to it, so you can tell INN not to upload these articles

opendir (DIRP, $ARGV[0]) or die "Can't open $ARGV[0]";

# get list of files, skipping hidden files
@files = grep ( !/^\./, readdir(DIRP));

foreach $file ( @files) {

        # read the file in
        $path  = "${ARGV[0]}/${file}";
        open FIP, "<${path}" or die "Can't read ${path}\n";@file = <FIP>;
        close FIP;

        # find the line and change it
        foreach $line ( @file) {
                if ( $line =~ /^Path: /) {
                        $line =~ s/^Path: /Path: myhost\!/
                }
        }

        # save it back out
        open FIP, ">${path}" or die "Can't write to ${path}\n";
        print FIP @file;
        close FIP;
}
Re: INN2 artcutoff
#91463
Author: Julien ÉLIE
Date: Sun, 21 Jan 2024 13:13
21 lines
1694 bytes
Hi Jesse,

>> I don't know whether suck has a similar facility.
> 
> With suck you need to use the post filter function.
[...]
>          # find the line and change it
>          foreach $line ( @file) {
>                  if ( $line =~ /^Path: /) {
>                          $line =~ s/^Path: /Path: myhost\!/
>                  }
>          }

OK, thanks for the confirmation.
So the same tip of excluding articles with that fake hop from being sent 
to outgoing peers can be used.

-- 
Julien ÉLIE

« Dans un mois, dans un an, comment souffrirons-nous ? » (Jean Racine)
Re: INN2 artcutoff (was: Re: Old articles)
#91465
Author: llp
Date: Sun, 21 Jan 2024 15:29
21 lines
1819 bytes
Nigel Reed <sysop@endofthelinebbs.com> composa la prose suivante:

>I'm actually fine accepting old articles but understand that not all
>news admins would want to receive them. I guess I am relying on my
>peers not to accept old articles if they dont want them should I get
>them from other sources.
>
>I still intend to backfill a number of my groups, I'm just nervous
>about propagating old articles while still being able to receive and
>send new ones.

Wouldn't it be interesting to have an inn2 configuration option that
prevents the propagation of old articles to other servers by default ?


-- 
Liste de serveurs offrant un accès gratuit à la hiérarchie FR.*
http://usenet.ovh/?article=faq_serveur_gratuit

Recherche d'article Usenet
http://usenet.ovh/?article=ual
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads