Replaced references to Account idle and imap members with supports_notifications query.

This commit is contained in:
Timo Kankare
2018-04-30 15:47:46 +03:00
parent a2939fd1c7
commit 88fdde4f46

View File

@@ -4,7 +4,7 @@
# idlers.py
#
# Copyright 2011 - 2016 Patrick Ulbrich <zulu99@gmx.net>
# Copyright 2016 Timo Kankare <timo.kankare@iki.fi>
# Copyright 2016, 2018 Timo Kankare <timo.kankare@iki.fi>
# Copyright 2011 Leighton Earl <leighton.earl@gmx.com>
#
# 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()