[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [imapsync] sync everytime
|
From |
Michele Marcionelli <michele dot marcionelli at math dot ethz dot ch> |
|
Subject |
Re: [imapsync] sync everytime |
|
Date |
Mon, 25 Oct 2010 17:19:05 +0200 |
Salut Gilles
Thank you for you quick answer... too bad that I didn't check by myself into the FAQ ;-)
Ok... Now I compared the "source" header and the "destination" header I I noticed following:
src:
Return-path: <imapsync-owner at listes dot linux-france dot org>
dst:
Return-Path: <imapsync-owner at listes dot linux-france dot org>
See the capital "p" of "Path". Who did change this? Server2? Imapsync?
Moreover...
src:
Message-id:
<fc dot 006640d82175b360006640d82175b360 dot 2175c6b8 at firstclass dot wellesley dot edu>
MIME-version: 1.0
dst:
Message-ID: <fc dot 006640d82175b360006640d82175b360 dot 2175c6b8 at firstclass dot wellesley dot edu>
(note: here the header MIME-version is placed somewhere else).
Is it possible to:
1) do a case insensitive check of the header?
2) ignore new newlines and spaces?
3) ignore ordering of the header information?
Thanks,
Michele
On Oct 25, 2010, at 16:58 , Gilles LAMIRAL wrote:
> Hello,
>
> From the FAQ:
>
> =======================================================================
> Q: Multiple copies when I run imapsync twice ore more.
>
> R. Multiple copies of the emails on the destination server. Some IMAP
> servers (Domino for example) add some headers for each message
> transfered. The message is transfered again and again each time you
> run imapsync. This is bad of course. The explanation is that imapsync
> considers the message is not the same since headers have changed (one
> line added) and size too (the header part).
>
> You can look at the headers found by imapsync by using the --debug
> option (and search for the message on both part), Header lines from
> the source server begin with a "FH:" prefix, Header lines from the
> destination server begin with a "TH:" prefix. Since --debug is very
> verbose I suggest to isolate a email in a specific folder in case you
> want to forward me the output.
>
> The way to avoid this problem is by using options --skipheader and
> --skipsize, like this (avoid headers beginning whith the string "X-"):
>
> imapsync ... --skipheader '^X-' --skipsize
>
> To skip several headers you can use --skipheader one time
>
> imapsync ... --skipheader '^X-|^Status|^Bcc'
>
> If you think you have too many header to avoid just use
>
> imapsync ... --useheader 'Message-ID' --skipsize
>
> Remark. (Trick found by Tomasz Kaczmarski)
>
> Option --useheader 'Message-ID' asks the server to send only header
> lines begining with 'Message-ID'. Some (buggy) servers send the whole
> header (all lines) instead of the 'Message-ID' line. In that case, a
> trick to keep the --useheader filtering behavior is to use
> --skipheader with a negative lookahead pattern :
>
> imapsync ... --skipheader '^(?!Message-ID)' --skipsize
>
> Read it as "skip every header except Message-ID".
>
> ======================================================================
>
> --
> Au revoir, 09 51 84 42 42
> Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
>
> ---- imapsync mailing-list ----
> unsubscribe, mailto:imapsync-unsubscribe at listes dot linux-france dot org
> imapsync, http://linux-france.org/prj/imapsync/
>
--
ETH Zürich
Michele Marcionelli
IT Support Gruppe D-MATH
HG G 32.1
Rämistrasse 101
CH–8092 Zürich
michele dot marcionelli at math dot ethz dot ch
http://www.math.ethz.ch/~michele
+41 44 632 6193 Telefon
+41 44 632 1354 Fax