summaryrefslogtreecommitdiff
path: root/src/leap/mail/mail.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2015-05-11 18:04:29 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2015-05-14 12:41:48 -0300
commitd5d9c3794566b999bfd42398072c9f7e3177d1b9 (patch)
treee8035a20e5f888e53b221b5593ea484d441f4f10 /src/leap/mail/mail.py
parent154e1aa347bb9ee0a9ed9abd60ed703a81cce017 (diff)
[feat] adapt to new events api on common
- Related: #6359
Diffstat (limited to 'src/leap/mail/mail.py')
-rw-r--r--src/leap/mail/mail.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/leap/mail/mail.py b/src/leap/mail/mail.py
index 4fe08a6..1649d4a 100644
--- a/src/leap/mail/mail.py
+++ b/src/leap/mail/mail.py
@@ -27,8 +27,7 @@ import weakref
from twisted.internet import defer
from leap.common.check import leap_assert_type
-from leap.common import events as leap_events
-from leap.common.events.events_pb2 import IMAP_UNREAD_MAIL
+from leap.common.events import emit, catalog
from leap.common.mail import get_email_charset
from leap.mail.adaptors.soledad import SoledadMailAdaptor
@@ -654,7 +653,7 @@ class MessageCollection(object):
:type unseen: int
"""
# TODO change name of the signal, independent from imap now.
- leap_events.signal(IMAP_UNREAD_MAIL, str(unseen))
+ emit(catalog.MAIL_UNREAD_MESSAGES, str(unseen))
def copy_msg(self, msg, new_mbox_uuid):
"""