summaryrefslogtreecommitdiff
path: root/src/leap/mail
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2015-07-03 17:10:05 -0400
committerRuben Pollan <meskio@sindominio.net>2015-07-03 17:10:05 -0400
commit853f4de55705ecba39c552e851057c2b0c66e810 (patch)
treed63552fc97da2ec4f7f911c4908597d575c1db54 /src/leap/mail
parent4c63caf644429f8ebc4d9e971bd7afb715dd185d (diff)
[bug] notify copied emails
When copying emails there was not notification produced, that makes thunderbird to see messages moved between folders until it gets restarted. Now the MaillCollection copy does notify the listeners. * Resolves: #7158
Diffstat (limited to 'src/leap/mail')
-rw-r--r--src/leap/mail/mail.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/mail/mail.py b/src/leap/mail/mail.py
index 1a60c6d..2f190d4 100644
--- a/src/leap/mail/mail.py
+++ b/src/leap/mail/mail.py
@@ -619,8 +619,8 @@ class MessageCollection(object):
doc_id = wrapper.mdoc.doc_id
if not doc_id:
# --- BUG -----------------------------------------
- # XXX why from time to time mdoc doesn't have doc_id
- # here???
+ # XXX watch out, sometimes mdoc doesn't have doc_id
+ # but it has future_id. Should be solved already.
logger.error("BUG: (please report) Null doc_id for "
"document %s" %
(wrapper.mdoc.serialize(),))
@@ -742,6 +742,7 @@ class MessageCollection(object):
d = wrapper.copy(self.store, new_mbox_uuid)
d.addCallback(insert_copied_mdoc_id)
+ d.addCallback(self.notify_new_to_listeners)
return d
def delete_msg(self, msg):