Mitch (WebCob) wrote:

Would it be possible (instead of using default delivery to maildrop) to do default delivery to another program, which could set up the environment for maildrop with all the extra varables needed for filtering, and then call maildrop?

Probably.


Instead of:
DEFAULTDELIVERY="| exec /usr/lib/courier/bin/maildrop"

I could call:
DEFAULTDELIVERY="| exec /mydeliveryprogram"

Leave off the exec, it's not useful (and I don't think it works).


Set DEFAULTDELIVERY to your script and set etc/courier/maildrop to the path to your script, so courier treats your script the same as it would maildrop.

Which does it's database queries, sets up environment variables, and calls
maildrop. Maildrop can then import the know environment variables needed,
run, and exit.

my program would then exit with the return code given by maildrop.

sure:


#!/bin/sh

SOMEVARS=value

export SOMEVARS

exec /usr/lib/courier/bin/maildrop "$@"




------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to