<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/bindings/ruby, branch feature/wildcard</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=feature%2Fwildcard</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=feature%2Fwildcard'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2025-03-08T14:42:19Z</updated>
<entry>
<title>Merge branch 'release'</title>
<updated>2025-03-08T14:42:19Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2025-03-08T14:42:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=85b7a2f86aeadf937f06531986993fda98a13e89'/>
<id>urn:sha1:85b7a2f86aeadf937f06531986993fda98a13e89</id>
<content type='text'>
</content>
</entry>
<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>ruby: trivial build cleanup</title>
<updated>2025-03-01T13:38:33Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2025-01-02T01:39:36Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d81a173f73796de099c18cc26c37e24a807339e5'/>
<id>urn:sha1:d81a173f73796de099c18cc26c37e24a807339e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ruby: use proper talloc flags</title>
<updated>2025-03-01T13:37:15Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2025-01-02T01:39:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e78e093330dff7cf85b2cf69314ea47c3dfb1080'/>
<id>urn:sha1:e78e093330dff7cf85b2cf69314ea47c3dfb1080</id>
<content type='text'>
This way talloc doesn't need to be installed in /usr.
</content>
</entry>
<entry>
<title>ruby: simplify build</title>
<updated>2025-03-01T13:33:09Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2025-01-02T01:39:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5f9fc7d81a95c380e933189c05558cbecfcfdb99'/>
<id>urn:sha1:5f9fc7d81a95c380e933189c05558cbecfcfdb99</id>
<content type='text'>
We can just always add EXTRA_INCFLAGS and EXTRA_LDFLAGS.
</content>
</entry>
<entry>
<title>ruby: db: reorganize initializer</title>
<updated>2023-05-29T10:51:02Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2023-03-31T20:40:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=95a4bf38173311597bcc4fa7f597d58bb11ed119'/>
<id>urn:sha1:95a4bf38173311597bcc4fa7f597d58bb11ed119</id>
<content type='text'>
In order to make it more extensible.

No functional changes.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
<entry>
<title>ruby: query: fix get sort</title>
<updated>2023-05-25T10:02:59Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2023-04-03T20:27:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=afa45bd6b886838b760884a1870f274fc33b5f89'/>
<id>urn:sha1:afa45bd6b886838b760884a1870f274fc33b5f89</id>
<content type='text'>
The order was wrong, right now `query.sort` doesn't return a number.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
<entry>
<title>ruby: remove FileNames object</title>
<updated>2023-04-12T10:30:01Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2023-03-27T21:59:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e4d75fcc8349ae95ec22d0e6679880d23bed37f8'/>
<id>urn:sha1:e4d75fcc8349ae95ec22d0e6679880d23bed37f8</id>
<content type='text'>
Not used anymore now that we return an array of strings directly.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
<entry>
<title>ruby: filenames: return string array directly</title>
<updated>2023-04-12T10:29:48Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2023-03-27T21:59:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=837426d7be63cf11d51b74464f174724935c5d4f'/>
<id>urn:sha1:837426d7be63cf11d51b74464f174724935c5d4f</id>
<content type='text'>
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
<entry>
<title>ruby: add filenames helper</title>
<updated>2023-04-12T10:05:23Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2023-03-27T21:59:40Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=777b02a7d7b922bcae08af1c16e475051ec7d8f3'/>
<id>urn:sha1:777b02a7d7b922bcae08af1c16e475051ec7d8f3</id>
<content type='text'>
Right now it doesn't do much, but it will help for further
reorganization.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
</feed>
