#!/bin/sh # 06/27/07 - Jake # This script will install the qtp-clean-spam hourly cron job, which will sa-learn # and then delete spam found in a user's Spam folder that is 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 spam messages." echo "Please adjust $cron_loc if you want the messages to hang around" echo "longer than 5 days (default)" cp $qtp/etc/cron.hourly/qtp-clean-spam $cron_loc