Two new DAgent/Spooler plugin examples

October 4, 2013 by Mark Dufour   Comments (0)

Dear Zarafa users,

With ZCP 7.1 we released a plugin framework which makes it possible to extend DAgent and Spooler functionality with custom Python scripts.
One reason why we have not received much feedback on this though may be that we did not provide many simple to understand examples.
To partially remedy this we have just released two new example scripts. One illustrates basic modification of mail bodies, and the other shows how to create attachments.

The new examples can be found here:

https://github.com/zarafagroupware/zarafa-tools/tree/master/plugins

The 'censorship.py' example censors words as defined in the 'censorship.txt' file. The 'uudecode.py' example converts uu-encoded parts of a mail body into separate attachments.

To try these examples, simply place the respective files in the 'plugin_manager_path' as defined in dagent.cfg.

More information about using the plugin framework can be found here:

http://doc.zarafa.com/7.1/Release_Notes/en-US/html/_python_dagent_amp_spooler_hooks.html

http://doc.zarafa.com/7.1/Administrator_Manual/en-US/html/_zarafa_python_plugin_framework.html

Please let us know if you have an idea for a new plugin, but aren't sure how to implement some part of it using Python/MAPI.