summaryrefslogtreecommitdiff
path: root/debian/exim4-base.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/exim4-base.config')
-rw-r--r--debian/exim4-base.config15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/exim4-base.config b/debian/exim4-base.config
new file mode 100644
index 0000000..1e97fd1
--- /dev/null
+++ b/debian/exim4-base.config
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+if [ -d /var/spool/exim/input ] ; then
+ # With "head -1" this shouldn't be expensive.
+ oldmails=`find /var/spool/exim/input/ -type f -print | head -1`
+fi
+
+if [ "x${oldmails}" != "x" ] ; then
+ db_version 2.0
+ db_input medium exim4/move_exim3_spool || true
+ db_go || true
+fi