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

Re: [imapsync] Method to check for duplicates


From Gilles LAMIRAL <gilles dot lamiral at laposte dot net>
Subject Re: [imapsync] Method to check for duplicates
Date Fri, 20 May 2011 04:29:20 +0200

Hi Ameir,

> When synchronizing between mailboxes multiple times, I oftentimes
> encounter situations where the Message-ID header is not read, so the
> entire header is then processed and compared.  It seems that the
> destination server modifies the header after a transfer, so imapsync
> doesn't detect previously-transferred emails using this method.

Do you use last imapsync 1.434 because I changed the header stuff
to try to avoid this issue.


> Upon a transfer, could we add an additional header (e.g.
> /X-TRANSFERRED-FROM:  source at mail dot box/) to the email before it hits the
> destination to flag it as transferred?  imapsync could then (if not
> using the --useuid method) check for this header, and if it doesn't
> exist, we can then take the Message-ID header.
> 
> Does this sound like a plausible workaround to this problem?

There is --usecache to workaround this problem.
I prefer not changing a bit of each message if possible.
Think about the following scenario
1) migrate from A to B
2) migrate from B to C
2b) migrate back from B to A
3) migrate from C to A

A headache soon might come if you change the messages to
keep the history of transfers.

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