[exim-dev] [Bug 3083] Allow multiple uses of options definin…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Bugzilla
Datum:  
To: exim-dev
Betreff: [exim-dev] [Bug 3083] Allow multiple uses of options defining servers for database lookups
https://bugs.exim.org/show_bug.cgi?id=3083

--- Comment #5 from Jeremy Harris <jgh146exb@???> ---
I've not checked specifically for mysql_servers, but a standard Exim list
ignores
a trailing list-separator; there is no "last" list element implied by one.

So long as you leave an empty line afterward, a trailing backslash will have no
effect;
it does no imply there will be further information on the next line.


> It doesn't define a type of datasource though so it requires a prepending block of the same type.


    mysql_servers = \
    .ifdef FOO
                localhost::PORT_D/test/fred/ : \
    .endif
    .ifdef BAR
                HOSTIPV4::PORT_D2/test/bill/ :
    .endif


Better? These elements are only text, while the ifdefs get resolved. They do
not
have types or semantics until the entire resulting list is evaluated when (and
if) the
"mysql_servers" global option is needed for a lookup.

--
You are receiving this mail because:
You are on the CC list for the bug.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/