The man page for mimedefang_filter says of stream_by_recipient():

*********
This  function  should  only  be called at the very
beginning of filter_begin(), like this:

sub filter_begin {
   if (stream_by_recipient()) {
      return;
   }
   # Rest of filter_begin
}
*********

What's to stop me doing things before this stage? For example, if I have a spamtrap address on a web page, and the Recipient array contains that address, I would want to reject the message for all recipients:

sub filter_begin {
   if (spamtrap(@Recipients)) {
        action_bounce(...);
   }
   elsif (stream_by_recipient()) {
      return;
   }
   # rest of filter_begin - anything that gets this far is
   # one recipient at a time
}

Can I do that?

--
Mark.
[EMAIL PROTECTED]
http://tranchant.plus.com/

_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to