summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-01-26 19:49:39 -0400
committerKali Kaneko <kali@leap.se>2014-01-26 19:49:39 -0400
commitefc67f55f329b0486327ddc9ffc32010cae09c22 (patch)
treecd591caf2b66c8e3297510ea77b8986b169efaa8 /mail
parentaf7bea43606415aee2677d4b7661dc7f82edb24e (diff)
temporarily remove notify after adding msg
Diffstat (limited to 'mail')
-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)