Feature #26

Should reconnect if disconnected

Added by blujay - 219 days ago. Updated 197 days ago.

Status :New Start :
Priority :Normal Due date :
Assigned to :John Goerzen % Done :

0%

Category :IMAP
Target version :-
Resolution :


Description

If the connection is lost, it terminates with an exception. It should reconnect and pick up where it left off.

This is especially annoying if you are syncing more than one account simultaneously, and only one server disconnects, because it will then stop syncing both accounts. And if you have to type in your passwords every time....

Thread 'Copy message 195 from Newsletters' terminated with exception:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/offlineimap/threadutil.py", line 153, in run
    Thread.run(self)
  File "threading.py", line 440, in run
    self.+target(*self.+args, **self.+kwargs)
  File "/var/lib/python-support/python2.5/offlineimap/folder/Base.py", line 277, in copymessageto
    message = self.getmessage(uid)
  File "/var/lib/python-support/python2.5/offlineimap/folder/IMAP.py", line 164, in getmessage
    initialresult = imapobj.uid('fetch', '%d' % uid, '(BODY.PEEK[])')
  File "imaplib.py", line 752, in uid
    typ, dat = self._simple_command(name, command, *args)
  File "imaplib.py", line 1055, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "imaplib.py", line 885, in _command_complete
    typ, data = self._get_tagged_response(tag)
  File "imaplib.py", line 986, in _get_tagged_response
    self._get_response()
  File "imaplib.py", line 948, in _get_response
    data = self.read(size)
  File "imaplib.py", line 1150, in read
    data = self.sslobj.read(size-read)
  File "/var/lib/python-support/python2.5/offlineimap/imaplibutil.py", line 82, in read
    retval = self._read(n)
  File "/var/lib/python-support/python2.5/offlineimap/imaplibutil.py", line 70, in _read
    return self.sslsock.read(n)
error: (104, 'Connection reset by peer')

No debug messages were logged for Copy message 195 from Newsletters.
Command exited with non-zero status 100

Also available in: Atom PDF