🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Vincent Wed, 15 May 2002 10:54
INN filter_nnrp.pl problem
#58861
Author: Vincent
Date: Wed, 15 May 2002 10:54
10 lines
1036 bytes
I don't know why the following statement is not work in my filter_nnrp.pl

if ($hdr{"__BODY__"}) =~ /sex/){
	$rval = "SPAM" ;
}

is it the problem on expession or sth ?
Please kindly correct it for me please~
Thx a lot~
Re: INN filter_nnrp.pl problem
#58858
Author: Andrew Gierth
Date: Wed, 15 May 2002 13:58
13 lines
1382 bytes
>>>>> "Vincent" == Vincent  <vifung@hotmail.com> writes:

 Vincent> I don't know why the following statement is not work in my
 Vincent> filter_nnrp.pl

 Vincent> if ($hdr{"__BODY__"}) =~ /sex/){

In filter_nnrpd.pl you use the variable $body rather than $hdr{__BODY__}
to get at the body text.

-- 
Andrew.
Re: INN filter_nnrp.pl problem
#58865
Author: Kjetil Torgrim Homme
Date: Wed, 15 May 2002 19:27
16 lines
1472 bytes
[Vincent]:
>
>   I don't know why the following statement is not work in my
>   filter_nnrp.pl
>   
>   if ($hdr{"__BODY__"}) =~ /sex/){
>   	$rval = "SPAM" ;
>   }

you do realize that the visiting professor from the University of
Essex will have problems with such a check?

-- 
Kjetil T.		your computer can help researchers understand how
			proteins work.    http://folding.stanford.edu
Re: INN filter_nnrp.pl problem
#58873
Author: Vincent
Date: Thu, 16 May 2002 02:50
14 lines
1375 bytes
Thx~ I got it~


Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote in message news:<878z6lqzrm.fsf@erlenstar.demon.co.uk>...
> >>>>> "Vincent" == Vincent  <vifung@hotmail.com> writes:
> 
>  Vincent> I don't know why the following statement is not work in my
>  Vincent> filter_nnrp.pl
> 
>  Vincent> if ($hdr{"__BODY__"}) =~ /sex/){
> 
> In filter_nnrpd.pl you use the variable $body rather than $hdr{__BODY__}
> to get at the body text.
Re: INN filter_nnrp.pl problem
#58874
Author: Paul Tomblin
Date: Thu, 16 May 2002 02:55
17 lines
1500 bytes
In a previous article, Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> said:
>[Vincent]:
>>   if ($hdr{"__BODY__"}) =~ /sex/){
>>   	$rval = "SPAM" ;
>>   }
>you do realize that the visiting professor from the University of
>Essex will have problems with such a check?

Wait until he writes about his collegue in Scunthorpe!



-- 
Paul Tomblin <ptomblin@xcski.com>, not speaking for anybody
"Stay calm, be brave, and wait for the signs!"
- Jasper Friendlybear and Gracie Heavyhand.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads