#!/bin/sh # 07/06/07 - Jake # This script will install the qtp-clean-trash hourly cron job, which will # delete messages found in a user's Trash folder that are more than 5 days old. # The 5-day old option can be changed by modifiying a variable in the script. qtp=/opt/qmailtoaster-plus cron_loc=/etc/cron.hourly # copy the file to the $cron_loc folder (/etc/cron.hourly) echo "" echo "" echo "Setting up an hourly cron to remove messages in Trash folders." echo "Please adjust /etc/cron.hourly if you want the messages to hang around" echo "longer than 5 days (default)." cp $qtp/etc/cron.hourly/qtp-clean-trash $cron_loc