[Mimedefang] Re: A place to skip tests (Questions on filter_recipient with multiple recip's)
Kelson Vibber
kelson at speed.net
Wed Apr 9 12:26:01 EDT 2003
David F. Skoll wrote:
>The first time you return ACCEPT_AND_NO_MORE_FILTERING, no more filtering
>is done. If you want different behavior for different recipients, you have
>no choice but to stream_by_recipient.
OK. I thought this would be the case, but on to the next questions:
IIRC, filter_relay, filter_recipient, and filter_sender are all run before
filter_begin, and filter_recipient runs as the relay names each recipient,
not after they've all been listed, correct? So filter_recipient has no
idea how many recipients there are.
So: If I get a message sent to two people, one of whom I want to skip
filtering, I need to use stream_by_recipient. However, that can't be
called until *after* filter_recipient has run. This means that the
original message with both recipients will trip the logic in
filter_recipient, and filtering will stop before it even gets to
stream_by_recipient.
Is there someplace else where something similar to
ACCEPT_AND_NO_MORE_FILTERING can be used?
Kelson Vibber
SpeedGate Communications <www.speed.net>
More information about the MIMEDefang
mailing list