I'm working on developing a plugin, and I'd like to be able to add
configuration options in the configuration for the plugin at the
Mailman3 level, however I'm not entirely sure how I'd read out
configuration options.
Assume that we're working with this in the /etc/mailman3/mailman.cfg
file for the configuration specific to the plugin:
[plugin.example]
class: example_mm_plugin.hooks.ExamplePlugin
enabled: yes
config_item_one: Foo
config_item_two: Bar
config_item_three: 1234567890
The plugin at example_mm_plugin at the Python module/library level
contains the following dir structure:
archiving/example_archiver.py
__init__.py
hooks.py
How would I, within `example_archiver.py`, be able to access and read
the custom configuration options that I've added to `plugin.example` in
the mailman.cfg file?
I know at the very least it's going to involve me doing something with
`mailman.config` but I'm not sure what I have to import nor how to
interface with items under here to load and read the config items
directly after it's loaded.
(Note I am not subscribed to this list, please include me in any
responses you send)
Thomas
_______________________________________________
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3
Security Policy: https://wiki.list.org/x/QIA9