docker-offlineimap/offlineimap
Sebastian Spaeth c293e64119 Fix caching inconsistencies in getselectedfolder()
getselectedfolder was using a cached variable that we were setting in
select(), but sometimes the IMAP4 instance got into the SELECTED state
without explicitely select()ing, it seems, and our variable was unset.

Let us just use the self.mailbox variable that imaplib2 is setting when
select()ing rather than doing our own caching. Also remove the part
where we were setting the cache.

Just access self.state rather than looking up self.state via
self.getstate() every time, it is just an unnecessary layer of
redirection.

Original-patch-by: Arnaud Fontaine <arnau@debian.org>
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-07-07 18:33:45 +02:00
..
folder folder/IMAP: fix typo with maxsize and maxage. 2011-06-27 18:26:43 +02:00
repository repository/Maildir.py: Fix typo 'sudir' 2011-06-23 18:30:55 +02:00
ui Don't use CStringIO to format a traceback 2011-06-30 21:28:06 +02:00
__init__.py Reduce initial license blurb 2011-07-04 18:08:51 +02:00
accounts.py cleanup: remove uneeded imports 2011-05-09 22:42:15 +02:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
error.py Add OfflineImapError class 2011-05-05 20:00:07 +02:00
imaplib2.py Update imaplib2 to 2.24 2011-06-09 18:26:39 +02:00
imaplibutil.py Fix caching inconsistencies in getselectedfolder() 2011-07-07 18:33:45 +02:00
imapserver.py Add missing import of SSLError exception. 2011-07-07 18:31:38 +02:00
imaputil.py imaputil.imapsplit: Remove overzealous debug statement 2011-06-25 17:06:53 +02:00
init.py Always call ui.terminate() 2011-06-16 18:57:35 +02: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 Remove weird SigListener class 2011-05-08 14:25:16 +02:00
threadutil.py fix broken ui Blinkenlights in multi-threaded mode 2011-05-18 18:38:05 +02:00