]> git.cworth.org Git - notmuch/commit
Make messages returned by Thread objects owned
authorFloris Bruynooghe <flub@devork.be>
Mon, 15 Jun 2020 20:58:50 +0000 (22:58 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 16 Jun 2020 11:02:02 +0000 (08:02 -0300)
commit2d895a0119b423b117d10e890c9e0eb5d2a9cdf8
tree53cac8051fb2e09b9be94972365ad6d3af956c6b
parent131757907907380213b32934d9e73cec942ace43
Make messages returned by Thread objects owned

This reverses the logic of StandaloneMessage to instead create a
OwnedMessage.  Only the Thread class allows retrieving messages more
then once so it can explicitly create such messages.

The added test fails with SIGABRT without the fix for the message
re-use in threads being present.
bindings/python-cffi/notmuch2/_database.py
bindings/python-cffi/notmuch2/_message.py
bindings/python-cffi/notmuch2/_thread.py
bindings/python-cffi/tests/test_database.py