Autor: Peter Bowyer Data: Dla: Exim Users Mailing List Temat: Re: [exim] Trouble with condition statement
On Tue, 30 Nov 2004 14:07:26 +1100, Andrew Nelson
<andrew__nelson@???> wrote:
> I have this condition statement in a spam filter router which works well:
> condition = "${if and {{!def:h_X-Spam-Flag:}
> {!eq{$received_protocol}{spam-scanned}}} {1}{0}}"
>
> but I also want to add a clause only to continue if the user's email address
> exists in a
> text file.. I have this but can't get it logically 'and'ed with the above
> (or maybe's its invalid?):
> ${lookup{$local_part@$domain}lsearch{/etc/mail/filtered_users}}
$lookup doesn't directly return true/false, it takes 2 extra arguments
for success and failure, so