[Dovecot] Dovecot 1.0-test45 indexing issues

Timo Sirainen tss at iki.fi
Thu Sep 23 12:30:31 EEST 2004


On 22.9.2004, at 22:20, dovecot at spam.turbolink.net wrote:

>> Only reason why it would do rereading there is if the message wasn't 
>> at
>> the expected position in the mbox file. And if no-one else modified 
>> the
>> mbox, the only reason for it is if Dovecot had somehow corrupted the
>> message offset in index file.
>
> How/where exactly could I check for these conditions?  I'm pretty 
> familiar
> with gdb but not with the new indexing code.  I set a breakpoint on
> mbox_sync and tried to follow it through but I haven't been able to
> pinpoint exactly where the decision is made to re-read or not.

mbox_sync_has_changed() does the first quick check. If it shows it's 
changed, the mbox is locked and the timestamp/size is again checked 
against indexes in mbox_sync_do().

With dirty syncing mbox_sync_do() first tries to check only for new 
mails (partial=true), if it fails then it reads everything.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20040923/a85157c7/attachment-0001.bin>


More information about the dovecot mailing list