🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64486

Re: INN filter help ~

#64486
From: Russ Allbery
Date: Fri, 21 Mar 2003 16:28
21 lines
1705 bytes
Terminator <terminator@terminator.com> writes:

> I try to set the filter of my INN server and with

> # vi /usr/bin/filter/filter_nnrpd.pl
>  if ($hdr{"Subject"} =~ /notallowedwords/i) {
>        $rval = "Spam is not acceptable here...";
>  }

> I can reject the message with some bad words in the Subject, but does
> someone know how to reject bad words in the body of the message ?  If
> you don't understand my question, you don't need to answer me.

nnrpd will put the body of the message in $body.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <yl1y107kfo.fsf@windlord.stanford.edu>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <3e7beb44$1@lungfunggdn.org>

Show Full Headers
Complete Article Headers
Message-ID: <yl1y107kfo.fsf@windlord.stanford.edu>
Subject: Re: INN filter help ~
Date: Fri, 21 Mar 2003 08:28:59 -0800
From: Russ Allbery <rra@stanford.edu>
References: <3e7beb44$1@lungfunggdn.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 20
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1048264140 24894 171.64.13.23 (21 Mar 2003 16:29:00 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:b09NL18rgOT7MRdnXviAZIL8/Ig=