movetopublicfolder.py error No module named 'ConfigParser'

I want to move emails which are sent to an inactive account to a public folder. I am trying to use movetopublic.py for this purpose as described here: https://documentation.kopano.io/kopanocore_administrator_manual/special_kc_configurations.html#move-to-public

I have setup a ruleset in /etc/kopano/movetopublic.cfg:
rule1_recipient = officemail
rule1_destination_folder = Office

Folder and account exist. The mail gets sent to inactive account officemail@example.com but not moved to the public folder “Office”.

I get the following errors:
Jan 12 14:35:03 office kopano-dagent[1055]: !-- failed to load: /var/lib/kopano/dagent/plugins/movetopublic.py
Jan 12 14:35:03 office kopano-dagent[1055]: !-- error: No module named ‘ConfigParser’

I suspect I has something to do with different python versions (Python 3, Python 2.7)?

I am on Debian 9 and using Kopano-Version 8.7.80.465-Debian_9.0-amd64. Users and Mailaccounts are imported via LDAP from ActiveDirectory.

Any help appreciated. Thanks in advance.
Chris

ah, so the ‘ConfigParser’ module was renamed to ‘configparser’ with python3. I made an internal PR to fix this, and some other python3 issues… we will update here once it’s tested and merged.

ok, thank you. I have tried to import “configparser” in zconfig.py, but it then throws different exceptions … Looking forward for the updated version … Thanks

Just for your information:
I have merged your changes from: https://github.com/Kopano-dev/kopano-core/commit/33841d2aaaf09403d1d8442ef124738b1c3d767f
to /usr/share/kopano-dagent/python/zconfig.py and /usr/share/kopano-spooler/python/zconfig.py
and now I am getting another exception:

Jan 15 13:32:06 office kopano-dagent[11105]: !-- error: in method ‘IMAPIFolder_CreateFolder’, argument 3 of type ‘LPTSTR’
Jan 15 13:32:06 office kopano-dagent[11105]: !- Plugin ‘MoveToPublic.PreDelivery’ call ignored please check the plugin