<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/bindings, branch 0.39_rc2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.39_rc2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.39_rc2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2025-03-08T14:39:22Z</updated>
<entry>
<title>ruby: fix "undefining the allocator of T_DATA" warnings</title>
<updated>2025-03-08T14:39:22Z</updated>
<author>
<name>Johannes Larsen</name>
<email>mail@johslarsen.net</email>
</author>
<published>2024-09-01T00:02:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e8261872dc65ea0259971ff44721a2f7d3f34e67'/>
<id>urn:sha1:e8261872dc65ea0259971ff44721a2f7d3f34e67</id>
<content type='text'>
Ruby 3.2 introduced a warning when C-extensions use structs without
redefining the allocation default allocation routine meant for objects.
See https://bugs.ruby-lang.org/issues/18007 for details.

In the Ruby bindings this happens at `Data_Wrap_Notmuch_Object` call
sites, so the object types used there needed to update their allocation.

This ruby code (given a database at the hardcoded path with messages
matching `tag:tmp`) exercise all the ruby objects:

    require 'notmuch'
    Notmuch::Database.open File.expand_path("~/mail") do |db|
      db.get_directory("/tmp")
      db.query("tag:tmp").search_threads.each do |t|
        t.messages.each do |m|
          puts m.header("Subject")
        end
      end
    end

Before these changes with ruby 3.2.5 and notmuch 0.38.3 it outputs:

    notmuch.rb:5: warning: undefining the allocator of T_DATA class Notmuch::Query
    notmuch.rb:5: warning: undefining the allocator of T_DATA class Notmuch::Threads
    notmuch.rb:5: warning: undefining the allocator of T_DATA class Notmuch::Thread
    notmuch.rb:6: warning: undefining the allocator of T_DATA class Notmuch::Messages
    notmuch.rb:6: warning: undefining the allocator of T_DATA class Notmuch::Message
    notmuch release 0.38.3 now available

(the last line is the message I tagged with tmp), and after the changes:

    notmuch release 0.38.3 now available
</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>bindings/python: strip ~ from python version</title>
<updated>2025-02-22T11:10:13Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2025-02-15T19:49:53Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8bc1fccbf9c0dfea8c1d04a0727153436665d44a'/>
<id>urn:sha1:8bc1fccbf9c0dfea8c1d04a0727153436665d44a</id>
<content type='text'>
Inspired by a suggestion of Xiyue Deng, this change ensures that
the python bindings have a version that recent setuptools is happy
with.

This will have the unfortunate side effect of the python view of the
version number differing from the rest of notmuch for the
pre-releases. The alternative would be to transform the version
numbers for the Debian packages for the pre-releases, as there is now
no version scheme that works for both, since setuptools started
rejecting versions with "~" in them.  If we decide to go the latter
way in the future, this change is easy to revert.
</content>
</entry>
<entry>
<title>python: move legacy python bindings to contrib.</title>
<updated>2025-02-22T11:01:47Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2025-02-15T19:30:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d526797ad198e394bb8b4909f43976b76fb347f1'/>
<id>urn:sha1:d526797ad198e394bb8b4909f43976b76fb347f1</id>
<content type='text'>
This forces us to verify the build and test suite completes without
the legacy python bindings.

As of this commit the legacy python bindings are unsupported by
notmuch. They are provided in contrib/ for now, but will most likely
eventually be removed from there as well. We recommend that
downstream/distro packagers phase out their packages for the legacy
python bindings.
</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>Revert "bump versions to 0.39~rc0"</title>
<updated>2025-01-26T15:30:28Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2025-01-26T15:30:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=409ad6b2a897c1571044bf6e4021a35fbd85b122'/>
<id>urn:sha1:409ad6b2a897c1571044bf6e4021a35fbd85b122</id>
<content type='text'>
This reverts commit deea909993513ec6fd800b7571649582d994dcbc.
</content>
</entry>
<entry>
<title>bump versions to 0.39~rc0</title>
<updated>2025-01-26T13:45:20Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2025-01-26T13:44:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=deea909993513ec6fd800b7571649582d994dcbc'/>
<id>urn:sha1:deea909993513ec6fd800b7571649582d994dcbc</id>
<content type='text'>
Prepare to release a snapshot for testing
</content>
</entry>
<entry>
<title>docs: Update intersphinx_mapping</title>
<updated>2024-12-08T13:07:45Z</updated>
<author>
<name>Fredrik Lönnegren</name>
<email>fredrik@frelon.se</email>
</author>
<published>2024-12-05T16:45:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=969b26704da11c9e1935e5b442f6a88b32bb7e22'/>
<id>urn:sha1:969b26704da11c9e1935e5b442f6a88b32bb7e22</id>
<content type='text'>
Running `make dirhtml` in bindings/python/docs generates the following
error:

```
sphinx-build -b dirhtml -d build/doctrees   source build/dirhtml
Running Sphinx v8.0.2
loading translations [en]... done
making output directory... done
Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`.
ERROR: Invalid value `None` in intersphinx_mapping['https://docs.python.org/']. Expected a two-element tuple or list.
```

This commit updates intersphinx_mapping to follow the latest docs [1]

[1] https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html

Signed-off-by: Fredrik Lönnegren &lt;fredrik@frelon.se&gt;
</content>
</entry>
<entry>
<title>version: bump to 0.38.3</title>
<updated>2024-03-10T02:51:31Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2024-03-10T02:51:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d0469c5b4c6ed9188b96b12363fced45291813fd'/>
<id>urn:sha1:d0469c5b4c6ed9188b96b12363fced45291813fd</id>
<content type='text'>
</content>
</entry>
</feed>
