You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dirk Köhler 25001f3211 first commit 3 years ago
README.md first commit 3 years ago
kopano-cleanup.py first commit 3 years ago

README.md

kopano-cleanup

The following scripts allow you to automatically delete or archive all items older than x days in a users Junk E-mail and Deleted Items folder.

Parameters

  -f NAME, --folder=NAME             Specify folder
  --user=USER                        Run script for user
  --wastebasket                      Run cleanup script for the wastebasket
                                     folder
  --archive=ARCHIVE                  instead of removing items archive them
                                     into this folder
  --junk                             Run cleanup script for the junk folder
  --force                            Force items without date to be removed
  --days=DAYS                        Delete older then x days
  --verbose                          Verbose mode
  --dry-run                          Run script in dry mode
  --progressbar                      Show progressbar

Usage

delete

python cleanup.py --user username --junk --wastebasket --days days   

archive

python cleanup.py --user username --junk --wastebasket --days days  --archive foldername