Re: [Exim] Exim 4.14 - no new-line sign allowed in route_lis…

Pàgina inicial
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
A: exim-users
CC: Juergen Edner
Assumpte: Re: [Exim] Exim 4.14 - no new-line sign allowed in route_list expansion string
On Sat, Sep 06, 2003 at 10:34:40AM +0200, Juergen Edner wrote:
[...]
> This works:
> -----------
>
> route_list = *
>     ${extract{server}{${lookup{$domain}lsearch*{/etc/exim-smarthosts}}}}

>
> This didn't work:
> -----------------
>
> route_list = *
>     ${extract{server} \
>     {${lookup{$domain}lsearch*{/etc/exim-smarthosts}}}}

[...]

You are aware that the latter has a spurious space in there after
unfolding? ie:
route_list = *
      ${extract{server} {${lookup{$domain}lsearch*{/etc/exim-smarthosts}}}}


A route list consists of three space-separated parts (<domain pattern>
<list of hosts> <options>), and the former two are are expanded
_separately_, so exim tries to expand "${extract{server} " and fails.

This is no bug.
      cu andreas


PS: 4.14 is pretty old.
PPS: I am surprised that you don't need
     route_list = * \
           ${extract....
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"