Invalid Config with 6.3.1??

Paul Grove paul.a.grove at
Mon Dec 13 15:19:43 GMT 2010

Removed the try/catch as suggested (didnt have any luck with traceback),
Here is the Error outputed:

og at Groundhog:~/build/nicolas33-offlineimap-06373ff$ ./ 
Thread 'Account sync Gmail' terminated with exception:
Traceback (most recent call last): File "/home/og/build/nicolas33-offlineimap-06373ff/offlineimap/", line 149, in run
File "/usr/lib/python2.6/", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
File "/home/og/build/nicolas33-offlineimap-06373ff/offlineimap/", line 199, in syncrunner
File "/home/og/build/nicolas33-offlineimap-06373ff/offlineimap/", line 236, in sync
    remoterepos.syncfoldersto(localrepos, [statusrepos])
File "/home/og/build/nicolas33-offlineimap-06373ff/offlineimap/repository/", line 137, in syncfoldersto
    srcfolders = src.getfolders()
File "/home/og/build/nicolas33-offlineimap-06373ff/offlineimap/repository/", line 214, in getfolders
    imapobj = self.imapserver.acquireconnection()
File "/home/og/build/nicolas33-offlineimap-06373ff/offlineimap/", line 296, in acquireconnection
File "/home/og/build/nicolas33-offlineimap-06373ff/offlineimap/", line 187, in plainauth
    imapobj.login(self.username, self.repos.getpassword())
File "/usr/lib/python2.6/", line 498, in login
    typ, dat = self._simple_command('LOGIN', user, self._quote(password))
File "/usr/lib/python2.6/", line 1052, in _quote
    arg = arg.replace('\\', '\\\\')
AttributeError: 'NoneType' object has no attribute 'replace'

Last 2 debug messages logged for Account sync Gmail prior to exception:
maildir: MaildirRepository initialized, sep is '.'
imap: Attempting plain authentication

Excerpts from Johannes Stezenbach's message of Mon Dec 13 15:00:18 +0000 2010:
> On Mon, Dec 13, 2010 at 08:35:39AM -0600, Sebastian Spaeth wrote:
> > On Mon, 13 Dec 2010 10:42:37 +0000, Paul Grove <paul.a.grove at> wrote:
> > > WARNING: Error occured attempting to sync account Gmail: 'NoneType' object has no attribute 'replace'
> > > Next sync in 1:00
> > 
> > This is the
> > exact reason why I would love to have the -1 not use any threads. Now, we
> > can't see in which file or line this exception occurs...
> You could print the traceback at the same place where the
> "Error occured attempting to sync" message is printed in
> Maybe "traceback.print_tb(sys.exc_info()[2])" or similar.
> Or simply remove the try: ... except: around self.sync(siglistener)
> and let it crash
> Johannes

More information about the OfflineIMAP-project mailing list