#!/bin/sh # 2007-02-19 # # tidy up exim databases in order to remove old (default is 30days) entries # # meant to be run as daily cronjob SPOOLDIR=`exim -bP spool_directory | sed -e 's/.* *= *//'` for FILE in ${SPOOLDIR}/db/*.lockfile; do database=${FILE#${SPOOLDIR}/db/} database=${database%.lockfile} exim_tidydb $SPOOLDIR ${database} >/dev/null done