| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
- Will be useful for dropping privileges when some runners choose
to do so.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
- Catches all exceptions raised when running a plugins (pre|post)
_hooks. If its pre_hook raises an exception, the plugin is disabled
and removed, so its post_hook will not be run and its components
will not be loaded. If its post_hook raises an exception we just
continue and hope for the best.
|
| |
|
|
| |
- Allows to better loop over pluging configs and their names.
|
| |
|
|
|
| |
- Adds an optional 'conriguration' option similar to the one in
[mta] which plugins can use to load their specific configs from.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Adds the rest_object method to the IPlugin interface. This method
is called by the REST api to route requests to the plugin's REST
api. All attributes are proxied, so the object becomes a true
REST object in the ObjectRouter hierarchy. For example see the
RESTExample and ExamplePlugin classes in mailman.testing.plugin.
The plugin might return None from this method, in which case
all calls to it's REST api route will return 404 NotFound.
- Adds new routes to the REST api. For version >= 3.1:
- /3.1/plugins
Returns a dictionary with plugin names as keys, and their configs
as values.
- /3.1/plugins/<plugin_name>
Proxies everything to plugin's rest_object, if plugin with such
name exists and provides a non-null rest_object, else NotFound.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Makes dump_json documentation helper recursively print dicts with
indentation. So for example {'name': {'a':1, 'b':2}, 'other': test}
becomes:
name:
a: 1
b: 2
other: test
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removes pre_hook, post_hook and ext_dir. With the latter being
unused. Warns on startup if the hooks are present in config.
- Adds IPlugin interface with pre_hook and post_hook methods.
- Adds 'class' config parameter to plugins, which can be set to
a class implementing the IPlugin interface, it will be
initialized once on Mailman's startup, then before the DB
setup the pre_hook will be run, after DB and other components
the post_hook will be run. Plugin instances are stored in the
config.plugins dict, with keys being their configuration section
names.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Adds the notion of a 'plugin'.
- A plugin has a package path and a flag specifying whether
it's enabled or not.
- Adds a find_pluggable_components function similar to the
find_components one. This one dynamically searches not only
the mailman package but all of plugins.
- e.g. find_pluggable_components('rules', IRule) finds
all IRule components in mailman.rules but also in
example_plugin.rules for plugin names example_plugin.
- Uses the find_pluggable_components function in place of
find_components when searching for Rules, Handlers, Chains,
EmailCommands, and Styles.
|
| | |
|
| |\
| |
| |
| |
| | |
Move pipelines to their own package, instantiate them dynamically.
See merge request !287
|
| |/ |
|
| |\
| |
| |
| |
| | |
Provide a better way to avoid instantiating some components
See merge request !291
|
| |/ |
|
| |\
| |
| |
| |
| |
| |
| | |
Catch FileNotFoundError and PermissionError on html_to_plain_text_command.
Closes #345
See merge request !290
|
| | | |
|
| |/ |
|
| | |
|
| | |
|
| |\
| |
| |
| |
| | |
3.1.0 final!
See merge request !285
|
| |/ |
|
| |\
| |
| |
| |
| | |
3.1rc2
See merge request !284
|
| |/ |
|
| |\
| |
| |
| |
| | |
Refactor Header object test to create the message without cheating.
See merge request !283
|
| | | |
|
| | | |
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Fix the bogus migration on Template.password
Closes #336
See merge request !282
|
| | |/
| |
| |
| | |
Fixes #336
|
| |\ \
| | |
| | |
| | |
| | | |
Document Unicode usage in Mailman 3 REST API and email addresses.
See merge request !274
|
| | | | |
|
| | | | |
|
| |\ \ \
| |_|/
|/| |
| | |
| | | |
Minor reformatting of NEWS
See merge request !281
|
| |/ / |
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Fix the template name of the welcome message
Closes #337
See merge request !280
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We did not previously complete the renaming of the templates. Rename:
* user:ack:welcome -> list:user:notice:welcome
* user:ack:goodbye -> list:user:notice:goodbye
The new names are what are actually used in send_welcome_message() and
send_goodbye_message() so the old names were actually never used.
NOTE: If you added welcome or goodbye templates through REST from git head,
the old names will not be used. Given that this wasn't a feature in 3.0, and
the above use case is very unlikely, I've decided not to do a migration. If
anybody is affected, the changes can be made manually in withlist.
Closes: #337
|
| |\ \
| |/
|/|
| |
| |
| |
| | |
Account for msg['subject'] possibly being a Header instance.
Closes #338
See merge request !278
|
| |/ |
|
| |\
| |
| |
| |
| | |
3.1rc1
See merge request !273
|
| |/ |
|
| |\
| |
| |
| |
| |
| |
| | |
Add self_links to the system configuration resources
Closes #335
See merge request !271
|
| | |
| |
| |
| | |
Closes #335
|
| |\ \
| | |
| | |
| | |
| | | |
PR #265 with minor fixes
See merge request !270
|
| | | | |
|
| | | | |
|
| |\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | | |
Add support for regex based postfix transport maps and relay_domains.
Closes #318
See merge request !263
|
| |/ / |
|
| |\ \
| |/
|/|
| |
| |
| |
| | |
Content Filtering: Ported a number of fixes from the 2.1 branch.
Closes #330, #331, #332, and #334
See merge request !269
|
| |/ |
|