Re: [EXIM] Exim-1.92: Macro expansion bug with `domain=' in …

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Dom Mitchell
Dátum:  
Címzett: Philip Hazel
CC: Harald Meland, Jim Knoble, Exim Users
Tárgy: Re: [EXIM] Exim-1.92: Macro expansion bug with `domain=' in routers
Philip Hazel <ph10@???> writes:
> Macros in Exim are simple macros, *very simple* macros. I should,
> however, have pointed out this effect in the documentation.
>
> I wanted to keep it simple, because Exim is forever reading its
> configuration file, which has got much more complicated that I ever
> envisaged it would.


Rightly so. If you badly need macros that much, I woudl suggest
putting your configuration file in a directory and preprocessing it
with m4 via a little Makefile. It's quite easy to do, rather than
making exim go through even more hoops than it needs to.

You can expand on this to make the config file more smail like, by
including seperate sections for routers, directors and transports
should the fancy take you.

It's also an ideal point to place your configuration file under cvs
control. :-)

P.S.  If you are newly interested in m4, it's worth taking a look at
the original paper that accompanied it at:
    http://plan9.bell-labs.com/7thEdMan/
-- 
``If make doesn't do what you expect it to, it's a good chance the
  makefile is wrong.'' -- Adam de Boor


--
*** Exim information can be found at http://www.exim.org/ ***