Re: [Exim] Problem with smartuser.

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Thorkild Stray
Cc: exim-users
Temas nuevos: Re: [Exim] mysql (Problem with smartuser.)
Asunto: Re: [Exim] Problem with smartuser.
On 17 Mar 2000, Thorkild Stray wrote:

>    new_address = ${lookup mysql{select forward_adresser from \
>    preferanser, bruker where bruker.id=preferanser.bruker_id and \
>    bruker.epost='${local_part}@${domain}'} ${value}fail}

>
> (new_address is all on one line)


You have missed out the {} that are required round the "success" value.
Try this:

    bruker.epost='${local_part}@${domain}'} {${value}}fail}


I always feel that this kind of thing looks better if you omit
unnecessary {} for variables:

    bruker.epost='$local_part@$domain'} {$value}fail}


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.