<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/bindings/python-cffi/notmuch2/_message.py, branch debian/unstable</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2Funstable</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2Funstable'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2025-09-14T16:32:45Z</updated>
<entry>
<title>bindings/python-cffi: handle NOTMUCH_STATUS_OPERATION_INVALIDATED</title>
<updated>2025-09-14T16:32:45Z</updated>
<author>
<name>Anton Khirnov</name>
<email>anton@khirnov.net</email>
</author>
<published>2025-08-28T09:00:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c55953e9de408674d71db78ea4fff941972b2f0a'/>
<id>urn:sha1:c55953e9de408674d71db78ea4fff941972b2f0a</id>
<content type='text'>
Raise it as a newly added OperationInvalidatedError exception.
</content>
</entry>
<entry>
<title>bindings/python-cffi: fix typos</title>
<updated>2025-06-16T11:05:37Z</updated>
<author>
<name>Jakub Wilk</name>
<email>jwilk@jwilk.net</email>
</author>
<published>2025-03-19T19:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=babacbd1b188004b388033cf20662eda51965365'/>
<id>urn:sha1:babacbd1b188004b388033cf20662eda51965365</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bindings/python-cffi: fix docstring for message.header()</title>
<updated>2025-03-14T00:18:15Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@grubix.eu</email>
</author>
<published>2025-03-04T12:39:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5802f5d6269172222a6fccf5908eae833014917b'/>
<id>urn:sha1:5802f5d6269172222a6fccf5908eae833014917b</id>
<content type='text'>
The cffi bindings raise a LookupError in case a header is not present.
Adjust the docstring to say so.

The legacy bindings behaved differently, and this is one of the things
to be aware of when migrating to the cffi bindings.
</content>
</entry>
<entry>
<title>python: Fix message ID docstring</title>
<updated>2025-02-28T15:31:55Z</updated>
<author>
<name>Floris Bruynooghe</name>
<email>flub@devork.be</email>
</author>
<published>2025-02-24T20:08:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ed29a9c37ec382fc2d5b1d1ecc1f1fb28a6769c6'/>
<id>urn:sha1:ed29a9c37ec382fc2d5b1d1ecc1f1fb28a6769c6</id>
<content type='text'>
The messageidb attribute does not exist.  The returned BinString type
already allows use as both strings and binary.  Presumably this was
written before that type was adopted.
</content>
</entry>
<entry>
<title>python: fix documentation typo</title>
<updated>2025-02-22T10:59:48Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2025-02-15T19:27:51Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9782c8651192c1496541bd8949b7991c41528b3f'/>
<id>urn:sha1:9782c8651192c1496541bd8949b7991c41528b3f</id>
<content type='text'>
The method is actually called 'getall'.
</content>
</entry>
<entry>
<title>fix segfaults in Python cFFI API and add tests</title>
<updated>2025-02-07T16:13:16Z</updated>
<author>
<name>Lars Kotthoff</name>
<email>lars@larsko.org</email>
</author>
<published>2025-02-06T02:52:51Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9c1f6cf746725af7bbbb66e746c5d694723ac0eb'/>
<id>urn:sha1:9c1f6cf746725af7bbbb66e746c5d694723ac0eb</id>
<content type='text'>
Several iterators in the Python cFFI API destroyed the objects they iterated
over too early (when the iterator was exhausted), causing subsequent segfaults
in common cases like creating a list from the iterator. This patch fixes the
segfaults and add tests to ensure that they don't happen again.
</content>
</entry>
<entry>
<title>bindings/python-cffi: fix docstring</title>
<updated>2022-07-05T10:34:25Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-07-03T20:26:46Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=db44af75ad5a79b3fd5ecad93fe95195ef175ebd'/>
<id>urn:sha1:db44af75ad5a79b3fd5ecad93fe95195ef175ebd</id>
<content type='text'>
the method Database.get_message does exist any more (if it ever
did). This makes the docstring unhelpful as an example.
</content>
</entry>
<entry>
<title>Merge branch 'release'</title>
<updated>2022-01-09T13:20:56Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-09T13:20:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=22e04ed01acc115b7fb25b60231014f585f11c4a'/>
<id>urn:sha1:22e04ed01acc115b7fb25b60231014f585f11c4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>python-cffi: returned OwnedMessage objects from Message.replies</title>
<updated>2022-01-08T20:29:41Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-08T14:03:16Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9e7ea628e6bddbd7345d053a3daf14af74896cc2'/>
<id>urn:sha1:9e7ea628e6bddbd7345d053a3daf14af74896cc2</id>
<content type='text'>
If we return regular Message objects, python will try to destroy them,
and the underlying notmuch object, causing e.g. the crash [1].

[1]: id:87sfu6utxg.fsf@tethera.net
</content>
</entry>
<entry>
<title>bindings/python-cffi: add matched property to message objects</title>
<updated>2022-01-01T15:48:40Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-01T14:36:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9cc026f3daaa7731527787f8c7e729c0a08c456c'/>
<id>urn:sha1:9cc026f3daaa7731527787f8c7e729c0a08c456c</id>
<content type='text'>
Existing users of the legacy python bindings use
message.get_flags(Message.FLAG.MATCH) to determine which messages in a
thread matched. Since the bindings don't provide get_flags anymore,
they should provide a property analogous to the existing "excluded"
property.
</content>
</entry>
</feed>
