summaryrefslogtreecommitdiff
path: root/localimap
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-05-06 11:38:41 +0000
committerJonas Smedegaard <dr@jones.dk>2006-05-06 11:38:41 +0000
commit0ec8c01069e9265e4b519c5c1d3fde13752c0a42 (patch)
tree2ca1d6afbb4fd3303130f5a84e8c9b4d3a101587 /localimap
parent3021e64aecf9124ea2cf9325ad89b105c22c51bc (diff)
Log messages instead of spewing to stderr.
Diffstat (limited to 'localimap')
-rwxr-xr-xlocalimap11
1 files changed, 11 insertions, 0 deletions
diff --git a/localimap b/localimap
index d2745ed..29babd5 100755
--- a/localimap
+++ b/localimap
@@ -9,4 +9,15 @@ fi
export MBOX_WRITE_LOCKS=fcntl
export MBOX_LOCKS=fcntl
+# Avoid noise to stderr
+#export USE_SYSLOG=1
+#export SYSLOG_FACILITY=mail
+export LOGFILE="$HOME/dovecot.log"
+#export LOGFILE="/dev/null"
+
+# Avoid LOGFILE growing endlessly
+if [ "`ls -s "$LOGFILE" | awk '{print $1}'`" -gt 500 ]; then
+ mv -f "$LOGFILE" "$LOGFILE.bak"
+fi
+
exec /usr/lib/dovecot/imap