Re: How to detect if a text body contains forbidden words

2007-11-20 Thread Owen
I am using a modified version of the old formmail.pl script on my website to get information requests mailed to me. I have modified the script to NOT send email other than to two fixed (hardcoded) addresses (myself and our sales dept). I had to do this becvause spammers started to use my

Re: How to detect if a text body contains forbidden words

2007-11-20 Thread Lou Hernsen
Hallo I'm just an amature perl writer.. but I would think that using the m// (match) would help. somthing like # $CONFIG{'Feedback'} = the body of the message, change to whatever it is in the program if ($CONFIG{'Feedback'} =~ /href=|http:/i ) #i = ignore case { # reject code goes here

Re: How to detect if a text body contains forbidden words

2007-11-20 Thread Bo Berglund
On Tue, 20 Nov 2007 18:39:25 +0100, Bo Berglund [EMAIL PROTECTED] wrote: On Tue, 20 Nov 2007 08:25:15 -0500, Lou Hernsen [EMAIL PROTECTED] wrote: Hallo I'm just an amature perl writer.. but I would think that using the m// (match) would help. somthing like # $CONFIG{'Feedback'} = the body of the

Re: How to detect if a text body contains forbidden words

2007-11-20 Thread Bo Berglund
On Tue, 20 Nov 2007 08:25:15 -0500, Lou Hernsen [EMAIL PROTECTED] wrote: Hallo I'm just an amature perl writer.. but I would think that using the m// (match) would help. somthing like # $CONFIG{'Feedback'} = the body of the message, change to whatever it is in the program if ($CONFIG{'Feedback'}

Re: How to detect if a text body contains forbidden words

2007-11-20 Thread Bo Berglund
On Tue, 20 Nov 2007 19:58:50 +1100 (EST), Owen [EMAIL PROTECTED] wrote: I am using a modified version of the old formmail.pl script on my website to get information requests mailed to me. I have modified the script to NOT send email other than to two fixed (hardcoded) addresses (myself and

Re: How to detect if a text body contains forbidden words

2007-11-20 Thread Bo Berglund
On Tue, 20 Nov 2007 20:03:38 +0100, Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: Bo Berglund wrote: The problem is that we are now being swamped by requests filled with a lot of http links instead of our customers business related questions. It hurts only our sales people who have to read all

mod_perl newbie gotcha

2007-11-20 Thread evil...@gmail.com
Looking for help from anyone with mod_perl experience - I have been caught by a classic newbie gotcha... I think. Running Activestate Perl v5.8.8 for MSWin32, Apache 2.0 for Win32 I believe I have correctly installed mod_perl as $ENV{'MOD_PERL'} correctly reports the version mod_perl/2.0.3 Two

Re: How to detect if a text body contains forbidden words

2007-11-20 Thread Bo Berglund
On Tue, 20 Nov 2007 19:01:08 +0100, Bo Berglund [EMAIL PROTECTED] wrote: sub spam_reject { if ($CONFIG{'Feedback'} =~ /href=|http:/i ) #i = ignore case { # reject code goes here push(@ERROR,'*SPAM*'); } if (@ERROR) { error('spam_contents', @ERROR); } Do you think

Re: mod_perl newbie gotcha

2007-11-20 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: The problem is that after the first successful send/receive, all subsequent executions contain the same initial data: the parameters never get reset with 'newer' data. I wasn't able to reproduce the described problem. -- Gunnar Hjalmarsson Email: