After several failed attempts, I'm looking for some suggestions on doing something I'm having a heck of a time with...

I'm trying to modify my mimedefang-filter to meet some monitoring requirements. Basically, the goal here is:

1. If an e-mail comes from a pre-defined domain or address, send it to one "monitoring" address.
2. If an e-mail comes from an address other than those pre-defined, send it to a different address.


Here's what my current attempt looks like, and right now it's sitting in "filter_begin." I get a "filter timed out" message when I activate it. Any help would be greatly appreciated -- As usual, they want this *now*, and didn't tell me about it until yesterday afternoon:

$privileged_addrs = '(domain1\.com|domain2\.com|domain3\.com|[EMAIL PROTECTED]|[EMAIL PROTECTED])';

$re = '.*' . $privileged_addrs . '$';

$is_privileged = ((re_match($Sender, $re)) | (re_match($Recipient, $re)));

   if ($is_privileged) {
       add_recipient('[EMAIL PROTECTED]');
   }
   else {
       add_recipient('[EMAIL PROTECTED]');
   }



_______________________________________________
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