summaryrefslogtreecommitdiff
path: root/src/leap/mail/mail.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-01-06 01:31:26 -0400
committerKali Kaneko <kali@leap.se>2015-02-11 14:05:43 -0400
commitce6008a326dfc8020b341904308115917eabd7de (patch)
tree27be866d7fb9191096ba0429be9a72321c0b69dc /src/leap/mail/mail.py
parent84888155b09b3af6a755262b28728de2f851c8cb (diff)
tests for mail.mail module: MessageCollection
Diffstat (limited to 'src/leap/mail/mail.py')
-rw-r--r--src/leap/mail/mail.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/leap/mail/mail.py b/src/leap/mail/mail.py
index 55e50f7..671642a 100644
--- a/src/leap/mail/mail.py
+++ b/src/leap/mail/mail.py
@@ -420,13 +420,12 @@ class MessageCollection(object):
"""
wrapper = msg.get_wrapper()
- def delete_mdoc_id(_):
- # XXX does this work?
+ def delete_mdoc_id(_, wrapper):
doc_id = wrapper.mdoc.doc_id
return self.mbox_indexer.delete_doc_by_hash(
self.mbox_name, doc_id)
d = wrapper.delete(self.store)
- d.addCallback(delete_mdoc_id)
+ d.addCallback(delete_mdoc_id, wrapper)
return d
# TODO should add a delete-by-uid to collection?