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

    Folder "Deleted items" has disappeared

    Kopano Groupware Core
    3
    8
    665
    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.
    • stan23
      stan23 last edited by

      Hi,

      for quite some time (i.e. before I migrated from Zarafa 7.2.4 to Kopano 10.0.6.502) for one of my users (my wife, to be exact) the folder Deleted items has disappeared.

      Now she obviously cannot delete mails anymore, neither in the WebApp nor through z-push.

      This message appears in WebApp:

      Missing folders
      The following required folder is missing in the hierarchy:
      Deleted items
      Not all functionality of WebApp might be working properly because of this.

      Is there any way to restore this functionality?

      Regards
      Marco

      externa1 1 Reply Last reply Reply Quote 0
      • externa1
        externa1 @stan23 last edited by

        @stan23

        kopano-recreate-systemfolders --user ‘username’ --create “Deleted Items” --systemfolder wastebasket

        rg
        Christian

        stan23 1 Reply Last reply Reply Quote 1
        • stan23
          stan23 @externa1 last edited by

          @externa1
          Thanks Christian, but I get an error message when I call kopano-recreate-systemfolders:

          root@myServer:~# kopano-recreate-systemfolders
          Traceback (most recent call last):
            File "/usr/sbin/kopano-recreate-systemfolders", line 8, in <module>
              from MAPI import KEEP_OPEN_READWRITE, MAPIErrorCollision
          ImportError: cannot import name 'MAPIErrorCollision' from 'MAPI' (/usr/lib/python3/dist-packages/MAPI/__init__.py)
          
          root@myServer:~# kopano-recreate-systemfolders --help
          Traceback (most recent call last):
            File "/usr/sbin/kopano-recreate-systemfolders", line 8, in <module>
              from MAPI import KEEP_OPEN_READWRITE, MAPIErrorCollision
          ImportError: cannot import name 'MAPIErrorCollision' from 'MAPI' (/usr/lib/python3/dist-packages/MAPI/__init__.py)
          
          root@myServer:~# kopano-recreate-systemfolders --user 'myUser' --create "Deleted Items" --systemfolder wastebasket
          Traceback (most recent call last):
            File "/usr/sbin/kopano-recreate-systemfolders", line 8, in <module>
              from MAPI import KEEP_OPEN_READWRITE, MAPIErrorCollision
          ImportError: cannot import name 'MAPIErrorCollision' from 'MAPI' (/usr/lib/python3/dist-packages/MAPI/__init__.py)
          

          Do I need to call this from a certain path?

          My packets, installed using https://github.com/thctlo/Kopano

          # dpkg -l 
          ii  kopano-backup                 10.0.6.502.8b8baeb2a-0+275.1        amd64        Utility to back up and restore Kopano stores
          ii  kopano-client                 10.0.6.502.8b8baeb2a-0+297.1        amd64        Kopano MAPI provider library
          ii  kopano-common                 10.0.6.502.8b8baeb2a-0+297.1        amd64        Shared files for Kopano services
          ii  kopano-dagent                 10.0.6.502.8b8baeb2a-0+297.1        amd64        E-Mail Delivery Agent for Kopano Core
          ii  kopano-dagent-pytils          10.0.6.502.8b8baeb2a-0+275.1        amd64        Additional message handlers for kopano-dagent
          ii  kopano-gateway                10.0.6.502.8b8baeb2a-0+297.1        amd64        POP3 and IMAP Gateway for Kopano Core
          ii  kopano-ical                   10.0.6.502.8b8baeb2a-0+297.1        amd64        ICal and CalDAV Gateway for Kopano Core
          ii  kopano-lang                   10.0.6.502.8b8baeb2a-0+297.1        all          Translations for Kopano Core components
          ii  kopano-monitor                10.0.6.502.8b8baeb2a-0+297.1        amd64        Quota Monitor for Kopano Core
          ii  kopano-python-utils           10.0.6.502.8b8baeb2a-0+275.1        amd64        Additional Python-based command-line utils for Kopano Core
          ii  kopano-search                 10.0.6.502.8b8baeb2a-0+275.1        amd64        Indexed search engine for Kopano Core
          ii  kopano-server                 10.0.6.502.8b8baeb2a-0+297.1        amd64        Server component for Kopano Core
          ii  kopano-server-packages        10.0.6.502.8b8baeb2a-0+297.1        all          Metapackage to install the entire Kopano Core stack
          ii  kopano-spooler                10.0.6.502.8b8baeb2a-0+297.1        amd64        E-mail Spooler for Kopano Core
          ii  kopano-webapp                 5.0.0.30+1914.1                     all          New and improved WebApp for Kopano
          ii  libgsoap-kopano-2.8.102       2.8.102-0+1.3                       amd64        Runtime libraries for gSOAP
          ii  libkcicalmapi0                10.0.6.502.8b8baeb2a-0+297.1        amd64        iCal interface for MAPI
          ii  libkcinetmapi0                10.0.6.502.8b8baeb2a-0+297.1        amd64        Interface between internet e-mail and MAPI
          ii  libmapi1                      10.0.6.502.8b8baeb2a-0+297.1        amd64        Kopano's implementation of the Messaging API
          ii  libvmime-kopano3              0.9.2.96+3.8                        amd64        Library for working with MIME messages and IMAP/POP/SMTP
          ii  php7-mapi                     10.0.6.502.8b8baeb2a-0+297.1        amd64        PHP bindings for MAPI
          ii  python3-kopano                10.0.6.502.8b8baeb2a-0+275.1        all          High-level Python 3 bindings for Kopano
          ii  python3-kopano-search         10.0.6.502.8b8baeb2a-0+275.1        all          Kopano search module for Python 3
          ii  python3-kopano-utils          10.0.6.502.8b8baeb2a-0+275.1        all          Kopano utils modules for Python 3
          ii  python3-mapi                  10.0.6.502.8b8baeb2a-0+297.1        amd64        Python 3 bindings for MAPI
          ii  z-push-backend-kopano         2.6.0+0-0                           all          Z-Push Kopano backend
          ii  z-push-kopano                 2.6.0+0-0                           all          Z-Push for Kopano
          
          1 Reply Last reply Reply Quote 0
          • stan23
            stan23 last edited by

            Okay, I changed line 8 of file /usr/sbin/kopano-recreate-systemfolders from

            from MAPI import KEEP_OPEN_READWRITE, MAPIErrorCollision
            

            to

            from MAPI import KEEP_OPEN_READWRITE
            

            and the script worked fine.

            Thanks a lot!

            mcostan 1 Reply Last reply Reply Quote 1
            • mcostan
              mcostan @stan23 last edited by

              @stan23

              I have tried running it and removing MAPIErrorCollision as above but I get the following whether I run it as root or as any username as below

              Am I doing something wrong?

              gabriele@mrc-ubz64:~$ ./kopano-recreate-system-folders.py  --user gabriele
              Traceback (most recent call last):
                File "./kopano-recreate-system-folders.py", line 111, in <module>
                  main()
                File "./kopano-recreate-system-folders.py", line 43, in main
                  user = kopano.server(options).user(options.user)
              TypeError: 'module' object is not callable
              gabriele@mrc-ubz64:~$ 
              
              stan23 1 Reply Last reply Reply Quote 0
              • stan23
                stan23 @mcostan last edited by

                @mcostan said in Folder "Deleted items" has disappeared:

                I have tried running it and removing MAPIErrorCollision as above but I get the following whether I run it as root or as any username as below

                My error was a bit different as you can see above.
                Did you modify the file in line 8 or not?

                mcostan 1 Reply Last reply Reply Quote 0
                • mcostan
                  mcostan @stan23 last edited by

                  @stan23

                  Yes I did, I modified it this way:

                  from MAPI import KEEP_OPEN_READWRITE

                  By removing , MAPIErrorCollision

                  Then I get the following error…

                  stan23 1 Reply Last reply Reply Quote 0
                  • stan23
                    stan23 @mcostan last edited by

                    @mcostan
                    There’s one thing that is different for me:
                    on my installation the script does not have any file ending and is located here:

                    root@myServer:~# ls -la /usr/sbin/kopano-recreate-systemfolders
                    -rwxr-xr-x 1 root root 4518 Oct  9 12:10 /usr/sbin/kopano-recreate-systemfolders
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post