-
Notifications
You must be signed in to change notification settings - Fork 1k
Plugin api
Smári McCarthy edited this page Nov 20, 2013
·
9 revisions
There are demos of the plugin API in mailpile/plugins/demos.py
See Command plugins
-
mailpile.plugins.register_commands(*plugins)
-plugins
is a list of one or more subclass ofCommand
.
See Extending Maipile's Configuration and Configuring Mailpile.
mailpile.plugins.register_config_variables(*args)
mailpile.plugins.register_config_section(*args)
-
mailpile.plugins.register_search_term(term, handler)
-handler
is a function that manages the search term. mailpile.plugins.register_data_kw_extractor(term, function)
mailpile.plugins.register_text_kw_extractor(term, function)
mailpile.plugins.register_meta_kw_extractor(term, function)
See Contact plugins
-
mailpile.plugins.register_contact_importer(importer)
-importer
is subclass ofContactImporter
. -
mailpile.plugins.register_contact_exporter(exporter)
-exporter
is subclass ofContactExporter
. -
mailpile.plugins.register_contact_context_provider(provider)
-provider
is subclass ofContactContextProvider
.