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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Bugzilla
Dátum:  
Címzett: exim-dev
Tárgy: [exim-dev] [Bug 3083] Allow multiple uses of options defining servers for database lookups
https://bugs.exim.org/show_bug.cgi?id=3083

--- Comment #6 from Marten Lehmann <lehmann@???> ---
You are right, technically it indeed works as you suggested. But is that really
a configuration file you'd like to see in the wild? Do you think most exim
users with immediately understand a block that looks like this and _not_ assume
there's some error in the configuration or at least be surprised this actually
works?

# BEGIN
mysql_servers = \

pgsql_servers = \

#END

or

# BEGIN
mysql_servers = \
    localhost::PORT_D/test/fred/ : \


pgsql_servers = \
    HOSTIPV4::PORT_D2/test/bill/ : \


#END

I checked for "+=" notation you suggested initially, but that's not the actual
exim style. Correctly it would be

mysql_servers = +localhost::PORT_N/test/root/
.ifdef FUBAR
mysql_servers = +localhost::PORT_D/test/fred/
.endif
mysql_servers = +HOSTIPV4::PORT_D2/test/bill/

That's similar to

domains = +local_domains
openssl_options = +no_sslv2 +no_sslv3
hosts = +relay_from_hosts

and so on. I'm not sure what's involved to extend the database options to the
same behavior, yet I still think it's a desirable thing and I'd highly prefer
it to the workaround.

--
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/