How can I guarantee that this special whitelist filter runs before the spf filter? Do the python-courierfilters run in ascending ASCII sort order of their names? If so, I can name it so that it runs first.
If there is a variable named "order" in the module, it will be used to determine the order in which filters run. "whitelist.py" has order=0 to make sure it runs first. I suggest setting the value in your filter to 1.
Also, if I have a chain of filters, will courier-pythonfilter avoid running any subsequent filters if an earlier filter succeeds? I'd like to make sure that if a message passes this AUTH test, the spf filter doesn't get run on it.
From the README file:
This function will be called to filter each incoming message. This
function should return either the empty string ('') to indicate
success, and that other filters may run, or it should return an SMTP
style response. The response will be passed on directly to Courier,
and in the case of failure responses, passed on to the client sending
the message. A filter may return an SMTP success code ('200 Ok') to
indicate that the message is OK, and that no further filters should
run.------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
