Michael Monnerie wrote:
> Hello list, maybe somebody ever wants to sync via imapsync from cyrus. 
> I've fiddled with it these last 2 days, and found this to be useful:
> 
> imapsync --host1 cyrushost --user1 u1 --password1 p1 \
> --host2 dbmailhost --user2 u2 --password2 p2 \
>  --authmech1 LOGIN --authmech2 LOGIN \
> --skipheader '^(X-DBMail|Content-Type|Received)' --skipsize \
> --useheader 'Message-ID' --delete2 --expunge2

I used this to migrate from uw-imapd to dbmail:

        imapsync \
                --host1 "$src" --user1 "$user" --password1 "$newpw" \
                --host2 "$dst" --user2 "$user" --password2 "$newpw" \
                --skipheader
'(^X-|^Received|^MIME-|^Content-Type|^Disposition-|^From|^Cc|^Reply-|^Subject|^To|^DomainKey-).*'
\
                --skipsize --syncinternaldates \
                --exclude '^\..*' \
                --include 'mail/.*' \
                --fast \
                --nosyncacls

> Problem 1:
> dbmail creates a header like
> X-DBMail-PhysMessage-ID:94348
> on messages.

That's a feature added because of popular request.

> 
> The "skipheader" is just here as an example, because "useheader" 
> overrides it anyway. I needed it because there are obviously some other
> encoding problems between the two servers, and modified headers lead to 
> all messages being doubled. Examples:
> 
>> Content-Type:text/plain; format=flowed; charset="iso-8859-1"; 
> reply-type=original
> ---
> < Content-Type:text/plain; format=flowed; charset=iso-8859-1; 
> reply-type=original
> 
> The "" gets lost in dbmail.
> And also the "Received" headers got blanks added in DBmail:
> 
>> Received:FROM host1 (host1 [ipv4]) BY host2 (POSTFIX) WITH ESMTP ID 
> 21E0CFF15 FOR <[EMAIL PROTECTED]>; THU, 13 APR 2006 10:06:55 +0200 
> (CEST)
> ---
> < Received:FROM host1 (host1 [ipv4]) BY host2 (POSTFIX) WITH ESMTP ID 
> 21E0CFF15     FOR <[EMAIL PROTECTED]>; THU, 13 APR 2006 10:06:55 +0200 
> (CEST)
> 
> You can see there are more blanks between the ESMTPD ID and the FOR 
> after transmission. Maybe this can be changed to easier support 
> imapsync? Why are blanks added anyway?


Those are both gmime issues. GMime has it's own ideas about quoting mime
parameters, and wrapping of long lines.

Using a correct skipheaders setup will allow you to sync reliably, at
least that's my experience.


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to