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

    object from type SyncMail: parameter 'cc' is longer than 32768.

    Z-Push when using Kopano
    2
    4
    1159
    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.
    • Coffee_is_life
      Coffee_is_life last edited by

      Good morning Forum,

      i’ve got some message with absurd amounts of cc-address.
      dont know why someone want to use so many cc users, but wayne :)

      In Z-Push-Admin these messages are shown as “attention needed” with error:

      Reason:  SyncObject->Check(): object from type SyncMail: parameter 'cc' is longer than 32768. Check failed (4)
      

      There are 824 cc-Adresse in this message… 46549 Characters.

      Is there a way to sync them aswell - because my script which checks the “attention needed” status every morning is tilting me -.-

      Coffee_is_life

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

        This is then outside the ActiveSync specification and that’s why it’s blocked.

        You could overwrite this value in /src/lib/syncobjects/syncmail.php around line 81 and fill in a higher value:

        SYNC_POOMMAIL_CC => 
        array (  self::STREAMER_VAR      => "cc",
                        self::STREAMER_TYPE     => self::STREAMER_TYPE_COMMA_SEPARATED,
                        self::STREAMER_CHECKS   => array( 
                                self::STREAMER_CHECK_LENGTHMAX      => 32768,
                                self::STREAMER_CHECK_EMAIL        => "" )),
        
        

        And resync the folder to get these mails fixed.
        Still, this change is not upgrade safe so you have to apply it again after every upgrade o Z-Push.

        It’s also unclear what your clients will do. It could be that they can’t process these messages and that they are still not synchronized, but catched by the loop detection.

        Then still, this is a corner case. I would say it’s “not good practice” to send emails with 820 emails in CC.

        Cheers,
        Sebastian

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

          @Sebastian,

          thanks for your quick reply… sure its “not a good practise” and like i wrote, im not sure why someone want to have so many cc’s :)

          i will try the change and reply with the client-result

          PS: this user is currently not available, so i will reply on monday

          Coffee_is_life

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

            Well, you need to understand that what you want/like is not always possible. This spec is written by Microsoft and we have to follow the spec for compatibility.
            They surely believed “no one will ever do this”, but we know, technicians like to be proved wrong by users… ;)

            Please also understand that several people of these 820 recipients could not see your email because their email clients could/will also not handle this.
            Insisting in doing it might be “OK for you”, but be aware that people could actually not get your message.

            What I mean is, just understand this is not a bug but your choice.

            Cheers,
            Sebastian

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