> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, January 28, 2004 12:19 PM
> To: [EMAIL PROTECTED]
> Subject: [Mimedefang] disable antivirus for one user
....snip....
> 
> does anyone have a quick way to say
> if the recipient is [EMAIL PROTECTED] exit from the 
> filter completely and deliver as-is?

How about adding and activating filter_recipient?  Then put something
like this in the sub-routine:

sub filter_recipient {
        my($recip, $sender, $ip, $host, $first, $helo) = @_;
        $recip =~ tr/A-Z/a-z/;
        if ($recip =~ /[EMAIL PROTECTED]/) {
            return ('ACCEPT_AND_NO_MORE_FILTERING','ok');
        }
}

This is untested code but I believe it should be close....
Randy

_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to