Re: ${lookup} in message_filter?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Jason S Kohles
CC: exim-users
Subject: Re: ${lookup} in message_filter?
On Fri, 5 Sep 1997, Jason S Kohles wrote:

> I have tried various permutations of:
>
> if ${lookup {$sender} @@partial0-lsearch{/etc/mail/rejects} {1} {0}}
> then
>    logfile /var/log/spam/by-reject-file 0666
>    log "$tod_log - $h_to - $h_from - $h_subject - ($h_to,$h_from)"
>    seen deliver spambot
> endif

>
> and they all fail with Error in message_filter file: unrecognized condition
> word "{$sender}" near line 267 of filter file,


You need quotes round that, because it contains spaces. The complaint is
that "if" has read the condition "${lookup" and now expects "then" or
"else" or "and" or "or", etc.


-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/