Re: [Exim] Syntax has me stumped

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Christian Froemmel
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] Syntax has me stumped
At 20:31 05.10.01, you wrote:

Hi,

>This isn't working:
> file = ${extract{5}{:}{${lookup \
>{$local_part}lsearch{/etc/vmail/passwd.$domain}{"{$value}.forward"}}}}


give this a try (5th-field-expansion after the lookup of the whole line):

file =
${lookup{$local_part}lsearch{/etc/vmail/passwd.$domain}{${extract{5}{:}{$value}}.forward}}

(I don't think you need these quotes around the expanded value).

regards Christian