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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Sheldon Hearn
Date:  
À: Tony Finch
CC: exim-users
Sujet: 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.