Jason L. Buberel [EMAIL PROTECTED] wrote:
> I think that I'm almost there in my Auto-Whitelist implementation:
> [...]
>
> The problem I am now having is: How do I communicate the results of the
> 'CheckWhitelist.pm' C::F::Module so that my maildrop script can
> determine if it has passed the autowhitelist test?

Courier 0.45.5 includes a unique ID to the "Received:" header for each
message.  This ID is known in the global filtering stage (when C:F modules
run) and can be stored in a file or database (together with the results
you want to pass) and looked up later in a maildrop script.  (The database
would need to be pruned of obsolete entries regularly.)

This will be semi-automated in the next release of Courier::Filter (might
take some weeks).  Until then, you'd have to implement it yourself.

> I could move all of the functionality from 'CheckWhitelist.pm' from a
> courierfilter to a simple perl script that is executed with 'xfilter'
> from maildrop, using the predefined 'FROM' and 'LOGNAME/DEFAULT'
> variables to perform the DBM lookup, adding the header as I stream the
> message back to STDOUT. [...]

In a maildrop script, the envelope sender and recipient addresses are
contained in the SENDER and RECIPIENT environment variables which you may
need to import from the environment using the maildrop "import" command.



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to