spaetz/offlineimap — Issue #13: Maildir to IMAP does not work
Author: victornoel
Created: 2012-01-07 17:33:56+00:00
State: open

Hi,

I'm trying to migrate mails from maildir to imap.

I used the following configuration
[Repository Local]
type = Maildir
localfolders = /var/lib/vpopmail/domains/test.net/test/Maildir
nametrans = lambda foldername: "Backup" + foldername
readonly = True

[Repository Remote]
type = Gmail
remoteuser = test@test.net
remotepass = test

Notice that Local is readonly!

I first tried to use Local as the remoterepository in Account, but it is not accepted (why?).

Then I used it as the locarepository, and it complains about an infinite recursion because of nametrans, which shouldn't be a problem since we are 1-way.
I commented this part of the code.

Then, it creates the folder as it should on the IMAP server, but then I get this kind of errors:
ERROR: Exceptions occurred during the run!
ERROR: Aborting sync, folder 'Divers' [acc: 'Test']
getfolder() asked for a nonexisting folder 'Divers'.
ERROR: Aborting sync, folder 'INBOX' [acc: 'Test']
getfolder() asked for a nonexisting folder 'INBOX'.
...

I don't really get why it checks that because of using 1-way...

Anyway, I'm a little bothered, is this possible to do maildir to imap with offlineimap?

Thanks