mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 06:15:34 +02:00
Replaced references to Account idle and imap members with supports_notifications query.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user