<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/bindings/ruby/message.c, branch 0.33.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.33.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.33.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-05-17T10:25:14Z</updated>
<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>
<entry>
<title>ruby: Rename destroy to destroy!</title>
<updated>2011-09-24T12:25:24Z</updated>
<author>
<name>Ali Polatel</name>
<email>alip@exherbo.org</email>
</author>
<published>2011-09-24T12:25:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a08aa32b44b28f50f00cbd69e1a39023158f1847'/>
<id>urn:sha1:a08aa32b44b28f50f00cbd69e1a39023158f1847</id>
<content type='text'>
According to the common Ruby function naming convention, potentially
dangerous functions or functions which operate on the object itself are
suffixed with an exclamation mark. Both of these are true for object
destroying functions.

The following modules are affected:
- Notmuch::Directory
- Notmuch::FileNames
- Notmuch::Query
- Notmuch::Threads
- Notmuch::Thread
- Notmuch::Messages
- Notmuch::Message
- Notmuch::Tags
</content>
</entry>
<entry>
<title>ruby: Add wrapper for message_get_filenames</title>
<updated>2011-01-25T10:03:41Z</updated>
<author>
<name>Ali Polatel</name>
<email>alip@exherbo.org</email>
</author>
<published>2011-01-10T14:03:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=90a66779e1a6f8c98521925875fbb9a19aeaf68a'/>
<id>urn:sha1:90a66779e1a6f8c98521925875fbb9a19aeaf68a</id>
<content type='text'>
</content>
</entry>
</feed>
