Thread View: news.software.nntp
6 messages
6 total messages
Started by Jaye Mathisen
Wed, 27 May 1998 00:00
Filtering language?
Author: Jaye Mathisen
Date: Wed, 27 May 1998 00:00
Date: Wed, 27 May 1998 00:00
14 lines
911 bytes
911 bytes
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? I supply some kind of rules file that I want my feeder to run, (or perhaps make it remotely manageable/configurable), and 'voila, seemingly, the best of both worlds.
Re: Filtering language?
Author: Homer Wilson Smith
Date: Thu, 28 May 1998 00:00
Date: Thu, 28 May 1998 00:00
20 lines
1156 bytes
1156 bytes
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?
Speaking of which it would be nice to simply have a web interface
so that we can all adjust our feeds with each other. Shouldn't be too
hard to do.
Hey Forrest, its worth some bucks you know.
It would catch on like wildfire.
Homer
Re: Filtering language?
Author: Kenneth Herron
Date: Thu, 28 May 1998 00:00
Date: Thu, 28 May 1998 00:00
54 lines
3198 bytes
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/>
Re: Filtering language?
Author: Kenneth Herron
Date: Fri, 29 May 1998 00:00
Date: Fri, 29 May 1998 00:00
70 lines
4143 bytes
4143 bytes
In article <6klmt2$akk$1@news.gv.tsc.tdk.com>, Don Lewis <gdonl@tsc.tdk.com> wrote: |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. Innfeed is talking to the remote server, an advantage that innd doesn't have. I can see the wisdom of moving the actual filtering back to innd, but that will mean having a communications channel from innfeed back to innd, and the innd process would become at least partly responsible for managing the filter information. |>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. | |...how would you know if your peer removed |one of these restrictions? My script removes each restriction after it triggers some number of times, a thousand I think. The next article for that group (etc.) could of course re-install the same restriction. |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". The script I'm using knows how newsfeeds work. Crossposted articles are only filtered out if all groups involved are being filtered. If comp.bogusgroup has significant traffic, sooner or later the remote end will probably name it in a rejection. Another possibility would be for the script to keep the group list for each article passing through. If the article was rejected with a bad-newsgroup error you'd know that none of the groups were wanted (and similarly for distribution, I think). But the real answer is for the rejection messages to be better, and/or to field something like Brian Court's proposal. I'm more or less stuck at the proof-of-concept phase because there just isn't a lot you can do with the information currently available. -- 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/>
Re: Filtering language?
Author: 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
Re: Filtering language?
Author: Don Lewis
Date: Tue, 02 Jun 1998 00:00
Date: Tue, 02 Jun 1998 00:00
50 lines
3256 bytes
3256 bytes
In article <6kmkdn$fs2$1@news.campus.mci.net>, Kenneth Herron <kherron@campus.mci.net> wrote: >In article <6klmt2$akk$1@news.gv.tsc.tdk.com>, >Don Lewis <gdonl@tsc.tdk.com> wrote: >|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. > >Innfeed is talking to the remote server, an advantage that innd doesn't >have. I can see the wisdom of moving the actual filtering back to >innd, but that will mean having a communications channel from innfeed >back to innd, and the innd process would become at least partly >responsible for managing the filter information. Probably the best approach would be to log all the rejects to a file, periodically crunch them down, and update the filter in innd. Unfortunately this means you can't do some fancy realtime things. >Another possibility would be for the script to keep the group list for >each article passing through. If the article was rejected with a >bad-newsgroup error you'd know that none of the groups were wanted (and >similarly for distribution, I think). That's a possibility, though you might accumulate information about a lot of groups that don't match the newsfeeds subscription and/or the local active file. This could be expensive in terms of memory. >But the real answer is for the rejection messages to be better, and/or >to field something like Brian Court's proposal. I'm more or less stuck >at the proof-of-concept phase because there just isn't a lot you can do >with the information currently available. I think it's probably better to start with a clean slate because of all the incompatible implemenations of server software that are extant. And even then there is the issue of what to do about feeds where you want to administratively place some limits that the receiving end isn't capable of producing reject messages for (article size limitations for one particular feed over an expensive link). -- 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
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