🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #28565

Re: Filtering language?

#28565
From: Kenneth Herron
Date: Thu, 28 May 1998 00:00
54 lines
3198 bytes
In article <6ki6p0$ieo$1@news-02.meganews.com>,
Jaye Mathisen <mrcpu@schizo.cdsnet.net> wrote:
|The drag about filtering is of course that the article is 
|transmitted, then dropped, but the bandwidth is wasted.
|
|What about defining some filtering language (or using perl/cleanfeed),
|that ran on the transmitting side, on a *per feed* basis?

To start with, Brian Court of California State has published a draft
RFC (draft-court-dynfeed-00.txt last time I checked) for an NNTP
extension to allow dynamic feed adjustments.  His -00 draft allows
filtering out by group, distribution, article size, number of hops, or
path contents.

On another tack, I wedged a perl interpreter into innfeed a couple of
months ago.  It reads full headers on stdin (instead of just filename &
ID) and calls a perl function once for each article with the headers &
list of sites.  The function returns the list of sites that should
actually get the article.  Another function is called for each IHAVE
435/437 rejection (I think those are the codes) with the text of the
rejection.  The script API is generic enough that the same script could
be used within a single-site feeder such as innxmit.

My current perl script interprets rejections such as 'Unwanted
newsgroup "alt.basketweaving.underwater"' (there are similar messages
for distribution & path) and filters out further articles for that
group to that site.

Unfortunately, these are INN-specific error messages, not any sort of
standard.  One of our peers is running diablo, which as I recall
doesn't give any text along with the rejection number, so I couldn't do
anything useful there.  Similarly, most of Cleanfeed's non-verbose
messages aren't much good for building filters.  Obviously these things
could change, but we'd need to nail down a rejection-message standard
first.

I didn't find out about Court's proposal until after I wrote this.  My
version of innfeed could be extended to handle Court's proposal very
simply, though a perl interpreter is probably overkill if implementing
the RFC were *all* it did.

As it happens, I'm switching positions here and won't be in charge of
the news server any more, so I'm not in position to continue work on
this.  I'd be glad to put together a patch if someone wanted to run
with it...?
-- 
Kenneth Herron -- kherron@campus.mci.net
"When Microsoft first took control of the Funk & Wagnalls Encyclopedia
product, there was a flattering biography of Bill Gates.  But it said he
was known as a tough competitor.  Now it says that he's known for his
charitable contributions." -- Gary Reback, <http://www.ljx.com/reback/>

Technical Details
Message-ID: <6kibii$kbe$1@news.campus.mci.net>
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: <6ki6p0$ieo$1@news-02.meganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <6kibii$kbe$1@news.campus.mci.net>
Subject: Re: Filtering language?
Date: Thu, 28 May 1998 00:00:00 +0000
From: kherron@campus.mci.net (Kenneth Herron)
References: <6ki6p0$ieo$1@news-02.meganews.com>
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: 357140818
Organization: CampusMCI
Newsgroups: news.software.nntp