Autor: Bradford Carpenter
Data:
Para: Doug Jolley
CC: exim-users
Asunto: Re: [Exim] String expansion in filters
On Fri, 09 Apr 2004 23:25:08 -0700, Doug Jolley wrote:
> Filter error: "and" or "or" or "then" expected near line 4 of filter file,
> but found
> "{doug@???}". Thanks for any input.
>
> - - - - - - - Filter File - - - - - - - -
> # Exim filter
> if
> $header_subject: contains "[OCLUG]" or
> "Yes" is ${lookup {doug@???} lsearch
> {/home/admin/doug/work1/whitelist} {Yes} {No}}
> then
I've run into similar parsing problems in my system filter. Often
quotes around the problem expansion seem to allow it to be digested
properly:
if
$header_subject: contains "[OCLUG]" or
"Yes" is "${lookup {doug@???} lsearch
{/home/admin/doug/work1/whitelist} {Yes} {No}}"
then
Worth a try.
Brad