From 0cbea9f5726fc9507f98d06d5db937e9bf292a1a Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Fri, 3 Jul 2015 17:10:05 -0400 Subject: [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 --- mail/src/leap/mail/mail.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mail/src/leap/mail/mail.py b/mail/src/leap/mail/mail.py index 1a60c6db..2f190d4b 100644 --- a/mail/src/leap/mail/mail.py +++ b/mail/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): -- cgit v1.2.3