Re: [exim] data acl expansion question

Top Page
Delete this message
Reply to this message
Author: Jakob Hirsch
Date:  
To: 'Exim-users'
Subject: Re: [exim] data acl expansion question
grover mitchell wrote:

> condition = ${if eq{${run{/usr/local/bin/ispam $message_headers
> $message_body}}}{SPAM}{1}{0}}
>
> however, the result seems to always be 0, regardless of the output of
> the external program. Can anyone tell me what I am doing wrong?


Are you sure that the program writes just "SPAM" and not "SPAM\n"?
That's a difference for the eq condition.

Another possibility, if your program exits with an error code:
${run {/usr/local/bin/ispam $message_headers $message_body} {yes}{no}}