Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent

    SOLVED Prompt of Kopano WebApp to add itself to mail-links appears every reload even if someone don't want it

    Kopano WebApp
    maillink webapp
    3
    7
    945
    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.
    • cmks
      cmks last edited by

      Dear,

      a prompt of Kopano WebApp to add itself to mail-links of the browser appears every reload/login even if someone don’t want it. There is no was do disable this prompt - that’s annoying.

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

        @cmks You can use this plugin: https://github.com/MartyJustice/disablemailto

        Just clone it into /usr/share/kopano-webapp/plugins/
        and relog.
        It should appear in your plugin list.

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

          OS?
          Version Webapp?
          Browser?

          cmks 1 Reply Last reply Reply Quote 0
          • cmks
            cmks @umgfoin last edited by

            @umgfoin
            Firefox 57.0.1 @ Ubuntu 16.04.3 LTS
            Firefox 57.0.1 @ Windows 10 Pro
            WebApp 3.4.1.1061+35.1

            If you accept the query it will not shown again. But if not, it comes up every login.

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

              Here working as exspected:

              Firefox 52.5.1@ CentOS6.9
              Chromium 63.0.3239.84@Win7x64
              and other browsers on MacOS 10.11.x & 10.12.x

              WebApp git-master 3.4.3.1110

              [hias@beppe]# firefox
              ...
              *** registerProtocolHandler(mailto,https://mebwail.tadao.ando.de/index.php?action=mailto&to=%s,Kopano WebApp)
              
              [hias@beppe]# firefox --version
              Mozilla Firefox 52.5.1
              
              

              I can’t recognize atypical code here in client/zarafa/Zarafa.js .

              Did you ever try to manually register a control-handler on affected systems?
              Example:

              • Navigate to your webapp-login-page
              • With input-focus on your browser open a Javascript-console-window ( for WIN press [CTRL] + [SHIFT] + J )
              • Enter here:
              Ext.isFunction(navigator.isProtocolHandlerRegistered);
              navigator.registerProtocolHandler('mailto','url-to-your-webapp/index.php?action=mailto&to=%s,', 'Kopano WebApp');
              Ext.isFunction(navigator.isProtocolHandlerRegistered);
              
              • report back results

              ++umgfoin.

              cmks 1 Reply Last reply Reply Quote 0
              • cmks
                cmks @umgfoin last edited by

                @umgfoin We don’t want to register the service and we dont want to be prompted therefor every time we login.

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

                  In that case a plugin which overwrite the function would be more suitable for you.

                  The mailTo is described here:
                  https://stash.kopano.io/projects/KW/repos/kopano-webapp/browse/client/zarafa/Zarafa.js#698

                  Overwriting it can be done with something like:

                  Zarafa.registerMailto = Ext.emptyFn;
                  

                  Should work if you put it in initPlugin

                  initPlugin : function() {
                  }
                  

                  Take a look at some of our plugins in stash how it’s build up.

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

                    @cmks You can use this plugin: https://github.com/MartyJustice/disablemailto

                    Just clone it into /usr/share/kopano-webapp/plugins/
                    and relog.
                    It should appear in your plugin list.

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