On 30 Mar 2012, at 21:08, Timo Sirainen wrote:
On 30.3.2012, at 23.02, Dr Josef Karthauser wrote:
It does, but the two way sync mirroring relies on messages having GUIDs. IMAP protocol doesn't have such a concept. I guess it could be kind of emulated by using e.g. GUID = sha1(message header). The pop3-replication plugin kind of does this already. But adding such code makes the regular "doveadm backup" slower since now it has to fetch first message headers and then message bodies. But I guess this could be an optional feature. Hmh.
I have a need of it right now. If there's something quick and dirty that I can do, that would be great. It would take the risk out of migrating my users over to dovecot. :) How much code would what you propose be?
I suppose to do it quick and dirty you could just copy&paste the get_hdr_sha1() from http://hg.dovecot.org/dovecot-2.1/rev/78317179b4af to imapc code and have imapc_mail_get_special() use it for returning GUID.
Do you think that this will reliably do the trick?
Joe