i found a script in the old kopano code (tools/python-scripts/kopano-rules), to read out the
rules of a running kopano. It does not really work, but i got out the rules in raw form:
[SPropValue(0x66740014, 1), SPropValue(0x66760003, 11), SPropValue(0x66770003, 17), SPropValue(0x6678000A, 2147746063), SPropValue(0x667900FD, SContentRestriction(1,0xc1d0102,SPropValue(0x0C1D0102, b'EMIL'))), SPropValue(0x668000FE, ACTIONS(1,[ACTION(1,0,None,None,0x0,actMoveCopy(b'\x00\x00\x00\x008\xa1\xbb\x10\x05\xe5\x10\x1a\xa1\xbb\x08\x00+*V\xc2\x00\x00zarafa6client.dll\x00\x00\x00\x00\x00\xfe\xee\x1e\xac\xf8\x82B6\x9bs{\x9e\xaaS\xd2\x90\x01\x00\x00\x00\x01\x00\x00\x00\xc7w\'\x80\xf6\xd1G"\xb8\x82/\x07j\x08\xdc\xa2file:///var/run/kopano/server.sock\x00',b'\x00\x00\x00\x00\xfe\xee\x1e\xac\xf8\x82B6\x9bs{\x9e\xaaS\xd2\x90\x01\x00\x00\x00\x03\x00\x00\x00\xc4\x9d\x91\xa0E\xeeNP\x94\x0e\xd4h}$\xf5\xa6\x00\x00\x00\x00'))])), SPropValue(0x6681001E, b'RuleOrganizer'), SPropValue(0x6682001E, b'testr1'), SPropValue(0x66830003, 0), SPropValue(0x66840102, b'\x01\x00\x00\x00\x00\x00\x00\x00\x86\xca\x0e\x93i\x11\xe6@'), SPropValue(0x6715001E, b''), SPropValue(0x6717001E, b''), SPropValue(0x6718001E, b''), SPropValue(0x6719001E, b'')]
I tried to got it running, but i don't have enought internal knowledge about the structure.
Maybe someone with more knowledge can take a look on it.
If we could get the rule informations with this tool and extend the admin-api to create rules,
we could convert the rules to grommunio in an elegant way.