Just dropping this here in case anyone is interested:

https://oitibs.com/scripting-kopano-server-updates/

https://oitibs.com/scripting-kopano-webapp-updates/