The background is, I'm trying to migrate mail between two IMAP servers and I want to make sure that in the event of a re-retry, a duplicate message isn't migrated again. What I'd like is to query each IMAP server for something equivalent to the md5 of the raw email, so I can compare which emails have been migrated and which have not.
Is something like that possible in IMAP4? I see the UID, but that seems to only be unique to the server, not really a unique identifier of the content.