summaryrefslogtreecommitdiff
path: root/localimap
blob: 9817d9e054bccd570d0ec8fc477ecceb2a965f47 (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 [ -f "$LOGFILE" ] && [ "`ls -s "$LOGFILE" | awk '{print $1}'`" -gt 500 ]; then
  16. mv -f "$LOGFILE" "$LOGFILE.bak"
  17. fi
  18. exec /usr/lib/dovecot/imap