[Mimedefang] Filter Recipient Coding Help

Matthew.van.Eerde at hbinc.com Matthew.van.Eerde at hbinc.com
Fri Aug 19 12:34:25 EDT 2005


Jeff Grossman wrote:
> if ($recip2 eq 'test at turners.com' or
>         $recip2 eq 'test2 at turners.com' and
>         $sender2 ne 'test at aol.com') {
> ) {

Parentheses are a good idea here...
if (
	(
		$recip2 eq 'test at turners.com' or
		$recip2 eq 'test2 at turners.com'
	) and
	$sender2 ne 'test at aol.com'
) {

but the logic looks like it shold have worked anyway.

Try changing this line to

                action_notify_administrator("TESTING: Recipient: $recip2\nSender:
$sender
\nIP: $ip");

and see if the TESTING: thing comes through.  Are you reloading MIMEDefang after changing the script?

-- 
Matthew.van.Eerde (at) hbinc.com               805.964.4554 x902
Hispanic Business Inc./HireDiversity.com       Software Engineer




More information about the MIMEDefang mailing list