On Wed, 2008-09-10 at 10:19 +0800, Patrick Nagel wrote:
I've been rewriting the courier-dovecot-migrate script to handle
dovecot->courier conversions in addition to courier->dovecot. One
issue I've found is that when the courier->dovecot conversion is
performed a second time (using --overwrite) and the dovecot-uidlist
file is written again, Dovecot starts generating errors when accessing
the maildir. The simple fix is to remove all of the dovecot.index*
files so they are rebuilt when the maildir is scanned again. Is it
safe to do this or is information stored in the index files that can't
be rebuilt by Dovecot the next time it scans the maildir?It's safe, but if any IMAP clients had seen the mailbox the first time they may become confused if the message UIDs change (which is also the reason Dovecot starts complaining).
Aren't flags only stored in dovecot.index files when there are more than 26 of them (and thus can't be stored in the filename)?
Well, yes, but I'm assuming no-one has more than 26 :) Some day I'll probably make Dovecot force that limit to maildir users.