[Dovecot] New index / mailbox API
Timo Sirainen
tss at iki.fi
Sun Nov 23 13:43:05 EET 2003
On Sun, 2003-11-23 at 01:22, DINH Viet Hoa wrote:
> > with maildir that would be
> > the filename and with mbox it would be current offset in file.
>
> Is it a good idea to use the current offset of a message in a file since
> there are (several) programs that rewrite entirely mailboxes ?
> I find it rather dirty to do this.
>
> In UW-IMAP, an UID is added into the message headers.
But if you give UID, there's no way to know where in the mbox file the
message begins unless you store the UID -> offset in memory, which index
already does, so why not just give the offset..
The point was that you have to have the mailbox locked and synchronized
before trying to open any messages. Synchronizing updates the offsets
and while mailbox is locked the offsets can't change.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20031123/26ae41db/attachment-0001.bin>
More information about the dovecot
mailing list