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.