Some of my users don't delete their old email. After some googling I found the cyrus command ipurge
simply add the code below to the EVENTS section of /etc/kolab/templates/cyrus.conf.template and run kolabconf
It will scan each users folder for Deleted Items, Trash, and Spam, then delete email older then 7 days in those folders every 24hrs.
If you replace * with a username ie: 'john' it will only scan that users folder.
period is the interval time in minutes 1140 minutes = 1 day
# Delete Old Email.
delitems cmd="ipurge -X -d 7 -f 'user/*/Deleted Items@yourdomain.xyz'" period=1440
deltrash cmd="ipurge -X -d 7 -f 'user/*/Trash@yourdomain.xyz'" period=1440
delspam cmd="ipurge -X -d 7 -f 'user/*/spam@yourdomain.xyz'" period=1440