Re: [Mailman-Developers] Add the equivalent of postconf

On Feb 17, 2012, at 11:09 PM, Aamir Khan wrote:
My thought is that this command would dump configuration sections and values from the mailman.config.config object. These are built via the lazr.config library and are driven by src/mailman/config/schema.cfg and src/mailman/config/mailman.cfg in the source tree, and overridden by any values the admin has added via /etc/mailman.cfg (and others, see START.rst for details).
Specifically, this would *not* dump values from the database.
To start with, bin/mailman mailconf
seems like a reasonable choice.
A thought on syntax. Parameters would have a syntax like
section:key
e.g.
paths:var_dir
Maybe both the section and variable name would be optional. In the former case, mailconf could print all the key/values in the section. In the latter, it could print all keys that match the variable name. In both cases, it should probably print the full path to the variable.
(The colon separate might not be the best choice, since you'll probably use that to separate keys from values. OTOH, dot may not be the best choice either, since it's possible that some sections may have dot names in them. You could use the syntax
[section]key: value
too.)
Cheers, -Barry

On Mon, Feb 20, 2012 at 08:36:13PM -0500, Barry Warsaw wrote:
I'd be inclined to (consistently) use a character that's not permitted
in either part -- just to make it nice and easy to say, use awk -F
(or your tool of choice) when looking at output.
I quite colons.
-- "... they're not anarchists, just thugs who can't be bothered to put in the weekly commitment needed to be football hooligans." -- Nick Barlow (describing violent May Day protestors)

On Mon, Feb 20, 2012 at 08:36:13PM -0500, Barry Warsaw wrote:
I'd be inclined to (consistently) use a character that's not permitted
in either part -- just to make it nice and easy to say, use awk -F
(or your tool of choice) when looking at output.
I quite colons.
-- "... they're not anarchists, just thugs who can't be bothered to put in the weekly commitment needed to be football hooligans." -- Nick Barlow (describing violent May Day protestors)
participants (2)
-
Adam McGreggor
-
Barry Warsaw