From 1cdf34e100782f627fcb2b1d3cc8ff554b905d0b Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Mon, 23 Mar 2015 12:00:22 +0100 Subject: [PATCH] remove unnecessary imaplib2 workaround Upstream bug has been fixed, since imaplib2 v2.42 the untagged responses are flushed (as stated by the documentation). See https://sourceforge.net/p/imaplib2/bugs/7/ Signed-off-by: Pierre-Louis Bonicoli Signed-off-by: Nicolas Sebrecht --- offlineimap/imaplibutil.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/offlineimap/imaplibutil.py b/offlineimap/imaplibutil.py index 30aed9a..3719673 100644 --- a/offlineimap/imaplibutil.py +++ b/offlineimap/imaplibutil.py @@ -46,8 +46,6 @@ class UsefulIMAPMixIn(object): not force: # No change; return. return - # Wipe out all old responses, to maintain semantics with old imaplib2 - del self.untagged_responses[:] try: result = super(UsefulIMAPMixIn, self).select(mailbox, readonly) except self.readonly as e: