🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79071

Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part?

#79071
From: D. Stussy
Date: Sat, 24 May 2008 06:12
29 lines
2117 bytes
"Ray Banana" <rayban@banana.shacknet.nu> wrote in message
news:80zlqgjl7z.fsf@banana.shacknet.nu...
> Thus spake "D. Stussy" <spam@bde-arc.ampr.org>
> >> foreach my $g (@groups) {
> >> return reject('spam') if $hdr{'Message-ID'} =~ /$g/;
> >> }
> >> in your local_filter_last() or similar.
> > Thanks.  One question:  Is the "@groups" variable a list of all groups
from
> > the active file?  If so, then this could be placed in the message-ID
> > checking routine thus avoiding transfer of the message (or headers).
>
> From cleanfeed:
>
> sub filter_art {
>     [...]
>     @groups = split(/[,\s]+/, $hdr{Newsgroups});
>
>     [...]
>
> }
>
> So it's a list of all groups the article is actually posted to.
> And I wouldn't run the above code snippet against all groups in the
> active file for performance reasons.

Ok.  Thanks again.

Technical Details
Message-ID: <g18bk0$9s5$1@snarked.org>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!not-for-mail
References: <g156ij$98h$1@snarked.org><slrng3emj3.v4r.mnalis-news@eagle102.home.lan><g189m8$78k$1@snarked.org> <80zlqgjl7z.fsf@banana.shacknet.nu>

Show Full Headers
Complete Article Headers
Message-ID: <g18bk0$9s5$1@snarked.org>
Subject: Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part?
Date: Fri, 23 May 2008 23:12:20 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <g156ij$98h$1@snarked.org><slrng3emj3.v4r.mnalis-news@eagle102.home.lan><g189m8$78k$1@snarked.org> <80zlqgjl7z.fsf@banana.shacknet.nu>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 29
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-49-180.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1211609536 10117 71.118.49.180 (24 May 2008 06:12:16 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sat, 24 May 2008 06:12:16 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-Original-Bytes: 1875