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

    Send email via Z-Push exposure the cc/bcc address into To field

    Synchronising (mobile) devices via Z-Push
    3
    10
    1848
    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.
    • trongnghia203
      trongnghia203 last edited by fbartels

      Dear all friend,

      I have successfully installed Z-Push 2.4 on Ubuntu 16.04 Server. It’s working well, and it can also sign-in Active Sync on iPhone, MS Outlook Windows.

      But I found the problem when sending email via iPhone or MS Outlook
      for example:
      Compose email:
      To: userA (at anydomain)
      CC: userB (at anydomain)
      BCC: userC (at anydomain)

      All sending, and receiving is working very well, but the email show all userA, userB, userC in To field of email.

      View Source:

      To: **userA**, **userB**, **userC**
      Subject: Stephen Hawking =?UTF-8?B?TOG6p24gNQ==?=
      X-PHP-Originating-Script: 0:mail.php
      Mime-Version: 1.0
      From: **userA**
      Cc: **userB**
      Date: Thu, 15 Mar 2018 14:05:36 +0700
      Message-id: <001f01d3bc2c$04da13a0$0e8e3ae0$@lcl.infotechviet.com>
      X-mailer: Microsoft Outlook 15.0
      Thread-index: AdO8LAP6QbmSWoBmTz+JQlFUePe6Cg==
      Content-language: en-us
      Content-Type: multipart/mixed;
       boundary="=_654603df34b930fe0c8bca893f044f94"
      
      This is a multi-part message in MIME format.
      --=_654603df34b930fe0c8bca893f044f94
      Content-Type: multipart/alternative;
       boundary="=_735cd54a1af52735039576c7e84ecc3c"
      
      --=_735cd54a1af52735039576c7e84ecc3c
      Content-Transfer-Encoding: base64
      Content-Type: text/plain; charset=utf-8
      

      It’s normally working when sending email via webmail, or MS Outlook with IMAP, and ThunderBird with IMAP.
      Could anyone has the same problem?

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

        Hi @trongnghia203 ,

        which backend are you using with Z-Push. Is my guess correct that you are using the imap backend?

        I just gave this a try with the Kopano backend and here only the actual recipient was included in the To line in the raw email. Recipients that are in CC or BCC are not shown in this line.

        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/

        trongnghia203 1 Reply Last reply Reply Quote 0
        • trongnghia203
          trongnghia203 @fbartels last edited by

          Hi @fbartels ,

          Thank you so much for your very quick response.
          And yes, I do use the BackendIMAP. Could you please give more advice for this…


          Regards,
          Nghia

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

            Hi @trongnghia203 ,

            sorry I am not really familiar with that backend. I did see https://stash.z-hub.io/projects/ZP/repos/z-push/browse/src/backend/imap/Mail/mail.php#151-153 in the code, which makes it seem like the mail() function of php is the culprit here.

            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/

            trongnghia203 1 Reply Last reply Reply Quote 0
            • trongnghia203
              trongnghia203 @fbartels last edited by trongnghia203

              I hope someone will have the solution. Anyway, thank you very much, @fbartels … for reviewing my case.


              Regards,
              Nghia

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

                Hi Nghia,

                actually the IMAP backend puts all the recipients together: https://stash.z-hub.io/projects/ZP/repos/z-push/browse/src/backend/imap/imap.php#2488-2498. This code was contributed by Francisco who made a lot of improvements and contributions to the IMAP backend, but I don’t know what was the reason doing it so.

                Unfortunately as far as I know he’s not working on Z-Push contributions anymore. However you could try to contact him e.g. on github: https://github.com/fmbiete/Z-Push-contrib.

                Manfred

                trongnghia203 1 Reply Last reply Reply Quote 0
                • trongnghia203
                  trongnghia203 @Manfred last edited by

                  Hi @manfred ,

                  That is really a helpful information. Let me check it out. Not sure what could be done for this case. Maybe I need to change the Email Backend or find another solution for ActiveSync. Do you have any idea for that?

                  Thank you very much, @manfred!


                  Nghia

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

                    Hi Nghia,

                    you could test different values for IMAP_SMTP_METHOD. If it’s the same regardless the IMAP_SMTP_METHOD then it should be changed in the IMAP backend. If you have PHP knowledge and would like to contribute a fix, we’ll gladly review it. There is a wiki page explaining how to contribute: https://wiki.z-hub.io/display/ZP/Development+guidelines.

                    Manfred

                    trongnghia203 1 Reply Last reply Reply Quote 0
                    • trongnghia203
                      trongnghia203 @Manfred last edited by

                      Hi @manfred ,

                      Indeed, I just started learning the Python language. But I will try to get understood it as possible.

                      Thank you @Manfred , wish you have a great week.


                      Nghia

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

                        Hi Nghia,

                        learning Python is of course very useful, but Z-Push is written in PHP, so Python knowledge will only be somewhat helpful.
                        Have a great week too.

                        Manfred

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