Permalink
Browse files

[imaplib2 removal] Revert "Added check for IDLE in capabilities"

This reverts commit 17ec4df.
  • Loading branch information...
1 parent a3a0a68 commit 8e1fc718792fdff7aff62d4abac5ca5db8f270b9 @jgoerzen committed Aug 12, 2009
Showing with 2 additions and 5 deletions.
  1. +2 −5 offlineimap/imapserver.py
View
7 offlineimap/imapserver.py
@@ -406,8 +406,8 @@ def join(self):
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 @@ def callback(args):
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()

0 comments on commit 8e1fc71

Please sign in to comment.