[packages/exim] - rel 4; tidy up callout db with 3 days limit

arekm arekm at pld-linux.org
Fri Nov 23 13:23:41 CET 2012


commit 6f06d0c5a9ed2c2ed9ba6d002a2ea7379360e0c1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 23 13:23:38 2012 +0100

    - rel 4; tidy up callout db with 3 days limit

 exim.cron.db | 12 +++++++++++-
 exim.spec    |  2 +-
 2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/exim.spec b/exim.spec
index b93319c..1564435 100644
--- 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
diff --git a/exim.cron.db b/exim.cron.db
index 1d5f001..f041c83 100644
--- a/exim.cron.db
+++ b/exim.cron.db
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/exim.git/commitdiff/6f06d0c5a9ed2c2ed9ba6d002a2ea7379360e0c1



More information about the pld-cvs-commit mailing list