summaryrefslogtreecommitdiff
path: root/mail/src/leap
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2014-01-26 20:53:28 -0300
committerTomás Touceda <chiiph@leap.se>2014-01-26 20:53:28 -0300
commite8560a95362a6c71340f37da6167754876757950 (patch)
treecd591caf2b66c8e3297510ea77b8986b169efaa8 /mail/src/leap
parentaf7bea43606415aee2677d4b7661dc7f82edb24e (diff)
parentefc67f55f329b0486327ddc9ffc32010cae09c22 (diff)
Merge remote-tracking branch 'refs/remotes/kali/bug/disable_notification_after_fetch' into develop
Diffstat (limited to 'mail/src/leap')
-rw-r--r--mail/src/leap/mail/imap/mailbox.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/src/leap/mail/imap/mailbox.py b/mail/src/leap/mail/imap/mailbox.py
index 38c58cb6..0131ce0b 100644
--- a/mail/src/leap/mail/imap/mailbox.py
+++ b/mail/src/leap/mail/imap/mailbox.py
@@ -406,8 +406,13 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
Invoked from addMessage.
"""
d = self.messages.add_msg(message, flags=flags, date=date, uid=uid)
- # XXX notify after batch APPEND?
- d.addCallback(self.notify_new)
+ # XXX Removing notify temporarily.
+ # This is interfering with imaptest results. I'm not clear if it's
+ # because we clutter the logging or because the set of listeners is
+ # ever-growing. We should come up with some smart way of dealing with
+ # it, or maybe just disabling it using an environmental variable since
+ # we will only have just a few listeners in the regular desktop case.
+ #d.addCallback(self.notify_new)
return d
def notify_new(self, *args):
@@ -422,7 +427,6 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
exists,
recent))
- logger.debug("listeners: %s", str(self.listeners))
for l in self.listeners:
logger.debug('notifying...')
l.newMessages(exists, recent)