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

    Kopano web as default mail client for OS/mailto etc

    Kopano WebApp
    3
    8
    823
    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.
    • Constin
      Constin last edited by

      Hello , i’d like to configure my Os (Linux/Macos) to use Web Browser (Safari/Firefox) as default application for links mailto and for menu send it to etc. It possible.

      But i need teach broiwser to open these links in Kopano web. For this i need special Kopano link to send email. For example same link for gmail is: https://mail.google.com/mail/?extsrc=mailto&url=%s

      Is it possible for Kopano Web?

      SJr 1 Reply Last reply Reply Quote 0
      • bhuisman
        bhuisman last edited by

        @Constin using DeskApp would probably be the easiest solution in that case - it basically provides additional features on top of WebApp (such as being configurable as the default mail handler), among some other things (e.g. being able to open local .eml files in DeskApp).

        Regards, Bob

        Need support?
        Have a look at https://kopano.com/support/ for options.

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

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

          is it only proxy for web interface? If it not store emails to disk . then this is perfect solution for me. thx!

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

            @Constin DeskApp does not store your data locally. It has a local cache much like your browser would have, but that is it.

            Regards, Bob

            Need support?
            Have a look at https://kopano.com/support/ for options.

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

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

              Thank you, i tested it and it works fine. I hate java apps ion desktops , but … it’s ok.

              Could pls you give me link to any old/test deb package? I don’t understand how to handle mailto in x-scheme-handler. I’d like to see what kopano team made for this in pre/post scripts.

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

                ok solved.

                but not support linux SSO.

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

                  @Constin DeskApp is not a Java app, but instead based on NW.js (previously node-webkit, which in turn is based on Chromium). The community download server holds the most recent nightly builds, including .deb packages (inside the tarballs): https://download.kopano.io/community/deskapp:/.

                  Regards, Bob

                  Need support?
                  Have a look at https://kopano.com/support/ for options.

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

                  1 Reply Last reply Reply Quote 0
                  • SJr
                    SJr @Constin last edited by

                    Sorry for the necro-post this just seemed to be the best link to store how to achieve this, as I had this set up years ago, and then was annoyed with it not working so dug into it and found this link.

                    Zarafa Webaccess use to support this and there are some instructions online for various operating systems: https://doc.zarafa.com/7.1/User_Manual/en-US/html/_advanced_zarafa_webaccess_configurations.html

                    You can essentially open kopano with a link like:

                    I tried today with Kopano (although an old version), and it unfortunately has a small bug. In particular the sending address does not work or get copied over, although if you have a subject in the link the subject copies.

                    So you can open the browser with something like:

                    firefox “http://<SERVER>/<USER>/webaccess/index.php?action=mailto&to=$ADDRESS&subject=$SUBJECT”

                    The address is ignored (although if you specify cc instead of to it works). I dug into the code a little bit and my guess was that the encoding was wrong as it stores the data in a session variable as “<EMAIL>&subject=<SUBJECT>&cc=<EMAIL>”, so I changed

                            function storeURLDataToSession()
                            {
                                    $data = array();
                    
                                    $urlData = urldecode($_SERVER['QUERY_STRING']);
                                    if(!empty($_GET['action']) && $_GET['action'] === 'mailto') {
                                            $data['mailto'] = $_GET['to'];
                    
                                            // There may be some data after to field, like cc, subject, body
                                            // So add them in the urlData string aswell
                                            $pos = stripos($urlData, $_GET['to']) + strlen($_GET['to']);
                                            $subString = substr($urlData, $pos);
                                            $data['mailto'] .= $subString;
                                    }
                    
                                    if(!empty($data)) {
                                            // finally store all data to session
                                            $_SESSION['url_action'] = $data;
                                    }
                            }
                    

                    to

                           function storeURLDataToSession()
                            {
                                    $data = array();
                    
                                    $urlData = urldecode($_SERVER['QUERY_STRING']);
                                    if(!empty($_GET['action']) && $_GET['action'] === 'mailto') {
                                            $data['mailto'] = "to=" . $_GET['to'];
                    
                                            // There may be some data after to field, like cc, subject, body
                                            // So add them in the urlData string aswell
                                            $pos = stripos($urlData, $_GET['to']) + strlen($_GET['to']);
                                            $subString = substr($urlData, $pos);
                                            $data['mailto'] .= $subString;
                                    }
                    
                                    if(!empty($data)) {
                                            // finally store all data to session
                                            $_SESSION['url_action'] = $data;
                                    }
                            }
                    

                    And then tried again and it seemed to work for me.

                    It’s very possible that this breaks something else, so YMMV.

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