Re: [exim] Additional tests for .ifdef, .ifndef, etc.

Góra strony
Delete this message
Reply to this message
Autor: Ted Cooper
Data:  
Dla: exim-users
Temat: Re: [exim] Additional tests for .ifdef, .ifndef, etc.
Martin Nicholas wrote:
> Would it be a possible/easy/useful thing to add the names of routers &
> transports to these conditionals?
>
> I.E:
>
> .ifndef some_router
> some_router:
>     driver = dnslookup
>     etc.
> .endif

>
> I've got a use for it. Does anyone else?
>


Can already be done with 1 extra line.

.ifndef SOME_ROUTER_X
SOME_ROUTER_X=blah

some_router:
    driver = whatever
.endif


Of course, since the configuration file is read with every single fork
this causes a performance penalty.

--
The Exim Manual
http://www.exim.org/docs.html
http://docs.exim.org/current/