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

    kopano-cleanup.py with subfolders

    Scripting
    2
    2
    409
    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.
    • torsten17
      torsten17 last edited by torsten17

      Hello,

      at my kopano server some users dropped subfolders into the wastebasket. These subfolders wasn’t cleaned up by the tool kopano-cleanup.py.

      I added two new options to the script:

      –recursive
      walk through subfolders recursively and delete all items, which are older then xx days. If a subfolder is empty, it is deleted completely. This option doesn’t work together with option –archive.

      –sent
      delete items from the “sent” folder

      Perhaps you’ll find my extension usesfull and push it into bitbucket (i have no user to create a pull request). Here is a link to my branch: https://github.com/bi-tm/kopano-cleanup

      Regards
      Torsten

      heiko 1 Reply Last reply Reply Quote 2
      • heiko
        heiko @torsten17 last edited by

        @torsten17
        Many thanks for your script. I love it.

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