From 8e1fc718792fdff7aff62d4abac5ca5db8f270b9 Mon Sep 17 00:00:00 2001 From: John Goerzen Date: Wed, 12 Aug 2009 14:48:38 -0500 Subject: [PATCH] [imaplib2 removal] Revert "Added check for IDLE in capabilities" This reverts commit 17ec4df02a8d1440aac5634b2516555a5f841046. --- offlineimap/imapserver.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index d18ed96..04238eb 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -406,8 +406,8 @@ class IdleThread(object): def noop(self): imapobj = self.parent.acquireconnection() - imapobj.noop() self.event.wait() + imapobj.noop() self.parent.releaseconnection(imapobj) def dosync(self): @@ -434,10 +434,7 @@ class IdleThread(object): self.needsync = True self.event.set() imapobj = self.parent.acquireconnection() - if "IDLE" in imapobj.capabilities: - imapobj.idle(callback=callback) - else: - imapobj.noop() + imapobj.idle(callback=callback) self.event.wait() if self.event.isSet(): imapobj.noop()