🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40355

Re: INN newsfeed entry for only locally generated posts?

#40355
From: Russ Allbery
Date: Fri, 01 Oct 1999 00:00
36 lines
2105 bytes
Eric Edwards <ese002@news9.exile.org> writes:

> Is there a clean way of feeding only locally generated postings?  The
> way I'm doing it now is to alias out all my inbound feeds.  It works but
> it's painfull to maintain.  I though maybe I had missed something and
> there was a better way.

Two ways.  The best is probably with the O option in newsfeeds, which
works if your news server generates X-Trace headers (and it appears from
your post that it does).  From the newsfeeds man page:

     OOriginator
          If this is used then articles sent to this feed must contain a
          X-Trace header and the first field in the header must match the
          parameter used with this flag.  Originator can be a
          wildmat(3)-style pattern.  One use of this is to restrict the
          feed to locally generated posts.

So if your news server is named something matching *.exile.org, use a feed
like:

        remote.example.com:*:O*.exile.org,Tm:innfeed!

or something along those lines.

Alternately, if you don't want to use X-Trace headers for this purpose (or
if you're using a version of INN too old to have the O flag), you can use
the hop count for this purpose.  H2 will feed to the remote site only
articles that have two or fewer entries in the Path header, H1 articles
that have only one, etc.  That's a bit rougher and harder to use, since
some posting clients will add entries to Path themselves.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylvh8qvccy.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <slrn7vah28.e2i.ese002@spica.exile.org>

Show Full Headers
Complete Article Headers
Message-ID: <ylvh8qvccy.fsf@windlord.stanford.edu>
Subject: Re: INN newsfeed entry for only locally generated posts?
Date: Fri, 01 Oct 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <slrn7vah28.e2i.ese002@spica.exile.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.mbox.zip!not-for-mail
X-Deja-AN: 531747207
Organization: The Eyrie
Newsgroups: news.software.nntp