docker-offlineimap/offlineimap/folder
Ethan Glasser-Camp 1bf4bee5e6 Update to match semantics of new imaplib2
The biggest change here is that imapobj.untagged_responses is no
longer a dictionary, but a list. To access it, I use the semi-private
_get_untagged_response method.

* offlineimap/folder/IMAP.py (IMAPFolder.quickchanged,
  IMAPFolder.cachemessagelist): imaplib2 now explicitly removes its
  EXISTS response on select(), so instead we use the return values from
  select() to get the number of messages.

* offlineimap/imapserver.py (UsefulIMAPMixIn.select): imaplib2 now
  stores untagged_responses for different mailboxes, which confuses us
  because it seems like our mailboxes are "still" in read-only mode when
  we just re-opened them.  Additionally, we have to return the value
  from imaplib2's select() so that the above thing works.

* offlineimap/imapserver.py (UsefulIMAPMixIn._mesg): imaplib2 now
  calls _mesg with the name of a thread, so we display this
  information in debug output. This requires a corresponding change to
  imaplibutil.new_mesg.

* offlineimap/imaplibutil.py: We override IMAP4_SSL.open, whose
  default arguments have changed, so update the default arguments. We
  also subclass imaplib.IMAP4 in a few different places, which now
  relies on having a read_fd file descriptor to poll on.

Signed-off-by: Ethan Glasser-Camp <ethan@betacantrips.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-03-14 19:51:56 +01:00
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py folder: Implement helper functions uidexists() and getmessageuidlist() 2011-03-11 18:59:20 +01:00
Gmail.py Remove some unneeded imports 2011-03-14 19:51:52 +01:00
IMAP.py Update to match semantics of new imaplib2 2011-03-14 19:51:56 +01:00
LocalStatus.py LocalStatus: Don't ignore Exceptions on os.fsync 2011-01-14 19:25:11 +01:00
Maildir.py Save ui as self.ui in folder/Base class 2011-01-05 19:24:00 +01:00
UIDMaps.py Remove unneeded imports of UIBase 2011-02-09 19:29:01 +01:00