On Mon, 17 Jan 2005, Marc Perkel wrote:
> OK - here's what I want to do - I want to run a program from the system filter
> and return the results in a header - something like this:
>
> headers add "X-Spamprobe: ${run {/etc/exim/scripts/spamprobe-test
> $message_id}{$value}{}}"
>
> However - I need to pipe the message into the program that I'm trying to get
> the results from. How do I do the piping part?
There is no facility for doing this from a system filter.
(1) You might be able to bend the "cmdline" virus scanner interface in the
exiscan feature to approximate what you want in an ACL.
(2) You can pass the message id and let the program read the spool for
itself.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book: http://www.uit.co.uk/exim-book