Modified Zarafa Disclaimer Hook

December 20, 2012 by Bert Deferme   Comments (0)

, ,

As from Zarafa 7.1 python scripting hook functionality was added to both the Zarafa dagent and the Zarafa spooler. This allows system administrators and developers to extend the functionality of the Zarafa dagent and spooler with personal scripts to manipulate the content on sending and delivery.

Some example hooks are provided by Zarafa:

  • movetopublic.py – This script moves incoming messages to a folder in the public store.
  • BMP2PNG.py – This scripts converts BMP attachments to PNG in incoming mails.
  • Disclaimer.py – This script adds a disclaimer to outgoing mails.

The disclaimer hook checks the /etc/zarafa/disclaimers folder for the following files (disclaimer content):

  • default.txt – plain text version of the default disclaimer
  • default.html – HTML version of the default disclaimer
  • <companyname>.txt – plain text version of the disclaimer of a company when running in multi-tenancy mode
  • <companyname>.html – plain text version of the disclaimer of a company when running in multi-tenancy mode

A client of ours only wanted the disclaimer to be sent for emails that go to external contacts. To establish this we modified the disclaimer hook.

For more information you can read the entire article on our website.