22
21
command without any options.
24
23
>>> command.process(FakeArgs)
25
[logging.archiver] path: mailman.log
24
[antispam] header_checks:
27
[passwords] password_length: 8
26
[logging.bounce] level: info
29
28
[mailman] site_owner: noreply@example.com
34
33
>>> FakeArgs.section = 'shell'
35
34
>>> command.process(FakeArgs)
36
[shell] use_ipython: no
37
35
[shell] banner: Welcome to the GNU Mailman shell
38
36
[shell] prompt: >>>
37
[shell] use_ipython: no
40
39
You can also pass a key and display all key-value pairs matching the given
41
40
key, along with the names of the corresponding sections.
44
43
>>> FakeArgs.key = 'path'
45
44
>>> command.process(FakeArgs)
46
45
[logging.archiver] path: mailman.log
47
[logging.locks] path: mailman.log
48
[logging.mischief] path: mailman.log
46
[logging.bounce] path: bounce.log
49
47
[logging.config] path: mailman.log
48
[logging.database] path: mailman.log
49
[logging.debug] path: debug.log
50
50
[logging.error] path: mailman.log
51
[logging.smtp] path: smtp.log
52
[logging.database] path: mailman.log
51
[logging.fromusenet] path: mailman.log
53
52
[logging.http] path: mailman.log
53
[logging.locks] path: mailman.log
54
[logging.mischief] path: mailman.log
54
55
[logging.root] path: mailman.log
55
[logging.fromusenet] path: mailman.log
56
[logging.bounce] path: bounce.log
57
[logging.vette] path: mailman.log
58
56
[logging.runner] path: mailman.log
57
[logging.smtp] path: smtp.log
59
58
[logging.subscribe] path: mailman.log
60
[logging.debug] path: debug.log
59
[logging.vette] path: mailman.log
62
61
If you specify both a section and a key, you will get the corresponding value.
66
65
>>> command.process(FakeArgs)
67
66
noreply@example.com
69
You can also sort the output. The output is first sorted by section, then by
72
>>> FakeArgs.key = None
73
>>> FakeArgs.section = 'shell'
74
>>> FakeArgs.sort = True
75
>>> command.process(FakeArgs)
76
[shell] banner: Welcome to the GNU Mailman shell
78
[shell] use_ipython: no
81
69
.. _`Postfix command postconf(1)`: http://www.postfix.org/postconf.1.html