RewriteGALAddressesToSMTP on Kopano Core 8.7 trows errors
-
Hello,
I used this plugin https://notabug.org/hp/kopano-dagent-rewritegaladdresses since one year from now without any problems, but with kopano core 8.7 I noticed following messages within dagend.log:
(Btw. BMP2PNG seems to be broken, too)Wed Jan 30 13:58:52 2019: [error ] !-- error: initial_value must be str or None, not int Wed Jan 30 13:58:52 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin Wed Jan 30 14:04:54 2019: [error ] !-- failed to load: /var/lib/kopano/dagent/plugins/BMP2PNG.py Wed Jan 30 14:04:54 2019: [error ] !-- error: No module named 'StringIO' Wed Jan 30 14:04:54 2019: [error ] !-- error: initial_value must be str or None, not bytes Wed Jan 30 14:04:54 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin Wed Jan 30 14:06:16 2019: [error ] !-- failed to load: /var/lib/kopano/dagent/plugins/BMP2PNG.py Wed Jan 30 14:06:16 2019: [error ] !-- error: No module named 'StringIO' Wed Jan 30 14:06:16 2019: [error ] !-- error: initial_value must be str or None, not bytes Wed Jan 30 14:06:16 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin Wed Jan 30 14:11:41 2019: [error ] !-- failed to load: /var/lib/kopano/dagent/plugins/BMP2PNG.py Wed Jan 30 14:11:41 2019: [error ] !-- error: No module named 'StringIO' Wed Jan 30 14:11:41 2019: [error ] !-- error: initial_value must be str or None, not bytes Wed Jan 30 14:11:41 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin Wed Jan 30 14:15:29 2019: [error ] !-- failed to load: /var/lib/kopano/dagent/plugins/BMP2PNG.py Wed Jan 30 14:15:29 2019: [error ] !-- error: No module named 'StringIO' Wed Jan 30 14:15:29 2019: [error ] !-- error: initial_value must be str or None, not bytes Wed Jan 30 14:15:29 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin Wed Jan 30 14:19:48 2019: [error ] !-- failed to load: /var/lib/kopano/dagent/plugins/BMP2PNG.py Wed Jan 30 14:19:48 2019: [error ] !-- error: No module named 'StringIO' Wed Jan 30 14:19:48 2019: [error ] !-- error: initial_value must be str or None, not bytes Wed Jan 30 14:19:48 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin Wed Jan 30 14:21:41 2019: [error ] !-- failed to load: /var/lib/kopano/dagent/plugins/BMP2PNG.py Wed Jan 30 14:21:41 2019: [error ] !-- error: No module named 'StringIO' Wed Jan 30 14:21:41 2019: [error ] !-- error: initial_value must be str or None, not bytes Wed Jan 30 14:21:41 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin Wed Jan 30 14:38:04 2019: [error ] !-- failed to load: /var/lib/kopano/dagent/plugins/BMP2PNG.py Wed Jan 30 14:38:04 2019: [error ] !-- error: No module named 'StringIO' Wed Jan 30 14:38:04 2019: [error ] !-- error: initial_value must be str or None, not bytes Wed Jan 30 14:38:04 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin
Is there anything I can do to fix these issues?
Christian.
-
StringIO module is gone in Python 3 and has been replaced with the io module, from whence io.StringIO should be imported.
This just what i found.
in
/var/lib/kopano/dagent/plugins/BMP2PNG.py
you wil see : from io import StringIOand thats the problem.
I just dont know the replacing module.
-
This problem has already been fixed in Git.
See https://stash.kopano.io/projects/KC/repos/kopanocore/commits/244437c32e92c186a2c97125c0bcc8f6ad75e340 commit for details on the required Python 3 compatibility for some spooler plugins.
Third party plugins and scripts also need to be made compatible with Python 3 since Kopano 8.7 runs spooler with Python 3 on all platforms which have Python 3 in their default repositories.
-
I updated the BMP2PNG plugin to the latest version, but still can see errors in the log file.
Does someone have any idea how to fix the RewriteGAL… error as well?Tue Apr 16 09:04:19 2019: [error ] !-- error: name 'long' is not defined Tue Apr 16 09:04:19 2019: [error ] !- Plugin 'BMP2PNG.PostConverting' call ignored please check the plugin Tue Apr 16 09:04:19 2019: [error ] !-- error: initial_value must be str or None, not bytes Tue Apr 16 09:04:19 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin
-
Hey @fbartels ,
would it be possible to update your fork on
https://git.9wd.eu/felix/kopano-dagent-rewritegaladdresses
to Python3 to make it usable for Kopano 8.7.x and upwards?I don’t know what I’d have to do, or I’d provide a patch.
With best regards,
Christian Frey. -
Hi @onex-de,
I am just mirroring the repo there so that it does not vanish from the internet at some point, have actually never used that plugin myself.
Since its a third party project we (as Kopano) cannot give any guarantees for it, but if you cannot fix it yourself it could be worthwhile getting in touch with our support, maybe they can do some custom development for it (not sure if its a big amount of work to make that plugin work again, but I would not guess so).
-
Hey there,
as there seems to be no solution for the rewrite address problem yet, I thought I’d bring it up again.
Also I am no good at python and haven’t written any code for a long time now, i found some problems with Kopano Core 8.7 or rather python 3.As it seems there are also some changes made to the python mapi module, that is in use.
Unfortunately there is still an error:
Wed Oct 9 11:28:22 2019: [info ] * PreDelivery processing started Wed Oct 9 11:28:22 2019: [info ] ** Plugin 'RewriteGALAddressesToSMTP.PreDelivery' priority (9999) Wed Oct 9 11:28:22 2019: [error ] !-- error: bad argument type for built-in operation Wed Oct 9 11:28:22 2019: [error ] !- Plugin 'RewriteGALAddressesToSMTP.PreDelivery' call ignored please check the plugin Wed Oct 9 11:28:22 2019: [info ] * PreDelivery processing done
Is it somehow possible to get a line number in the debug log? I changed debug level from 3 to 6 but still no further details.
Also a more detailed documentation about expected data types or a test description for the plugin would be most helpful.Thx
Rene -
Are there any updates for a Fix of the Plugin?
Markus