problems with offlineimap/git
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
[my first mail didn't make it, it seems. Resending]
I checked out the latest version for IDLE support.
I've been having issues with it. For now I disabled the IDLE code and I
still get things like this:
Next refresh in 106 seconds
Account sync google.com:
Next refresh in 105 seconds
Exception in thread Thread-90:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/var/lib/python-support/python2.5/offlineimap/imapserver.py", line 408,
in noop
imapobj.noop()
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 748,
in noop
return self._simple_command('NOOP', **kw)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 1305,
in _simple_command
return self._command_complete(self._command(name, *args), kw)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 1097,
in _command_complete
typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 150,
in get_response
raise typ(exc_fmt % str(val))
abort: command: NOOP => socket error: <class 'socket.sslerror'> - (8, 'EOF
occurred in violation of protocol')
Exception in thread Thread-91:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/var/lib/python-support/python2.5/offlineimap/imapserver.py", line 408,
in noop
imapobj.noop()
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 748,
in noop
return self._simple_command('NOOP', **kw)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 1305,
in _simple_command
return self._command_complete(self._command(name, *args), kw)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 1097,
in _command_complete
typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 150,
in get_response
raise typ(exc_fmt % str(val))
abort: command: NOOP => socket error: <class 'socket.sslerror'> - (8, 'EOF
occurred in violation of protocol')
Exception in thread Thread-92:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/var/lib/python-support/python2.5/offlineimap/imapserver.py", line 408,
in noop
imapobj.noop()
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 748,
in noop
return self._simple_command('NOOP', **kw)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 1305,
in _simple_command
return self._command_complete(self._command(name, *args), kw)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 1097,
in _command_complete
typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 150,
in get_response
raise typ(exc_fmt % str(val))
abort: command: NOOP => socket error: <class 'socket.sslerror'> - (8, 'EOF
occurred in violation of protocol')
This happened while offlineimap was waiting for its next time to sync, maybe
because the imap
connection got dropped. It seems to continue after those tracebacks though.
However, I had that during a sync, and the offlineimap just exited:
> Thread 'Folder sync google.com[rcvd]' terminated with exception:
>
> Traceback (most recent call last):
>
> File "/var/lib/python-support/python2.5/offlineimap/threadutil.py", line
> 149, in run
> Thread.run(self)
>
> File "/usr/lib/python2.5/threading.py", line 446, in run
>
> self.__target(*self.__args, **self.__kwargs)
>
> File "/var/lib/python-support/python2.5/offlineimap/accounts.py", line 323,
> in syncfolder
> remotefolder.cachemessagelist()
>
> File "/var/lib/python-support/python2.5/offlineimap/folder/IMAP.py", line
> 138, in cachemessagelist
> response = imapobj.fetch('1:%d' % maxmsgid, '(FLAGS UID
> INTERNALDATE)')[1]
> File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 589,
> in fetch
> return self._simple_command(name, message_set, message_parts, **kw)
>
> File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line
> 1305, in _simple_command
> return self._command_complete(self._command(name, *args), kw)
>
> File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line
> 1097, in _command_complete
> typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
>
> File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 150,
> in get_response
> raise typ(exc_fmt % str(val))
>
> abort: command: FETCH => connection terminated
I think in both cases, it's because gmail is known to close imap connections
just about anytime for various reasons.
Is offlineimap supposed to deal with this better?
Separately, making a deb of git and trying to install it yielded:
Setting up offlineimap (6.0.3.99) ...
Compiling /var/lib/python-support/python2.4/offlineimap/accounts.py ...
File "/var/lib/python-support/python2.4/offlineimap/accounts.py", line 84
yield (folder, quick)
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
However, it works after that because I do have python 2.5
My config
> grep -Ev '^(#|$)' ~/.offlineimaprc
> [general]
> pythonfile=~/.offlineimap.py
> foldersort=mycmp
> metadata = ~/.offlineimap
> accounts = google.com
> maxsyncaccounts = 1
> ui = TTY.TTYUI, Tk.Blinkenlights, Tk.VerboseUI, Noninteractive.Basic,
> Noninteractive.Quiet
> ignore-readonly = no
>
> [mbnames]
> enabled = yes
> filename = ~/.mutt_mailboxes
> header = "mailboxes "
> peritem = "+%(accountname)s/%(foldername)s"
> sep = " "
> footer = "\n"
> [ui.Tk.Blinkenlights]
> loglines = 5
> bufferlines = 500
> showlog = true
>
> [Account google.com]
> localrepository = LocalGoogle
> remoterepository = Google
> autorefresh = 10
> quick = 3
>
> [Repository Google]
> type = IMAP
> remoteuser = email
> remotehost = imap.gmail.com
> ssl = yes
> remoteport = 993
> remotepass = foo
> folderfilter = lambda foldername: foldername not in [ '[Gmail]/All Mail' ]
> maxconnections = 1
> holdconnectionopen = yes
> keepalive = 60
> sep = /
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
|
|