Article View: news.software.nntp
Article #28589Re: Filtering language?
From: Don Lewis
Date: Fri, 29 May 1998 00:00
Date: Fri, 29 May 1998 00:00
60 lines
3808 bytes
3808 bytes
In article <6kibii$kbe$1@news.campus.mci.net>, Kenneth Herron <kherron@campus.mci.net> wrote: >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. I think putting the filter in innd would be better for a few reasons. The first is that innd already has the headers. The second is that feeding lots of data across a pipe is a pain because you can only write it in 4K max chunks, and with enough incoming feeds innd's scheduler has trouble writing to the pipe often enough to keep unwritten data from building up in its buffers. The final reason is that this feature would be handy for feeding other things in addtion to innfeed. } 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. INN also doesn't return rejection reasons in streaming mode, though some folks have hacked this in. This sort of tuning would work well for Path and Distribution rejections, but how would you know if your peer removed one of these restrictions? Attempting to adjust the feed for Newsgroup rejections is even trickier. If you are feeding a site that only carries "comp.*" and uses this as their newsfeed subscription, and you send them an article that was crossposted to "alt.whatever,comp.bogusgroup", the rejection message will complain about alt.whatever, so it does not do any good to remove alt.whatever from their subscription list, since it's not there to begin with. On the other hand, you don't want to mark alt.whatever as poison, since that would eliminate articles posted to "alt.whatever,comp.realgroup". I do think that standardized rejection codes would be useful. Innfeed really wants to be able to distinguish between rejections of duplicate articles and other rejections. It would also be useful to log and do statistics on other rejections so that the administrator would have way of figuring out how to tune the feed. -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 530 478-8284 FAX: +1 530 478-8251 Nevada City, CA 95959
Technical Details
Message-ID:
<6klmt2$akk$1@news.gv.tsc.tdk.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-mailReferences:
<6ki6p0$ieo$1@news-02.meganews.com> <6kibii$kbe$1@news.campus.mci.net>Show Full Headers
Complete Article Headers
Message-ID: <6klmt2$akk$1@news.gv.tsc.tdk.com> Subject: Re: Filtering language? Date: Fri, 29 May 1998 00:00:00 +0000 From: gdonl@tsc.tdk.com (Don Lewis) References: <6ki6p0$ieo$1@news-02.meganews.com> <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 X-Deja-AN: 357562030 Organization: TDK Semiconductor, Nevada City CA Newsgroups: news.software.nntp