Thread View: news.software.nntp
5 messages
5 total messages
Started by Tim Fardell
Wed, 04 Apr 2012 12:27
INN Perl Filtering on feeds only?
Author: Tim Fardell
Date: Wed, 04 Apr 2012 12:27
Date: Wed, 04 Apr 2012 12:27
6 lines
1362 bytes
1362 bytes
Is it possible to apply perl filtering (i.e. cleanfeed) only to incoming feeds, and not perform any filtering on articles posted locally? TIA -- Please remove all-your-clothes before replying.
Re: INN Perl Filtering on feeds only?
Author: Steve Crook
Date: Wed, 04 Apr 2012 15:33
Date: Wed, 04 Apr 2012 15:33
22 lines
1746 bytes
1746 bytes
On Wed, 04 Apr 2012 13:27:16 +0100, Tim Fardell wrote in
Message-Id: <oefon79nihnf76cqv9r89grd30fjdvhq17@4ax.com>:
> Is it possible to apply perl filtering (i.e. cleanfeed) only to
> incoming feeds, and not perform any filtering on articles posted
> locally?
Not without a small programming mod.
Assuming you have a recent Cleanfeed version:-
Edit your filter_innd.pl file and look for this section:
# If all newsgroups are excluded from filtering, bail now
return '' if $gr{skip};
Change this to:
return '' if $gr{skip} or $state{localfeed};
In your cleanfeed.local file, check that the function
local_flag_localfeed is correctly configured to identify locally posted
articles.
Re: INN Perl Filtering on feeds only?
Author: D. Stussy
Date: Wed, 04 Apr 2012 18:58
Date: Wed, 04 Apr 2012 18:58
10 lines
1592 bytes
1592 bytes
"Tim Fardell" <tim.fardell.all-your-clothes@virgin.net> wrote in message news:oefon79nihnf76cqv9r89grd30fjdvhq17@4ax.com... > Is it possible to apply perl filtering (i.e. cleanfeed) only to incoming feeds, > and not perform any filtering on articles posted locally? I see no good reason to do this. If a given article is unacceptable when coming from a peer, why should it be accepted if issued locally?
Re: INN Perl Filtering on feeds only?
Author: John F. Morse
Date: Wed, 04 Apr 2012 22:12
Date: Wed, 04 Apr 2012 22:12
24 lines
2035 bytes
2035 bytes
D. Stussy wrote: > "Tim Fardell" <tim.fardell.all-your-clothes@virgin.net> wrote in message > news:oefon79nihnf76cqv9r89grd30fjdvhq17@4ax.com... > >> Is it possible to apply perl filtering (i.e. cleanfeed) only to incoming >> > feeds, > >> and not perform any filtering on articles posted locally? >> > > I see no good reason to do this. If a given article is unacceptable when > coming from a peer, why should it be accepted if issued locally? > Perhaps it is intended for a local group. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: INN Perl Filtering on feeds only?
Author: Tim Fardell
Date: Fri, 06 Apr 2012 16:18
Date: Fri, 06 Apr 2012 16:18
32 lines
2261 bytes
2261 bytes
On Wed, 4 Apr 2012 15:33:05 +0000 (UTC), Steve Crook <steve@mixmin.net> wrote:
>On Wed, 04 Apr 2012 13:27:16 +0100, Tim Fardell wrote in
>Message-Id: <oefon79nihnf76cqv9r89grd30fjdvhq17@4ax.com>:
>
>> Is it possible to apply perl filtering (i.e. cleanfeed) only to
>> incoming feeds, and not perform any filtering on articles posted
>> locally?
>
>Not without a small programming mod.
>
>Assuming you have a recent Cleanfeed version:-
>
>Edit your filter_innd.pl file and look for this section:
>
># If all newsgroups are excluded from filtering, bail now
>return '' if $gr{skip};
>
>Change this to:
>return '' if $gr{skip} or $state{localfeed};
>
>In your cleanfeed.local file, check that the function
>local_flag_localfeed is correctly configured to identify locally posted
>articles.
Thanks Steve!
As it turned out, I didn't need to implement this after all, but I appreciate
your help all the same!
--
Please remove all-your-clothes before replying.
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