Article View: news.software.nntp
Article #47149Re: Can cleanfeed be used also for nnrpd ?
From: Ben C. O. Grimm
Date: Wed, 28 Jun 2000 00:00
Date: Wed, 28 Jun 2000 00:00
39 lines
2462 bytes
2462 bytes
On 27 Jun 2000 18:53:06 GMT, Jeremy <bofh@netscum.dk> wrote:
> George Dimitriadis <dimitria@forthnet.gr> wrote:
>
> > Can i use the cleanfeed perl filter also for filtering posts except
> > feeds ?
> Local posts pass through the filter before being accepted, so you don't
> have to do anything special for that to happen.
> If you mean using it as a filter_nnrpd.pl, though, no, it's not designed
> for that.
It can be done by putting something like this in cleanfeed.local
(and putting cleanfeed.local in cleanfeed's config dir):
sub local_filter_before_emp {
if( ( $hdr{'Path'} =~ /filter.wirehub.nl/i ) || (
$hdr{'Path'} =~ /kluner.wirehub.nl/i ) ) {
return ( "", "", "OK" ) ;
} else {
return "" ;
}
}
filter.wirehub.nl and kluner.wirehub.nl are pathstamps of boxes
running cleanfeed, which in turn feed my reader machines. With
the above statement, only articles not having these names in
their paths will be filtered. And those are only local postings.
It will give you some slight overhead (all articles will be
passing this path matching process), but way less then a fully
active cleanfeed.
--
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ----------- http://www.bengrimm.net/ -
Technical Details
Message-ID:
<5bgjls03ofof5l5un37n7kiu6lb25adknf@news.wirehub.nl>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:
<3958E191.F7CC4A4E@forthnet.gr> <962131986.401235@news.netscum.dk>Show Full Headers
Complete Article Headers
Message-ID: <5bgjls03ofof5l5un37n7kiu6lb25adknf@news.wirehub.nl> Subject: Re: Can cleanfeed be used also for nnrpd ? Date: Wed, 28 Jun 2000 00:00:00 +0000 From: Ben C. O. Grimm <Ben.Grimm@wirehub.net> References: <3958E191.F7CC4A4E@forthnet.gr> <962131986.401235@news.netscum.dk> 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: 639912450 Cache-Post-Path: newsreader1.wirehub.nl!unknown@groaarrr.bengrimm.net Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@wirehub.net X-Trace: newsspool.wirehub.nl 962183848 55015 195.86.128.18 (28 Jun 2000 09:17:28 GMT) Organization: Wirehub! Internet Engineering X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/) Mime-Version: 1.0 NNTP-Posting-Date: 28 Jun 2000 09:17:28 GMT Newsgroups: news.software.nntp