Re: [exim] data acl expansion question

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jakob Hirsch
Date:  
À: 'Exim-users'
Sujet: 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}}