🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64567

Re: INN filter help ~

#64567
From: Arthur
Date: Fri, 28 Mar 2003 07:30
43 lines
2768 bytes
THANK YOU SO MUCH ALL,
I WILL TRY IT !!
THANKS~~^_^

--
Arthur


"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:b5uo0g$2pp$1@puck.litech.org...
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




-----= 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: <3e84db1b$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!lios!news.gweep.ca!nntp.cs.ubc.ca!cyclone.bc.net!news-out.newsfeeds.com!l2!corp.newsgroups.com!lungfunggdn.org
References: <3e7beb44$1@lungfunggdn.org> <3e8299d8$1@lungfunggdn.org> <yl7kamc4xg.fsf@windlord.stanford.edu> <3e839011$1@lungfunggdn.org> <b5uo0g$2pp$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <3e84db1b$1@lungfunggdn.org>
Subject: Re: INN filter help ~
Date: Fri, 28 Mar 2003 07:30:35 +0000
From: "Arthur" <arthur@arthurstudio.com>
References: <3e7beb44$1@lungfunggdn.org> <3e8299d8$1@lungfunggdn.org> <yl7kamc4xg.fsf@windlord.stanford.edu> <3e839011$1@lungfunggdn.org> <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!lios!news.gweep.ca!nntp.cs.ubc.ca!cyclone.bc.net!news-out.newsfeeds.com!l2!corp.newsgroups.com!lungfunggdn.org
Newsgroups: news.software.nntp
Lines: 37
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: 28 Mar 2003 15:30:35 +0800, 202.64.226.141
NNTP-Posting-Host: 202.60.228.88
X-Trace: corp.newsgroups.com 1048836797 202.60.228.88 (28 Mar 2003 01:33:17 -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.