I suppose there is a second problem which is probably fatal: if the inbound message is destined for two local users, and one accepts it and the other hard-fails it, it's unclear what the semantics should be.
...which is among the reasons that what you're asking for isn't possible. Once you accept mail, it's your responsibility to make sure it gets delivered. You should never hard-fail messages after accepting them. If you're not interested in receiving the messages, drop them in a Trash folder, or just drop them outright. A program run from dot-courier can exit with code 99 to indicate that no further directions should be processed.
If you want SMTP session processing, look into the courierfilter API. Courier includes a pure perl filter that you can use as an example. There's a Perl filter library available on CPAN: http://search.cpan.org/~jmehnle/
I've written a Python framework as well, of which I'll probably make a new release this weekend:
http://phantom.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilter/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
