trouble getting started

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


Hi,

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 imap.googlemail.com:993.
  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
imap.googlemail.com reader:
  DEBUG[imap]:   24:13.19 imap.googlemail.com reader poll => []
imap.googlemail.com handler:
  DEBUG[imap]:   24:13.19 imap.googlemail.com handler finished
imap.googlemail.com reader:
  DEBUG[imap]:   24:13.19 imap.googlemail.com reader finished
imap.googlemail.com writer:
  DEBUG[imap]:   24:13.19 imap.googlemail.com 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/accounts.py", line 
177, in syncrunner
     self.sync()
   File "/usr/lib/pymodules/python2.7/offlineimap/accounts.py", line 
235, in sync
     remoterepos.syncfoldersto(localrepos, [statusrepos])
   File "/usr/lib/pymodules/python2.7/offlineimap/repository/Base.py", 
line 124, in syncfoldersto
     srcfolders = src.getfolders()
   File "/usr/lib/pymodules/python2.7/offlineimap/repository/IMAP.py", 
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:

[general]
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 = imap.googlemail.com
remoteuser = myemailaddress at gmail.com
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?

Thanks,

Tyler




More information about the OfflineIMAP-project mailing list