On Mon, 16 Oct 2006 00:32:07 +0300 Timo Sirainen <tss@iki.fi> wrote:
How does tpop3d generate UIDLs for mbox mails?
tpop3d's UIDLs for messages in an mbox file are an MD5 hash of the first 512 bytes of the message (including the "From " line and the message body), or the entire message if it's less than 512 bytes. If indexes are enabled, tpop3d will only calculate the UIDL when the message is first seen -- otherwise, it'll calculate it every time.
The good(?) news is that tpop3d doesn't update/add the Status header, so there's a good chance that dovecot's initial calculation of the UIDL will match; the bad news is that dovecot DOES update/add the Status header, so the UIDL will change unless dovecot saves it somewhere.
-- Ben Winslow <rain@bluecherry.net>