[Dovecot] Data loss from removing dovecot.index* files?
Timo Sirainen
tss at iki.fi
Wed Sep 10 07:57:55 EEST 2008
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080910/ede911df/attachment-0001.bin
More information about the dovecot
mailing list