summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-06-10 10:20:50 +0000
committerJonas Smedegaard <dr@jones.dk>2007-06-10 10:20:50 +0000
commit93af07215d77956142cd24fa59e6695d391895c1 (patch)
treeb602fd37c9824c5889c99b1e27133f6df8e16124
parent63a498e7814f9e999ac3082052518888360e3666 (diff)
Use settings that works even over lock-broken NFS.
-rwxr-xr-xlocalimap13
1 files changed, 10 insertions, 3 deletions
diff --git a/localimap b/localimap
index 9817d9e..60e2a30 100755
--- a/localimap
+++ b/localimap
@@ -4,10 +4,17 @@ if test -d ~/Maildir; then
MAIL=~/Maildir
fi
-# Do these work at all?
+# This might work on local storage
# (one for dovecot 1.x and the other for 0.99.x)
-export MBOX_WRITE_LOCKS=fcntl
-export MBOX_LOCKS=fcntl
+#export MBOX_WRITE_LOCKS=fcntl
+#export MBOX_LOCKS=fcntl
+
+# Works for Dovecot 1.x over non-locking NFS
+export LOCK_METHOD=dotlock
+export MMAP_DISABLE=yes
+
+#export DEFAULT_MAIL_ENV=maildir:~/Maildir:INDEX=MEMORY
+#export INDEX=MEMORY
# Avoid noise to stderr
#export USE_SYSLOG=1