diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-10 19:23:18 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:34 +0200 |
commit | 9ed58715616f5c6341d32c9b0316933d3f2b4a3e (patch) | |
tree | b6196bfce3bff26228afb942f75083b5f8fd9bcd /service/pixelated | |
parent | c00e4115f5bd205a0f65224dccd5e889e7cbf3b8 (diff) |
Added test to ensure mail with same content can be added.
- as long as each one has a unique message id
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/mailstore/leap_mailstore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py index a641c35b..1bcab036 100644 --- a/service/pixelated/adapter/mailstore/leap_mailstore.py +++ b/service/pixelated/adapter/mailstore/leap_mailstore.py @@ -159,7 +159,7 @@ class LeapMailStore(MailStore): message = SoledadMailAdaptor().get_msg_from_string(Message, raw_msg) message.get_wrapper().set_mbox_uuid(mailbox.uuid) - yield message.get_wrapper().create(self.soledad) + yield SoledadMailAdaptor().create_msg(self.soledad, message) # add behavious from insert_mdoc_id from mail.py mail = yield self._leap_message_to_leap_mail(message.get_wrapper().mdoc.doc_id, message, include_body=True) # TODO test that asserts include_body |