From 88fdde4f46c00b45ab4ee3fd3bd79b6e29f715dc Mon Sep 17 00:00:00 2001 From: Timo Kankare Date: Mon, 30 Apr 2018 15:47:46 +0300 Subject: [PATCH] Replaced references to Account idle and imap members with supports_notifications query. --- Mailnag/daemon/idlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mailnag/daemon/idlers.py b/Mailnag/daemon/idlers.py index 8bbb413..b3e740a 100644 --- a/Mailnag/daemon/idlers.py +++ b/Mailnag/daemon/idlers.py @@ -4,7 +4,7 @@ # idlers.py # # Copyright 2011 - 2016 Patrick Ulbrich -# Copyright 2016 Timo Kankare +# Copyright 2016, 2018 Timo Kankare # Copyright 2011 Leighton Earl # # This program is free software; you can redistribute it and/or modify @@ -136,7 +136,7 @@ class IdlerRunner: def start(self): for acc in self._accounts: - if acc.imap and acc.idle: + if acc.supports_notifications(): try: idler = Idler(acc, self._sync_callback, self._idle_timeout) idler.start()