From 0005bcb2f013082ae13f3a466a8b3a9d75e7dea7 Mon Sep 17 00:00:00 2001 From: Eygene Ryabinkin Date: Fri, 23 May 2014 10:24:55 +0400 Subject: [PATCH] Make IDLE mode to work again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactoring in commit 6cbd2498 touched wrong class's "idle" call. Found-by: Tomasz Żok Signed-off-by: Eygene Ryabinkin --- Changelog.rst | 8 ++++++++ offlineimap/imapserver.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Changelog.rst b/Changelog.rst index b45d430..a05dec2 100644 --- a/Changelog.rst +++ b/Changelog.rst @@ -8,6 +8,14 @@ ChangeLog OfflineIMAP v6.5.6 (YYYY-MM-DD) =============================== +* Fix IDLE mode regression (it didn't worked) introduced + after v6.5.5 (pointy hat goes to Eygene Ryabinkin, kudos -- + to Tomasz Żok) + + +OfflineIMAP v6.5.6-RC1 (2014-05-14) +=================================== + * Add knob to invoke folderfilter dynamically on each sync (GitHub#73) * Add knob to apply compression to IMAP connections (Abdó Roig-Maranges) * Add knob to filter some headers before uploading message diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 676dc31..844012e 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -703,7 +703,7 @@ class IdleThread(object): else: success = True if "IDLE" in imapobj.capabilities: - imapobj.__idle(callback=callback) + imapobj.idle(callback=callback) else: self.ui.warn("IMAP IDLE not supported on server '%s'." "Sleep until next refresh cycle." % imapobj.identifier)