[Dovecot] How to propelry restore a Maildir

Timo Sirainen tss at iki.fi
Tue Sep 9 19:01:43 EEST 2008


On Sep 9, 2008, at 6:56 PM, Thomas Hummel wrote:

> On Tue, Sep 09, 2008 at 06:41:34PM +0300, Timo Sirainen wrote:
>> On Tue, 2008-09-09 at 17:35 +0200, Thomas Hummel wrote:
>>
>>> Can this new mail be named identically, i.e.  
>>> 1215166123.52887_0.host.dom.ain:2, ?
>>> if so, it would be a problem when merging.
>>
>> Yes, except for Dovecot's potential warning:
>
> Hmm you mean no ? Can a new message filen the same name as an old  
> message ?

Right. I meant file maildir filenames are always globally unique when  
they're created.

>> dovecot-uidlist is recreated lazily. So it may list files that have
>> already been deleted.
>> So when Dovecot notices that there exists a new
>> file that's already listed in dovecot-uidlist but that has been  
>> expunged
>> from Dovecot's index files, it'll figure out the message is  
>> unexpunged
>> and to avoid breaking IMAP clients it'll log a warning and give a new
>> UID to the file.
>
> You mean when a client deletes a message, it is first deleted from  
> index, and
> then deleted from dovecot-uidlist only if it reappears ? So dovecot- 
> uidlist
> would grow infinitely ?

In v1.1 dovecot-uidlist gets recreated (causing deleted records to be  
dropped) when more than 25% of it contains deleted records.

> Or maybe it is cleaned when UIDs have to be rearranged
> ?

This should never need to happen in normal operation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080909/c4e41135/attachment.bin 


More information about the dovecot mailing list