Re: [Exim] Problem with smartuser.

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Thorkild Stray
CC: exim-users
New-Topics: Re: [Exim] mysql (Problem with smartuser.)
Subject: 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.