Folder "Deleted items" has disappeared


  • 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


  • @stan23

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

    rg
    Christian


  • @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
    

  • 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!