Johnny C. Lam writes:
Sam Varshavchik wrote:• Invoke Courier filters after closing all control files.This change to courier/submit2.C should allow for Courier filters to modify the message contents file (first pathname passed to the filter) because the "dorewrite" actions (in particular, rfc2045_rewrite) have already taken place. Is this correct?
I don't know. I've not written any content-modifying filters, and tested them. It should work in theory, but right now there is no set convention for rewriting an existing message. Obviously you'll need to write it out to temporary file first, then rename it, and/or link it. Courier right now periodically scans the tmp directory and purges anything it feels like purging in there, so the temporary files will have to factored into this logic.
But, for testing purposes only, you should try implementing a sample filter, like that.
pgpJojjIdHvNK.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
