Re: [exim] Idea: Predefined macros

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: exim-users
CC: Magnus Holmgren
Subject: Re: [exim] Idea: Predefined macros
On Wed, 2 May 2007, Tony Finch wrote:

> On Wed, 25 Apr 2007, Magnus Holmgren wrote:
>
> > What do you think about having certain predefined macros available? One such
> > macro could be CONFDIR, and I can also imagine macros that are defined
> > according to which features are compiled in.
> >
> > The point of these macros would be enabling the writing of more reusable
> > configuration files/snippets, and for the macros being macros is so they can
> > be used .include and .ifdef directives, and also in settings that aren't
> > expanded.
>
> Sounds useful, especially for packagers like Debian.


Does anybody care about performance any more?

If you have a pile of macros defined, Exim is going to scan each config
line for those macros every time it reads the config, which is something
that it does often.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book