docker-offlineimap/offlineimap/folder
Sebastian Spaeth 61e754c65e Do not try to release IMAP connection twice
Reported by sharat87 in https://github.com/spaetz/offlineimap/pull/38,
he would often get an unhandled Exception when trying to
releaseconnection() a connection that was not in the pool of
connections.

The reason this could happen is that when folder.IMAP.quickchanged()
raises an Exception in select(), we would release the connection in the
"except" handling, and than release the same connection in the "finally"
clause, which led to the error. The right thing is to only release the
connection once, of course.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-04-21 13:32:14 +02:00
..
__init__.py Use "from . import" for relative imports 2012-02-06 17:41:43 +01:00
Base.py docs: Fix docstrings to proper .rst syntax 2012-02-24 11:20:22 +01:00
Gmail.py Use "from . import" for relative imports 2012-02-06 17:41:43 +01:00
IMAP.py Do not try to release IMAP connection twice 2012-04-21 13:32:14 +02:00
LocalStatus.py Prevent modifications on a folder level to occur in dry-run 2012-02-17 13:17:05 +01:00
LocalStatusSQLite.py Prevent modifications on a folder level to occur in dry-run 2012-02-17 13:17:05 +01:00
Maildir.py Prevent modifications on a folder level to occur in dry-run 2012-02-17 13:17:05 +01:00
UIDMaps.py Prevent modifications on a folder level to occur in dry-run 2012-02-17 13:17:05 +01:00