<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/bindings/ruby/message.c, branch 0.38.3</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.38.3</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.38.3'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2023-04-12T10:05:23Z</updated>
<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>
<entry>
<title>ruby: add tags helper</title>
<updated>2023-04-02T22:00:49Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2023-03-22T23:43:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ae1336dea5cc6a221699fff260d8b44cee677f77'/>
<id>urn:sha1:ae1336dea5cc6a221699fff260d8b44cee677f77</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>
<entry>
<title>ruby: new notmuch_rb_object_destroy() helper</title>
<updated>2021-05-17T10:25:14Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-15T21:21:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5f49e3421f5d1f98951b55dd5ba106c2a106aba7'/>
<id>urn:sha1:5f49e3421f5d1f98951b55dd5ba106c2a106aba7</id>
<content type='text'>
The struct used to store the types (rb_data_type_t) contains a "data"
field where we can store whatever we want. I use that field to store a
pointer to the corresponding destroy function. For example
notmuch_rb_database_type contains a pointer to notmuch_database_destroy.

I cast that pointer as a notmuch_status_t (func*)(void *) and call
that function passing the internal object (e.g. notmuch_database_t).

Using the rb_data_type_t data we can call the correct notmuch destroy
function.

Therefore this:

  ret = ((notmuch_status_t (*)(void *)) type-&gt;data) (nm_object);

Is effectively the same as this:

  ret = notmuch_database_destroy (database);

The advantage of doing it this way is that much less code is necesary
since each rb_data_type_t has the corresponding destroy function stored
in it.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
<entry>
<title>ruby: add all data types</title>
<updated>2021-05-17T10:25:14Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-15T21:21:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9574fb60991fa81799fbd1d26d41693ca2794e6b'/>
<id>urn:sha1:9574fb60991fa81799fbd1d26d41693ca2794e6b</id>
<content type='text'>
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
<entry>
<title>ruby: create Data_Wrap_Notmuch_Object helper</title>
<updated>2021-05-17T10:25:14Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-15T21:21:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=12c36a5e3f676d5108cede6ac09204fb62fa20b1'/>
<id>urn:sha1:12c36a5e3f676d5108cede6ac09204fb62fa20b1</id>
<content type='text'>
This makes the code more maintainable and will help in further patches.

No functional changes.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
<entry>
<title>bindings/ruby: replacy use of deprecated notmuch_message_get_flag</title>
<updated>2020-07-18T14:03:29Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-07-11T18:30:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=49d630d0f389e0bfb08a83178582f4a38f1ec664'/>
<id>urn:sha1:49d630d0f389e0bfb08a83178582f4a38f1ec664</id>
<content type='text'>
Depending on the flag, this actually can return an errror, so raise a
ruby exception if so.
</content>
</entry>
<entry>
<title>Use https instead of http where possible</title>
<updated>2016-06-05T11:32:17Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2016-06-02T16:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6a833a6e83865f6999707cc30768d07e1351c2cb'/>
<id>urn:sha1:6a833a6e83865f6999707cc30768d07e1351c2cb</id>
<content type='text'>
Many of the external links found in the notmuch source can be resolved
using https instead of http.  This changeset addresses as many as i
could find, without touching the e-mail corpus or expected outputs
found in tests.
</content>
</entry>
<entry>
<title>ruby bindings message: docstring typo</title>
<updated>2014-02-22T01:13:03Z</updated>
<author>
<name>Gaute Hope</name>
<email>eg@gaute.vetsj.com</email>
</author>
<published>2014-01-30T19:11:51Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5569344a7eeedbe903752fcc9321d7a1a3ace380'/>
<id>urn:sha1:5569344a7eeedbe903752fcc9321d7a1a3ace380</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ruby: Fix macros, use quoting</title>
<updated>2011-10-04T13:57:33Z</updated>
<author>
<name>Ali Polatel</name>
<email>alip@exherbo.org</email>
</author>
<published>2011-10-04T13:57:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5c00af46ec5add69b3b2750ea2a9437e5953a7b0'/>
<id>urn:sha1:5c00af46ec5add69b3b2750ea2a9437e5953a7b0</id>
<content type='text'>
Fix Data_Get_Notmuch_* macro definitions broken by prev. commit
Adequate quoting for Data_Get_Notmuch_* macros
Remove duplicated RSTRING_PTR() macros, move it to defs.h
</content>
</entry>
<entry>
<title>ruby: be consistent with notmuch's coding style</title>
<updated>2011-10-04T13:43:40Z</updated>
<author>
<name>Ali Polatel</name>
<email>alip@exherbo.org</email>
</author>
<published>2011-10-04T13:41:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=05dddf883dd762420bb8e6b86790e68d734fd568'/>
<id>urn:sha1:05dddf883dd762420bb8e6b86790e68d734fd568</id>
<content type='text'>
No functional change, just indentation
</content>
</entry>
</feed>
