On Tue, 2008-09-09 at 10:36 -0500, John Lightsey wrote:
Hi there,
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).