Re: [Exim] Router condition lookup: line-delimited file cont…

Góra strony
Delete this message
Reply to this message
Autor: Sheldon Hearn
Data:  
Dla: Tony Finch
CC: exim-users
Temat: Re: [Exim] Router condition lookup: line-delimited file contains
On (2003/11/10 14:04), Tony Finch wrote:

> > condition = ${lookup{${local_part}@${domain}}XXX{/path/to/addrfile}{1}}
> >
> >where addrfile contains a line-delimited list of email addresses.
>
> Have you tried
>
>   condition = ${lookup {$local_part@$domain} lsearch{/path/to/file} \
>                   {yes} {no} }


Yes, although I used 0 and 1. Debugging shows the lookup yielding the
empty string, so I get 0 instead of 1.

The docs suggest that lsearch can't be used in this way, because an
lsearch expects the file to contain

    key colon [whitespace] value


Ciao,
Sheldon.