Hi,

Timo Sirainen wrote:
On Fri, 2007-07-06 at 11:54 +0200, Bernd Kuhls wrote:
- The index for $HOME/.imap_mail/inbox is created in
   $HOME/.imap_mail/.imap/inbox/, while the indexes for other mbox files
   are created in /var/mail/indexes/%u, like its supposed to be. How to
   disable creating index files in $HOME altogether without using links?

This is a bit problematic to fix because of how it works internally.

ok, not a big problem for me. I can live with the current situation.

- if /var/mail/$user does not exist, syslog is cluttered with these
   messages for each POP3/IMAP login:

   Jun 10 22:33:33 server dovecot: IMAP(someuser): stat() failed with
   mbox file /var/mail/someuser: No such file or directory

I can't reproduce this.

Since your patch below the snarf-bug is gone, Dovecot creates a zero-byte file for /var/mail/$user now.

Looks like this is broken only with mbox_lazy_writes=yes, which is why I
didn't notice it first.

And looks like it's a bug in Dovecot itself. Fixed:
http://hg.dovecot.org/dovecot-1.0/rev/1b6c41524c6a

Big thanks! Your patch fixed the bug, now I can throw away my ugly
work-arounds for this. Weird enough I did not activate mbox_lazy_writes.

# dovecot -n
# 1.0.3: /etc/dovecot/dovecot.conf
log_path: /var/log/dovecot/dovecot.main
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_extra_groups: mail
mail_location: mbox:~/.imap_mail:INBOX=/var/mail/%u:INDEX=/var/mail/indexes/%u
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): quota imap_quota mbox_snarf
mail_plugins(imap): quota imap_quota mbox_snarf
mail_plugins(pop3): mbox_snarf
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
imap_client_workarounds(default): outlook-idle netscape-eoh 
tb-extra-mailbox-sep delay-newmail
imap_client_workarounds(imap): outlook-idle netscape-eoh tb-extra-mailbox-sep 
delay-newmail
imap_client_workarounds(pop3): outlook-idle
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
  passdb:
    driver: pam
  userdb:
    driver: passwd
plugin:
  quota: fs
  mbox_snarf: ~/.imap_mail/inbox

Happy greetings, Bernd Kuhls

Reply via email to