🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84810

Re: INN Perl Filtering on feeds only?

#84810
From: Steve Crook
Date: Wed, 04 Apr 2012 15:33
22 lines
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.
Technical Details
Message-ID: <slrnjnoqdh.45d.steve@news.mixmin.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <oefon79nihnf76cqv9r89grd30fjdvhq17@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnjnoqdh.45d.steve@news.mixmin.net>
Subject: Re: INN Perl Filtering on feeds only?
Date: Wed, 04 Apr 2012 15:33:05 +0000
From: Steve Crook <steve@mixmin.net>
References: <oefon79nihnf76cqv9r89grd30fjdvhq17@4ax.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Injection-Date: Wed, 4 Apr 2012 15:33:05 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="29219"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-26 (Linux)
Lines: 21
X-Original-Bytes: 1459