Oswald Buddenhagen <[email protected]> writes: > On Tue, Feb 03, 2015 at 11:16:18AM +0800, Eric Abrahamsen wrote: >> I just got a new desktop and am looking to replicate my email setup from >> my laptop to the new machine. I have a local dovecot server running on >> both machines now, same configuration, and use mbsync to sync several >> addresses. >> >> I've rsync'd the actual maildirs onto the new desktop, but before I do >> any server syncing I wanted to check here first: how do I handle isync's >> uidvalidity files? Is it enough just to copy the ~/.mbsync/ directory >> over to the new computer? Or should I allow those files to be >> re-created? Any tips/reassurances would be appreciated. >> > if the copy of the maildirs was verbatim and complete (which means that > the same messages are available under the same uids, and the server > announces the same uidvalidity), then it will work. > if the uidvalidity changed, the sync will be simply rejected. then you > can delete the local folders and sync state, and start from scratch, or > delete only the sync state, see messages being duplicated both ways, and > then deduplicate (mutt: D~=). > if the uidvalidity stayed the same but the actual uids changed, you'd > lose mail (to verify, you can take some samples by enabling the "order > received" colum in the thunderbird message view, for example). you could > recover from that by having another fully synchronized store and > deleting the associated sync state *before* the next sync run, so the > whole backup is considered "new" and replicated.
Belated thanks for this -- it finally spurred me to go and actually learn how uids and uidvalidity work. I started from scratch on the new machine, because of weirdness with gmail, but at least I understand the basics of the system now. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ isync-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/isync-devel
