Re: [exim] Sporadic lsearch errors in 4.33

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Eric Bullen
CC: exim-users, Nico Erfurth
Assumpte: Re: [exim] Sporadic lsearch errors in 4.33
On Wed, 6 Oct 2004, Eric Bullen wrote:

> file lookup required for xx@???
> in /etc/exim/user_list.txt
> lookup yielded:
>
> >
>
> Doesn't look good- I would expect some result after the "yielded:".


Not if your file was as you described in another message, with no data
associated with each key. The lookup is yielding an empty string, which
is correct. lsearch, like all single-key lookup types, takes a key as an
argument, and yields a value as a result. If the file is

key1: value1
key2: value2

then looking up "key1" gets you "value1" etc. The colons after the keys
are optional if there is whitespace. Consequently, a file that just
contains

key1
key2

is going to yield an empty string for every key that it contains.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book