docker-offlineimap/offlineimap
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
..
folder Do not try to release IMAP connection twice 2012-04-21 13:32:14 +02:00
repository Warn about nonsensical config option 'sep' for IMAP repositories 2012-04-02 23:26:59 +02:00
ui Curses UI: Reset the warn method before terminate 2012-04-19 17:20:49 +02:00
__init__.py bugfix release v6.5.3.1 2012-04-03 01:39:28 +02:00
accounts.py Implement dry-run on Account() level 2012-02-17 10:53:10 +01:00
CustomConfig.py Implement CustomConfig.set_if_not_exists() 2012-02-17 10:28:59 +01:00
error.py Introduce new error level FOLDER_RETRY 2011-09-06 19:00:21 +02:00
imaplib2.py imaplib2: bump upstream version 2.29 --> 2.33 2012-04-19 13:22:03 +02:00
imaplibutil.py Fix SSL fingerprint was not always checked 2012-04-19 18:26:29 +02:00
imapserver.py Replace thread.get_ident() 2012-02-06 17:41:43 +01:00
imaputil.py Fix mixed space/tabs 2012-02-06 17:41:43 +01:00
init.py -f command line option only works on the untranslated remote names 2012-02-24 14:52:30 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py explicitly define symbols to import instead of 'import *' 2011-05-09 22:43:03 +02:00
syncmaster.py Exit "infinite" monitorloop when SyncRunner thread exits 2011-11-02 11:55:05 +01:00
threadutil.py dict.has_key(a) --> a in dict 2012-02-06 17:41:43 +01:00