[Mimedefang] md_check_against_smtp_server

Dave O'Neill dmo at roaringpenguin.com
Fri Oct 19 21:36:47 EDT 2007

Hi Paul,

Here's your problem:

> if ( $stat == "REJECT" && $msg =~ /$msgre/i ) {

In Perl, if you want to compare two strings, you need to use 'eq', not
'=='.  Try changing that line to:

   if( $stat eq "REJECT" ) {

and you should see it behaving correctly.

Dave O'Neill <dmo at roaringpenguin.com>    Roaring Penguin Software Inc.
+1 (613) 231-6599                        http://www.roaringpenguin.com/
For CanIt technical support, please mail: support at roaringpenguin.com

More information about the MIMEDefang mailing list