On 2007-08-20 13:01:30 -0700, JT Moree wrote:
> * We want to whitelist in such a way that we don't have to modify every
> plugin.  If a message is whitelisted then the module that is calling the
> rest of the plugins should skip calling them.

Within a hook this is easily accomplished by returning OK.

Between hooks this is imho a very bad idea. Consider for example a
plugin which whitelists based on IP address. The IP address is known at
the start of the connection, so the plugin can run in the connect_hook. 

Now all the plugins in all the other hooks would be skipped, so you
can't decide whether the recpient exists or not and you can't queue the
message. 

Clearly this is useless and each plugin needs to decide what it wants to
do with the information that the message is whitelisted.

(And since I haven't climbed that particular soap-box for some time I
want to point out that a global whitelist isn't generally useful - often
you want to disable only specific tests - for example you may want to
turn off greylisting for known MTAs but you still want to check for
viruses)

        hp

-- 
   _  | Peter J. Holzer    | I know I'd be respectful of a pirate 
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   | [EMAIL PROTECTED]         |
__/   | http://www.hjp.at/ |    -- Sam in "Freefall"

Attachment: signature.asc
Description: Digital signature

Reply via email to