Automatic attachement extraction
-
Does anybody has an idea how to automatically extract an attachment from a mail arriving at a kopano mailbox.
The challenge is to copy the attachment somewhere to the filesystem where it can be further prcessed by a script. -
Do you want download this on the server side?
If so you have 2 options to do this.You can create a dagent plugin this will check every incoming mail.
This is a example that move larger items then x to a different folder but you can use at as a base https://nextcloud.kopano.com/index.php/s/tMmyYmHfmCTYcQa
Please keep in mind that this script was written for Zarafa so probably you need to change some code and for Kopano you can use python-kopano and this make the script a lot easierThe other option is to use the ICS handler in Kopano to track the changes from a user.
See the documentation for python-kopano https://documentation.kopano.io/kopano_python_kopano/synchronization.html#ics