]> git.pld-linux.org Git - packages/exim.git/blame - exim.cron.db
- rel 4; tidy up callout db with 3 days limit
[packages/exim.git] / exim.cron.db
CommitLineData
7f0182a7
AM
1#!/bin/sh
2cd /
2bb95240
AM
3
4SPOOLDIR="$(/usr/bin/exim -bP spool_directory | /bin/sed 's/.*=[[:space:]]\(.*\)/\1/')"
5
6[ ! -d "$SPOOLDIR" ] && echo "Spooldir [$SPOOLDIR] is not a directory" && exit 1
7
6f06d0c5
AM
8for db in $(/usr/bin/find $SPOOLDIR/db -maxdepth 1 -name '*.lockfile' -or -type f -printf '%f\n'); do
9 t=
10 case "$db" in
11 callout)
12 t="-t 3d"
13 ;;
14 *)
15 ;;
16 esac
17 /usr/bin/exim_tidydb $t $SPOOLDIR $db > /dev/null
18done
9abc83e7
AM
19
20exit 0
This page took 0.0907 seconds and 4 git commands to generate.