Article View: news.software.nntp
Article #64569Re: INN filter help ~
From: Arthur
Date: Fri, 28 Mar 2003 07:49
Date: Fri, 28 Mar 2003 07:49
65 lines
3407 bytes
3407 bytes
Dear All,
I can reject bad word now, but if i want to reject two or three
bad word, how can i do this?? Now, my script is like this~
sub filter_post {
my $rval = "" ; # assume we'll accept.
if ($hdr{"Control"}){
$rval = "Authorization needed to delete messages";
}
if ($body =~ /www.sex.com/i){
$rval = "Please don't post this adv post";
}
Thank you for your help!!
^_^!
--
Arthur
"Arthur" <arthur@arthurstudio.com> wrote in message news:3e84db1b$1@lungfunggdn.org...
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:
<3e84df80$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!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!feed.newsfeeds.com!corp.newsgroups.com!lungfunggdn.orgReferences:
<3e7beb44$1@lungfunggdn.org> <3e8299d8$1@lungfunggdn.org> <yl7kamc4xg.fsf@windlord.stanford.edu> <3e839011$1@lungfunggdn.org> <b5uo0g$2pp$1@puck.litech.org> <3e84db1b$1@lungfunggdn.org>Show Full Headers
Complete Article Headers
Message-ID: <3e84df80$1@lungfunggdn.org> Subject: Re: INN filter help ~ Date: Fri, 28 Mar 2003 07:49:20 +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> <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!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!feed.newsfeeds.com!corp.newsgroups.com!lungfunggdn.org Newsgroups: news.software.nntp Lines: 59 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:49:20 +0800, 202.64.226.141 NNTP-Posting-Host: 202.60.228.88 X-Trace: corp.newsgroups.com 1048837924 202.60.228.88 (28 Mar 2003 01:52:04 -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.