🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64555

Re: INN filter help ~

#64555
From: Jeffrey M. Vinocur
Date: Thu, 27 Mar 2003 11:41
27 lines
1714 bytes
In article <3e839011$1@lungfunggdn.org>,
Arthur <arthur@arthurstudio.com> wrote:
>Just like this;
>if ($hdr{"$body"} =~ /notallowedwords/i) {
>       $rval = "Spam is not acceptable here...";
> }
>
>It will be work??

No, get rid of the $hdr{""} part -- that is, it needs to be

  if ($body =~ ...


>Also i have one more qustion, if i already has one perl
>script(for not allow user kill post),can i set 2 script like
>this?

Yes, more or less.  The question is what error do you want if the
post is a cancel message and additionally has a disallowed word
in it (the order you put the different tests in matters).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <b5uo0g$2pp$1@puck.litech.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!news.ems.psu.edu!news.litech.org!not-for-mail
References: <3e7beb44$1@lungfunggdn.org> <3e8299d8$1@lungfunggdn.org> <yl7kamc4xg.fsf@windlord.stanford.edu> <3e839011$1@lungfunggdn.org>

Show Full Headers
Complete Article Headers
Message-ID: <b5uo0g$2pp$1@puck.litech.org>
Subject: Re: INN filter help ~
Date: Thu, 27 Mar 2003 11:41:04 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <3e7beb44$1@lungfunggdn.org> <3e8299d8$1@lungfunggdn.org> <yl7kamc4xg.fsf@windlord.stanford.edu> <3e839011$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!news.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 26
Sender: jeff@litech.org
NNTP-Posting-Host: 66.218.0.75
X-Trace: puck.litech.org 1048765264 2873 66.218.0.75 (27 Mar 2003 11:41:04 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Thu, 27 Mar 2003 11:41:04 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)