🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Mark W Modrall Thu, 11 Jan 2001 19:27
Perl filters and POSTS
#49806
Author: Mark W Modrall
Date: Thu, 11 Jan 2001 19:27
20 lines
1492 bytes
Hi...

	I'm trying to enable perl filtering with INN but currently
the only way INN is getting feeds is through POST from another
server (Dnews)...  It seems to imply a couple of places that INN
filters will only catch IHAVE and TAKETHIS; how would I catch posts?

	I've uncommented the default filter_art() in filter_innd.pl
and used ctlinnd to reload it and now i'm waiting to see what comes
through (the groups in question originate from outside, from a 
commercial source so i don't want to start posting test messages
and risk having them float back upstream)...  If i get the docs,
the sample filter_art should dump a lot of text to the logs when
it filters a message...

thanks
-mark


Re: Perl filters and POSTS
#49807
Author: Russ Allbery
Date: Fri, 12 Jan 2001 01:02
12 lines
1295 bytes
Mark W Modrall <modrall@world.std.com> writes:

> I'm trying to enable perl filtering with INN but currently the only way
> INN is getting feeds is through POST from another server (Dnews)...  It
> seems to imply a couple of places that INN filters will only catch IHAVE
> and TAKETHIS; how would I catch posts?

Use filter_nnrpd.pl instead.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Perl filters and POSTS
#49808
Author: A poorly-installed Meowbot
Date: Fri, 12 Jan 2001 01:34
32 lines
2605 bytes
Mark W Modrall <modrall@world.std.com> wrote:

> 	I'm trying to enable perl filtering with INN but currently
> the only way INN is getting feeds is through POST from another
> server (Dnews)...

Yucko.  Can you arrange for the DNEWS server to send you a real
newsfeed?  POST alters/loses lots of useful headers, so you really
want to avoid that sort of feeding.

>  It seems to imply a couple of places that INN
> filters will only catch IHAVE and TAKETHIS; how would I catch posts?

In INN, POST is really just a front end to IHAVE, so you really are
getting that stuff (I assume you're interested in using message ID
patterns if that came up).

If the filter won't run, you'll need to look elsewhere
(configure/compilation options, inn.conf settings etc.)  Make sure
that ctlinnd mode shows that the filter is enabled, as errors in the
filter will tend to cause it to turn off.

Oh yes, and remember to meow when you type in your ctlinnd commands,
it puts the server in a better frame of mind and makes it more
cooperative.

One big problem with getting news via POST instead of IHAVE/TAKETHIS
is that you lose much of the useful information for filtering, like
NNTP-Posting-Host and X-Trace.  Actually, since it will all instead
look like it was posted from one place, you risk filtering a bunch of
stuff you wanted to keep.
Re: Perl filters and POSTS
#49809
Author: Russ Allbery
Date: Fri, 12 Jan 2001 03:57
11 lines
1351 bytes
A poorly-installed Meowbot <meowbot@meowing.net> writes:

> In INN, POST is really just a front end to IHAVE, so you really are
> getting that stuff (I assume you're interested in using message ID
> patterns if that came up).

Oh, whoops, yeah.  That's true too.  Sorry about the misinformation.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
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