I'm running imapsync like the following:
Code:
imapsync --debug --dry --ssl1 --nosyncacls --subscribe --syncinternaldates --noauthmd5 --host1 dmz01.mel.strategicdata.com.au --user1 ghc --passfile1 /tmp/wHyYkRpRcm --sep1 . --prefix1 INBOX --folderrec INBOX --host2 zimbra.mel.strategicdata.com.au --user2 ghc --passfile2 /tmp/wHyYkRpRcm
I'm using ldap auth on both host1 and host2, so can use the same passfile. Host1 is a cyrus 2.1.18 imap server, from the Debian Sarge package. Host2 is Zimbra opensource edition, 4.0.5, running on Debian as well.

I've tried following the details at http://wiki.zimbra.com/index.php?tit...nded_Method.29, but I'm still having problems. It looks like imapsync doesn't think the zimbra inbox exists, so it happily syncs emails from the Trash folder over, but nothing in the inbox.

Can anyone help?

Code:
geoffc@dmz03:~$ ./migrate_mail.pl ghc
IMAP Password: *********
imapsync --debug --dry --ssl1 --nosyncacls --subscribe --syncinternaldates --noauthmd5 --host1 dmz01.mel.strategicdata.com.au --user1 ghc --passfile1 /tmp/YYTSsTqKdu --sep1 . --prefix1 INBOX --folderrec INBOX --host2 zimbra.mel.strategicdata.com.au --user2 ghc --passfile2 /tmp/YYTSsTqKdu
get options: [1]
$RCSfile: imapsync,v $ $Revision: 1.209 $ $Date: 2007/02/02 02:06:50 $
Mail::IMAPClient version used here is 2.2.9
will try to use LOGIN authentication on host1
will try to use LOGIN authentication on host2
From imap server [dmz01.mel.strategicdata.com.au] port [993] user [ghc]
To   imap server [zimbra.mel.strategicdata.com.au] port [143] user [ghc]
Banner : No banner
Host dmz01.mel.strategicdata.com.au says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [dmz01.mel.strategicdata.com.au] with user [ghc] auth [LOGIN]
Banner : * OK dmz03.mel.strategicdata.com.au Zimbra IMAP4rev1 service ready
Host zimbra.mel.strategicdata.com.au says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [zimbra.mel.strategicdata.com.au] with user [ghc] auth [LOGIN]
From Buffer I/O : 4096
To   Buffer I/O : 4096
From capability : LITERAL+ IMAP4REV1 IMAP4
To   capability : ID QUOTA NAMESPACE STARTTLS SASL-IR LOGIN-REFERRALS UNSELECT LITERAL+ BINARY UIDPLUS CATENATE CHILDREN IMAP4REV1
From state Authenticated
To   state Authenticated
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/IMAPClient.pm line 2145.
Getting separators
Using [.] given by --sep1
Calling namespace capability
Getting prefix namespace
Using [INBOX] given by --prefix1
Getting prefix namespace
Calling namespace capability
From separator and prefix : [.][INBOX]
To   separator and prefix : [/][]
removed source prefix : []
inverted   separators : []
added   target prefix : []
removed source prefix : [.Trash]
inverted   separators : [/Trash]
added   target prefix : [/Trash]
++++ Calculating sizes ++++
From Folder [INBOX]                             Size:   3023666 Messages:   221
From Folder [INBOX.Trash]                       Size:      2176 Messages:     1
Total size: 3025842
Total messages: 222
Time : 1 s
++++ Calculating sizes ++++
To   Folder []                                 does not exist yet
To   Folder [/Trash]                            Size:         0 Messages:     0
Total size: 0
Total messages: 0
Time : 0 s
++++ Listing folders ++++
From folders list : [INBOX] [INBOX.Trash]
To   folders list : [] [/Trash]
++++ Looping on each folder ++++
From Folder [INBOX]
removed source prefix : []
inverted   separators : []
added   target prefix : []
To   Folder []
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/IMAPClient.pm line 526.
To   Folder  does not exist
Creating folder []
From Folder [INBOX.Trash]
removed source prefix : [.Trash]
inverted   separators : [/Trash]
added   target prefix : [/Trash]
To   Folder [/Trash]
Subscribing to folder /Trash on destination server
LIST FROM : 1 messages [1]
LIST TO   : 0 messages []
++++ From [INBOX.Trash] Parse 1 ++++
SPLIT: 1
Time headers: 0 s
Time fir  : 0 s
Head NUM:8
   <snip>
F message content ended on previous line
internal date from 1: ["15-Feb-2007 09:53:59 +1100"]
flags from : [\Seen NonJunk]["15-Feb-2007 09:53:59 +1100"]
Time : 0 s
++++ Statistics ++++
Time                   : 1 sec
Messages transferred   : 0
Messages skipped       : 0
Total bytes transferred: 0
Total bytes skipped    : 0
Total bytes error      : 0
Detected 0 errors
Please, rate imapsync at http://freshmeat.net/projects/imapsync/