#!/bin/sh include(confFEATURES_DIR/`cfhead.m4')dnl include(confM4_DIR`/conf.default')dnl include(confSITE_DIR/`conf')dnl quarantine_dir=ifdef(`confQUARANTINE_MAILDIR',`',confQUARANTINE_DIR) max_age=confQUARANTINE_AGE ifdef(`confQUARANTINE_MAX_COUNT', `max_count=confQUARANTINE_MAX_COUNT') changequote(<<, >>) if [ ! -z "$dir" ] ; then for dir in `find ${quarantine_dir}/ -type d | grep -v ^${quarantine_dir}/$` ; do find ${dir}/ -maxdepth 1 -mtime +${max_age} -type f | \ tail -n +2 | \ xargs rm 2>/dev/null changequote ifdef(`confQUARANTINE_MAX_COUNT', ` find ${dir} -maxdepth 1 -type f | tail -n +2 | sort -r | tail -n +${max_count} | xargs rm 2>/dev/null') done fi changequote(<<, >>) TEXT=`echo "fake command to avoid 123 exitcode when execute rm withowt arguments on Linux"` changequote