trouble getting started

Tyler Smith tyler at
Sat Apr 5 19:31:29 BST 2014


I'm trying to use OfflineImap and Dovecot to mirror my Gmail account on 
my laptop (for eventual browsing using Emacs Gnus).

I keep running into the following error:

offlineimap -d imap
  OfflineIMAP 6.3.4
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).

  Debug mode: Forcing to singlethreaded.
  Now debugging for imap: IMAP protocol debugging
  Now debugging for : Other offlineimap related sync messages
Account sync ISP:
  ***** Processing account ISP
  Copying folder structure from Gmail to MappedIMAP
  Establishing connection to
  DEBUG[imap]:   24:12.31 Account sync ISP imaplib2 version 2.24
  DEBUG[imap]:   24:12.31 Account sync ISP imaplib2 debug level 5, 
buffer level 3

<trimmed processing of gmail account>

Account sync ISP:
  DEBUG[imap]:   24:13.19 Account sync ISP _close_threads reader:
  DEBUG[imap]:   24:13.19 reader poll => [] handler:
  DEBUG[imap]:   24:13.19 handler finished reader:
  DEBUG[imap]:   24:13.19 reader finished writer:
  DEBUG[imap]:   24:13.19 writer finished
Account sync ISP:
  DEBUG[imap]:   24:13.19 Account sync ISP call shutdown
  DEBUG[imap]:   24:13.19 Account sync ISP state_change_pending.release
  DEBUG[imap]:   24:13.19 Account sync ISP connection closed
  DEBUG[imap]:   24:13.19 Account sync ISP _get_untagged_response(BYE) 
=> ['LOGOUT Requested']
  WARNING: Error occured attempting to sync account 'ISP':
Traceback (most recent call last):
   File "/usr/lib/pymodules/python2.7/offlineimap/", line 
177, in syncrunner
   File "/usr/lib/pymodules/python2.7/offlineimap/", line 
235, in sync
     remoterepos.syncfoldersto(localrepos, [statusrepos])
   File "/usr/lib/pymodules/python2.7/offlineimap/repository/", 
line 124, in syncfoldersto
     srcfolders = src.getfolders()
   File "/usr/lib/pymodules/python2.7/offlineimap/repository/", 
line 297, in getfolders
     if not self.folderfilter(foldername):
   File "<string>", line 1, in <lambda>
TypeError: 'list' object is not callable

  ***** Finished processing account ISP

I'm not sure where the problem is. I've been playing with .offlinerc and 
the dovecot configs, but I'm confused as to all the options and 
interactions. Here's my offlinimaprc:

accounts = ISP
maxsyncaccounts = 1

[Account ISP]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = IMAP
preauthtunnel = MAIL=maildir:$HOME/Maildir /usr/lib/dovecot/imap
holdconnectionopen = yes

[Repository Remote]
type = Gmail
remotehost =
remoteuser = myemailaddress at
remotepass = mypassword
maxconnections = 1
realdelete = no
folderfilter = lambda foldername: foldername in ['INBOX'] (5)
ssl = yes

I've also tried setting up the Local Repository like this:

[Repository Local]
type = IMAP
remotehost = localhost
port = 143
remoteuser = mylocalusername
remotepass = mylocaluserpassword

What am I doing wrong?



More information about the OfflineIMAP-project mailing list