23 Nov
2003
23 Nov
'03
1:43 p.m.
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.