Problems while migrating emails in subfolders with imapsync

Axel ar at xlrs.de
Tue Apr 23 00:02:02 CEST 2013


Hi,

I tried to migrate emails from my existing dovecot server to kolab3.

This worked well for my Inbox, sent and drafts folder, but failed with 
all subfolders below my Inbox.

This is my actual folder structure

INBOX
|-Aufgaben
   |- Fertig
|- some more folders
...

and I want to get the same in Kolab

With this initial call

imapsync --host1 xlrs.de --user1 ar --passfile1 secret.ar --host2 
kolab.xlrs.de --tls2 --user2 ar --passfile2 secret.ar

and this what I get

host1: state Authenticated
host2: state Authenticated
Host1 separator and prefix: [.][]
Host2 separator and prefix: [/][]

Host1 Folder [INBOX.Aufgaben]
Host2 Folder [INBOX/Aufgaben]
Host2 folder INBOX/Aufgaben does not exist
Creating folder [INBOX/Aufgaben]
Couldn't create [INBOX/Aufgaben]: 185 NO Invalid mailbox name


I tried to add "--sep2 ." and this seems successful

Creating folder [INBOX.Aufgaben]
++++ Host1 [INBOX.Aufgaben] parsing headers ++++
++++ Host2 [INBOX.Aufgaben] parsing headers ++++
++++ Verifying [INBOX.Aufgaben] -> [INBOX.Aufgaben] ++++
+ NO msg #1 [89nIAqgR//A9VQZr55fmGA:1076] in INBOX.Aufgaben
+ Copying msg #1:1076 to folder INBOX.Aufgaben
flags from: [\Seen]["22-Mar-2012 08:58:53 +0100"]
Copied msg id [1] to folder INBOX.Aufgaben msg id [1]

but I get a flat folder list like

INBOX.Aufgaben
INBOX.Aufgaben.Fertig

I found several documents* but none of the described solutions like

--folderrec INBOX --regextrans2 's/INBOX.INBOX/INBOX/'

nor various other regextrans worked

Can anyone give me a hint?

regards Axel


* https://wiki.kolab.org/Imapsync
* http://imapsync.lamiral.info/




More information about the users mailing list