[Dovecot] mbox format

Timo Sirainen tss at iki.fi
Tue Nov 25 13:41:41 EET 2003


On Tuesday, Nov 25, 2003, at 04:31 Europe/Helsinki, DINH Viet Hoa wrote:

>   I wish to know some implementation details about mbox.
> When you you mbox format in IMAP, are you doing to keep the same 
> message
> UID across IMAP session if you know that any other program can modify
> the mailbox as it wants, for example, two messages can be exchanged.
> In this case, will the UID kept the same ?
>   If they keep their UID, how do you identify the messages ?

I do it pretty much like UW-IMAP: Add X-UID header to each message's 
header. I don't try to support changing message order (well, I think I 
could but I don't think it matters much). If X-UID headers are out of 
order, all messages after that are rewritten with new UIDs.

With read-only mailboxes + index files I use MD5 sums of a few headers 
to identify the messages. That doesn't support changing message order 
either.
-------------- 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/20031125/bcd53097/attachment-0001.bin>


More information about the dovecot mailing list