🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64552

Re: INN filter help ~

#64552
From: Arthur
Date: Thu, 27 Mar 2003 07:58
47 lines
2995 bytes
Just like this;
if ($hdr{"$body"} =~ /notallowedwords/i) {
       $rval = "Spam is not acceptable here...";
 }

It will be work??
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?

sub filter_post {
   my $rval = "" ;              # assume we'll accept.
        if ($hdr{"Control"}){
                $rval = "Authorization needed to delete messages";
        }

        if ($hdr{"$body"} =~ /sex/i){
               $rval = "NO SEX";
         }

Sorry for my stupid qustion!!
--
Arthur


"Russ Allbery" <rra@stanford.edu> wrote in message news:yl7kamc4xg.fsf@windlord.stanford.edu...
Arthur <arthur76@sinaman.com> writes:

> Sorry for my stupid question,
> where can i put this $BODY???

$body; it's case-sensitive.  Use it the same way that you were using
$hdr{"Subject"}.

--
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.




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
Technical Details
Message-ID: <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!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news-out.newsfeeds.com!l2!corp.newsgroups.com!lungfunggdn.org
References: <3e7beb44$1@lungfunggdn.org> <yl1y107kfo.fsf@windlord.stanford.edu> <3e8299d8$1@lungfunggdn.org> <yl7kamc4xg.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3e839011$1@lungfunggdn.org>
Subject: Re: INN filter help ~
Date: Thu, 27 Mar 2003 07:58:09 +0000
From: "Arthur" <arthur@arthurstudio.com>
References: <3e7beb44$1@lungfunggdn.org> <yl1y107kfo.fsf@windlord.stanford.edu> <3e8299d8$1@lungfunggdn.org> <yl7kamc4xg.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!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news-out.newsfeeds.com!l2!corp.newsgroups.com!lungfunggdn.org
Newsgroups: news.software.nntp
Lines: 41
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Original-NNTP-Posting-Host: 202.64.226.141
X-Original-Trace: 27 Mar 2003 15:58:09 +0800, 202.64.226.141
NNTP-Posting-Host: 202.60.228.88
X-Trace: corp.newsgroups.com 1048752048 202.60.228.88 (27 Mar 2003 02:00:48 -0600)
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com>
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 100,000+ UNCENSORED Newsgroups.