[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [imapsync] How does imapsync decide which duplicate to keep on the server?


From Neil <kngspook at gmail dot com>
Subject Re: [imapsync] How does imapsync decide which duplicate to keep on the server?
Date Wed, 16 May 2012 20:25:55 -0700



On Wed, May 16, 2012 at 4:31 AM, Gilles LAMIRAL <gilles dot lamiral at laposte dot net> wrote:
Hello Neil,


1. How does imapsync decide they're duplicates? Purely Message-ID, or other factors as well?

By default it's like

 imapsync ... --useheader Message-ID --useheader Message-Id --useheader Received

So you can change that by using just

 imapsync ...--useheader Message-ID


Oh, perfect, thanks.
 

2. How does imapsync decide which of the duplicates to store on the server? Is it the first migration wins? The version with the largest size?

The first wins since how could imapsync guess duplicates existence on another server synced a second migration in the future?


I wondered if it might have some logic like "These messages are duplicates, but this one is bigger, and thus must have some extra data, let's switch the one on the server with this one to prevent data loss.".

Or alternatively, maybe it says "These messages are duplicates, but this one is smaller, which might be due to less Received headers, so let's delete the big one on the server and upload the smaller one in it's place."

Or something along those lines.

Anyways, thanks again!
 


--
Au revoir,                             09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06