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

    Wrong indication of read/unread messages

    Kopano Groupware Core
    4
    25
    2074
    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.
    • fbartels
      fbartels Kopano last edited by

      Hi @afischer,

      I have just now uploaded the same build that we run internally to https://download.kopano.io/supported/core:/pre-final/
      This has a “fix” for emails being truncated after searching for them. the downside of this change is that even though these emails are not truncated any longer, they will only load as plain text.
      at least on my test system I was still able to observe the mails being shown as unread and up until know I am still missing information to reproduce the missing webapp settings, so this is probably still in there as well.

      @genesis74 you steps seem a bit overkill to me. What I could observe (since I have my WebApp usually instructed to not automatically mark mails as read) is that when WebApp prefetches the message or when I click on the message it turns to read. meaning that the message are actually stored as read on the database only that webapp does not realise it at first.

      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/

      genesis74 2 Replies Last reply Reply Quote 0
      • afischer
        afischer last edited by

        Hello Felix,
        Hm, we did not notice the problem you fixed. (truncated emails)
        Our users, especially my boss, get impatient due to the bug of unread messages. I don’t want to install a beta-version with potentially new bugs, in which this annoying bug still exist.
        But you don’t answer my question if there is a way to downgrade to 8.6.9
        Best regards,
        Achim

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

          @afischer said in Wrong indication of read/unread messages:

          But you don’t answer my question if there is a way to downgrade to 8.6.9

          I have not tested this myself, but our support has some experience in this area. I’d recommend to talk to then.

          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
          • genesis74
            genesis74 @fbartels last edited by

            Hi @fbartels,

            I am not sure about your last sentence. Because it seems to me that this is the point - message state “read” is not stored in the database because after logging out of WebApp and logging back in (see my first post) or after restarting kopano-server messages that had already been flagged as read are marked as unread again.

            By using IMAP as a second way to accessing the database I experienced that some of those messages appear as unread also in my IMAP client after doing the kopano-admin --reset-folder-count step. It made me believe that the “read”-state might have been written to the cache but not to the database (assuming WebApp and kopano-gateway/IMAP are not using the same cache or at least not in the same way).

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

              Hi @fbartels ,

              my observation is as described in my first post. Especially after restarting kopano-server the unread-flagged messages turn up again. But sometimes also after logging out of WebApp and logging back in. The number of unread messages in the folder is then often inconsistent with the number shown next to the folder name. And all this is inconsistent with what I see if I use an IMAP-client. The only way I found to get this into line is what I described in my last post - yes, it looks like overkill, but it was the only solution I could find.

              By the way - reading your last sentence I am a little bit in doubt if the database is updated correctly when marking those emails as read. In that case, clearing the cache should solve the problem completely, shouldn’t it? It seems to me as if the problem is that sometimes the new state of the read/unread flag is only saved to the cache but not the database …

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

                @genesis74 said in Wrong indication of read/unread messages:

                I am a little bit in doubt if the database is updated correctly when marking those emails as read

                yes, that is the current theory. we have multiple tables with similar data (e.g. properties, mvproperties, tproperties) there seems to me a mismatch there.

                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
                • 8GM-DK
                  8GM-DK last edited by

                  Adding my voice here to confirm that the issue is also affecting us as well as (at least) one of our customers. We tried updating to the latest (ubuntu) final (core, webapp, z-push…) but it did not help.

                  1 Reply Last reply Reply Quote 0
                  • 8GM-DK
                    8GM-DK last edited by

                    FYI: We could fix the issue with

                    kopano-admin --reset-folder-count $USER
                    

                    It seems the cache is confused, and just clearing it did not help. This command updated the folders correctly.

                    fbartels 1 Reply Last reply Reply Quote 0
                    • fbartels
                      fbartels Kopano @8GM-DK last edited by

                      Hi @8GM-DK,

                      the above issue was addressed with the 8.7.1 release. please make sure to read the text above the changelog at https://documentation.kopano.io/kopano_changelog/kc.html#kopano-core-8-7-1-final-8-7-1-0 for further instructions.

                      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
                      • 8GM-DK
                        8GM-DK last edited by

                        root@mail:~# kopano-dbadm kc-1444
                        Tue Jul  2 13:03:07 2019: [notice ] kc-1444: updating tproperties...
                        Tue Jul  2 13:05:13 2019: [notice ] kc-1444: updated 136 rows.
                        root@mail:~# kopano-admin --clear-cache=0x0020
                        The selected option is deprecated in this utility.
                        Forwarding call to: `kopano-srvadm --clear-cache cell`.
                        Error reading config file /etc/kopano/admin.cfg
                        [crit   ] Config error: Cannot normalize path "/etc/kopano/admin.cfg": No such file or directory
                        
                        

                        Hey @fbartels , ty for the information. The above happened when I tried to follow the instructions used in the changelog. I don’t seem to have a “admin.cfg”?

                        1 Reply Last reply Reply Quote 0
                        • 8GM-DK
                          8GM-DK last edited by

                          I could remedy the situation by a simple

                          touch /etc/kopano/admin.cfg
                          

                          Now the cache was cleared and it seems everything works as expected.

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