summaryrefslogtreecommitdiff
path: root/localimap
blob: 29babd57469a64ebf21d324bc8d2fccc8a30c47f (plain)
  1. #!/bin/sh
  2. if test -d ~/Maildir; then
  3. MAIL=~/Maildir
  4. fi
  5. # Do these work at all?
  6. # (one for dovecot 1.x and the other for 0.99.x)
  7. export MBOX_WRITE_LOCKS=fcntl
  8. export MBOX_LOCKS=fcntl
  9. # Avoid noise to stderr
  10. #export USE_SYSLOG=1
  11. #export SYSLOG_FACILITY=mail
  12. export LOGFILE="$HOME/dovecot.log"
  13. #export LOGFILE="/dev/null"
  14. # Avoid LOGFILE growing endlessly
  15. if [ "`ls -s "$LOGFILE" | awk '{print $1}'`" -gt 500 ]; then
  16. mv -f "$LOGFILE" "$LOGFILE.bak"
  17. fi
  18. exec /usr/lib/dovecot/imap