Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    RewriteGALAddressesToSMTP on Kopano Core 8.7 trows errors

    Kopano Groupware Core
    6
    8
    1022
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • onex.de
      onex.de last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • thctlo
        thctlo last edited by

        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 StringIO

        and thats the problem.

        I just dont know the replacing module.

        1 Reply Last reply Reply Quote 0
        • longsleep
          longsleep Kopano last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • onex.de
            onex.de last edited by

            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
            
            1 Reply Last reply Reply Quote 0
            • onex.de
              onex.de last edited by

              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.

              fbartels 1 Reply Last reply Reply Quote 0
              • fbartels
                fbartels Kopano @onex.de last edited by

                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).

                Regards Felix

                Resources:
                https://kopano.com/blog/how-to-get-kopano/
                https://documentation.kopano.io/
                https://kb.kopano.io/

                Support overview:
                https://kopano.com/support/

                1 Reply Last reply Reply Quote 0
                • deepc2020
                  deepc2020 last edited by

                  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.

                  https://github.com/deepc2020/kopano-dagent-rewritegaladdresses/blob/master/RewriteGALAddressesToSMTP.py

                  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

                  1 Reply Last reply Reply Quote 0
                  • mnewman
                    mnewman last edited by

                    Are there any updates for a Fix of the Plugin?

                    Markus

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post