summaryrefslogtreecommitdiff
path: root/src/leap/mail/mail.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2015-07-02 23:37:37 -0400
committerRuben Pollan <meskio@sindominio.net>2015-07-02 23:37:37 -0400
commit4c63caf644429f8ebc4d9e971bd7afb715dd185d (patch)
tree76c0e3f007af13877cb0f621b269e5069f4ae0b1 /src/leap/mail/mail.py
parent844c9633b7cf24c5cf5785ed7b6a176142b75447 (diff)
[bug] return the message uid after add it to the collection
MessageCollection.add_msg was not returning the uid of the message added making the incoming service not deleting the emails from the incoming queue. * Related: #7158
Diffstat (limited to 'src/leap/mail/mail.py')
-rw-r--r--src/leap/mail/mail.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mail/mail.py b/src/leap/mail/mail.py
index 4a73186..1a60c6d 100644
--- a/src/leap/mail/mail.py
+++ b/src/leap/mail/mail.py
@@ -654,9 +654,10 @@ class MessageCollection(object):
def removeListener(self, listener):
self._listeners.remove(listener)
- def notify_new_to_listeners(self, *args):
+ def notify_new_to_listeners(self, result):
for listener in self._listeners:
listener.notify_new()
+ return result
def cb_signal_unread_to_ui(self, result):
"""