]> git.pld-linux.org Git - packages/exim.git/commitdiff
- rel 4; tidy up callout db with 3 days limit auto/th/exim-4.80.1-4
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 23 Nov 2012 12:23:38 +0000 (13:23 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 23 Nov 2012 12:23:38 +0000 (13:23 +0100)
exim.cron.db
exim.spec

index 1d5f00183a1dc3f3a16f63682ba8625209aeedc0..f041c8345cfa127e6674c77744dae7b5450d29e6 100644 (file)
@@ -5,6 +5,16 @@ SPOOLDIR="$(/usr/bin/exim -bP spool_directory | /bin/sed 's/.*=[[:space:]]\(.*\)
 
 [ ! -d "$SPOOLDIR" ] && echo "Spooldir [$SPOOLDIR] is not a directory" && exit 1
 
-/usr/bin/find $SPOOLDIR/db -maxdepth 1 -name '*.lockfile' -or -type f -printf '%f\0' | xargs -0r -n 1 /usr/bin/exim_tidydb $SPOOLDIR > /dev/null
+for db in $(/usr/bin/find $SPOOLDIR/db -maxdepth 1 -name '*.lockfile' -or -type f -printf '%f\n'); do
+       t=
+       case "$db" in
+               callout)
+                       t="-t 3d"
+                       ;;
+               *)
+                       ;;
+       esac
+       /usr/bin/exim_tidydb $t $SPOOLDIR $db > /dev/null
+done
 
 exit 0
index b93319c890a3059df94b4e392ad992abb4560975..15644356c7f588aaab3243081da93d95e250076a 100644 (file)
--- a/exim.spec
+++ b/exim.spec
@@ -15,7 +15,7 @@ Summary(pl.UTF-8):    Agent Transferu Poczty Uniwersytetu w Cambridge
 Summary(pt_BR.UTF-8):  Servidor de correio eletrônico exim
 Name:          exim
 Version:       4.80.1
-Release:       3
+Release:       4
 Epoch:         2
 License:       GPL
 Group:         Networking/Daemons/SMTP
This page took 0.159453 seconds and 4 git commands to generate.