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

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

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?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846914666                        .network.your.ideas.
// PGP Key:        "curl -s http://zmi.at/zmi3.asc | gpg --import"
// Fingerprint: 44A3 C1EC B71E C71A B4C2  9AA6 C818 847C 55CB A4EE
// Keyserver: www.keyserver.net                 Key-ID: 0x55CBA4EE

Attachment: pgptPJXihIeaG.pgp
Description: PGP signature

_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to