summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-01-22 14:02:28 -0400
committerKali Kaneko <kali@leap.se>2015-02-11 14:05:43 -0400
commit66adeda5603aa5a1a29f027bfe6a8536c488ac97 (patch)
tree510d31aeffda5bb560167edea54c8762db339db2 /src/leap/mail/imap
parentd586ea252e187e811cd2851522cdfab74428fd75 (diff)
Fix recent/unseen notifications
Diffstat (limited to 'src/leap/mail/imap')
-rw-r--r--src/leap/mail/imap/mailbox.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py
index 045636e..c826e86 100644
--- a/src/leap/mail/imap/mailbox.py
+++ b/src/leap/mail/imap/mailbox.py
@@ -714,13 +714,10 @@ class IMAPMailbox(object):
:param result: ignored
"""
- d = self._get_unseen_deferred()
+ d = defer.maybeDeferred(self.getUnseenCount)
d.addCallback(self.__cb_signal_unread_to_ui)
return result
- def _get_unseen_deferred(self):
- return defer.maybeDeferred(self.getUnseenCount)
-
def __cb_signal_unread_to_ui(self, unseen):
"""
Send the unread signal to UI.