docker-offlineimap/offlineimap
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
..
folder Update to match semantics of new imaplib2 2011-03-14 19:51:56 +01:00
repository Merge branch 'ss/debug-folderfilter' into next 2011-03-03 19:07:35 +01:00
ui UIBase: fix regression while deletingflags 2011-03-11 20:20:12 +01:00
__init__.py v6.3.2 2011-02-21 12:26:48 +01:00
accounts.py folder: Implement helper function getmessagecount() 2011-03-10 20:30:19 +01:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
imaplib2.py Import newest version of imaplib2 2011-03-14 19:51:56 +01:00
imaplibutil.py Update to match semantics of new imaplib2 2011-03-14 19:51:56 +01:00
imapserver.py Update to match semantics of new imaplib2 2011-03-14 19:51:56 +01:00
imaputil.py Remove over-verbose debug options 2011-03-03 18:23:32 +01:00
init.py Import imaplib2 instead of imaplib 2011-03-14 19:51:56 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py Implement true single-threading 2011-01-14 19:25:11 +01:00
threadutil.py threadutil: Don't require the StringIO module 2011-03-11 20:34:33 +01:00