Hi, on 09.02.2007 15:21 Tuomas Toropainen said the following: > Hello > > I have succesfully copied users' mail folders with imapsync. But How > can I copy shared folders? The problem seems to be that imapsync > always adds "INBOX." to the destination folder name, like this: > > ++++ From [shared.vitsit] Parse 1 ++++ > ++++ To [INBOX.shared.vitsit] Parse 1 ++++ > ++++ Verifying [shared.vitsit] -> [INBOX.shared.vitsit] ++++ > > I have tried lots of different options, like this: > > imapsync --host1 source.imap.server --ssl1 --authuser1 cyrus --user1 > testi2 --authmech1 PLAIN --passfile1 cyrus-salasana.txt --host2 > localhost --ssl2 --authuser2 cyrus --user2 jorma --authmech2 PLAIN > --passfile2 cyrus-salasana.txt --syncinternaldates --folder > 'shared.vitsit' --prefix1 'INBOX.' > > Removing "--prefix1 'INBOX.'" makes no difference. > The following sample works perfectly for me. I even used a more complicated configuration:
* Shared prefix on server 1 is "commun." (means "common" in french) * Shared prefix on server 2 is "shared." I copied "commun.test" to "shared.test". "shared.test" did not exist on the destination and was created automatically. imapsync --host1 SERVER1 --ssl1 --authmech1 LOGIN --user1 USER1 --host2 SERVER2 --ssl2 --authmech2 LOGIN --user2 USER2 --prefix1 "commun." --prefix2 "shared." --folder "commun.test" So the trick is to provide both source and destination shared prefixes, and give the complete source folder path. My imapsync version is *1.182*. Regards -- Farzad FARID <[EMAIL PROTECTED]> Architecte Open Source / AssociƩ Pragmatic Source - http://www.pragmatic-source.com/ Tel : +33 9 53 19 21 90 / Mob : +33 6 03 70 65 46
---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html