Maildir to Gmail/IMAP? (was: Simplify sync)

Alexander Skwar alexanders.mailinglists+nospam at
Fri Mar 25 11:59:32 GMT 2011


On Thu, Mar 24, 2011 at 17:44, Sebastian Spaeth <Sebastian at> wrote:

> Pass 1 is never needed on an IMAP server (all messages always have a
> positive UID), it is only when uploading a new message from a Maildir.

This works (or at least, is supposed to… *G*)?

Ie. I should be able to upload from Maildir to IMAP (and also Gmail?)?

In my offlineimaprc, I've got :


[Account local2skwar]
localrepository = skwar
remoterepository = Local

[Repository skwar]
type = IMAP
remotehost =
ssl = yes
remoteuser = a at
remotepass = xyz
maxconnections = 4
expunge = no
subscribedonly = no
realdelete = no

[Repository Local]
type = Maildir
localfolders = ~/Mail.offlineimap
sep = /


But :

--($ ~/Src/oi/offlineimap)-- ./ -a local2skwar -u TTYUI
 OfflineIMAP 6.3.2
Copyright (C) 2002 - 2010 John Goerzen <john at>

This software comes with ABSOLUTELY NO WARRANTY; see the file
COPYING for details.  This is free software, and you are welcome
to distribute it under the conditions laid out in COPYING.
Account sync local2skwar:
 ***** Processing account local2skwar
 Thread 'Account sync local2skwar' terminated with exception:
Traceback (most recent call last):
  File "/home/i/Src/oi/offlineimap/offlineimap/", line 159, in run
  File "/usr/lib/python2.6/", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/i/Src/oi/offlineimap/offlineimap/", line 183,
in syncrunner
    self.remoterepos = Repository(self, 'remote')
  File "/home/i/Src/oi/offlineimap/offlineimap/repository/",
line 58, in __new__
    (repostype, reqtype)
Exception: 'Maildir' repository not supported for remote repositories.

No debug messages were logged for Account sync local2skwar.

Could you please show a short snippet from an offlineimaprc,
were Maildir is used as the "local" repository and Gmail or IMAP
is the "remote" repository? Ie. where the transfer goes from
Maildir → to Gmail/IMAP?

Thanks a lot,

↯    Lifestream (Twitter, Blog, …) ↣     ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar at , AIM: alexws77  ↯

More information about the OfflineIMAP-project mailing list