File cron.clamsmtp of Package clamsmtp

#!/bin/sh
#
# v0.3 (2005-01-13)
#
# purge the quarantine folder.
#
# Olivier Beyssac <ob@r14.freenix.org>
#
# Thanks to Colin McKinnon <colin@mms3.com> for the ``cat -v'' patch
#

[ -f /etc/sysconfig/clamsmtp ] && . /etc/sysconfig/clamsmtp

[ "$QUARANTINE_PURGE" == "yes" ] || exit 0

[ -n "$QUARANTINE_AGE" -a -n "$QUARANTINE_PATH" -a -d "$QUARANTINE_PATH" ] && find $QUARANTINE_PATH -mtime +"$QUARANTINE_AGE" -type f -exec rm {} \;

exit 0