manitou-mdx plugins

The functionalities of manitou-mdx can be extended or customized by writing Perl modules called plugins, whose structure is described in the Plugins Reference page.

Some examples of what plugins can do:

Plugins can be called at different stages of the mail processing, depending on what kind of functionality they provide:

The distribution archive include those sample plugins, in the scripts/plugins directory:

A plugin is activated by installing the corresponding perl module file (with a .pm suffix) in the plugins directory, and declaring it in the configuration file, optionally with arguments, like this:
[common]
plugins_directory = /usr/local/manitou/plugins
# vacuum every 2 hours
maintenance_plugins = 2h vacuum

[mailbox@company.com]
# these plugins will be called only for that mailbox
incoming_preprocess_plugins = spamc("tag for spam")
outgoing_plugins = gpgsign
incoming_postprocess_plugins = guesslang("en","fr") \
                               anotherplugin(arg1,arg2,...)
See the Plugins Reference page for detailed technical-oriented information on plugins and how to write new ones.