<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/bindings/ruby/database.c, branch 0.28.4</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.28.4</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.28.4'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2017-08-23T10:38:37Z</updated>
<entry>
<title>database: add n_d_index_file (deprecates n_d_add_message)</title>
<updated>2017-08-23T10:38:37Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2017-08-17T23:14:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b10ce6bc23002d48916b1b2f375480e7540e3164'/>
<id>urn:sha1:b10ce6bc23002d48916b1b2f375480e7540e3164</id>
<content type='text'>
We need a way to pass parameters to the indexing functionality on the
first index, not just on reindexing.  The obvious place is in
notmuch_database_add_message.  But since modifying the argument list
would break both API and ABI, we needed a new name.

I considered notmuch_database_add_message_with_params(), but the
functionality we're talking about doesn't always add a message.  It
tries to index a specific file, possibly adding a message, but
possibly doing other things, like adding terms to an existing message,
or failing to deal with message objects entirely (e.g. because the
file didn't contain a message).

So i chose the function name notmuch_database_index_file.

I confess i'm a little concerned about confusing future notmuch
developers with the new name, since we already have a private
_notmuch_message_index_file function, and the two do rather different
things.  But i think the added clarity for people linking against the
future libnotmuch and the capacity for using index parameters makes
this a worthwhile tradeoff.  (that said, if anyone has another name
that they strongly prefer, i'd be happy to go with it)

This changeset also adjusts the tests so that we test whether the new,
preferred function returns bad values (since the deprecated function
just calls the new one).

We can keep the deprecated n_d_add_message function around as long as
we like, but at the next place where we're forced to break API or ABI
we can probably choose to drop the name relatively safely.

NOTE: there is probably more cleanup to do in the ruby and go bindings
to complete the deprecation directly.  I don't know those languages
well enough to attempt a fix; i don't know how to test them; and i
don't know the culture around those languages about API additions or
deprecations.
</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: add bindings for `notmuch_database_get_all_tags`</title>
<updated>2016-05-19T11:02:43Z</updated>
<author>
<name>Ludovic LANGE</name>
<email>ll-notmuchmail@lange.nom.fr</email>
</author>
<published>2016-03-06T11:56:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7e6e23c36e290d4b22b0449766a6ef2107f1ef6c'/>
<id>urn:sha1:7e6e23c36e290d4b22b0449766a6ef2107f1ef6c</id>
<content type='text'>
The Ruby bindings were missing a way to get all the tags of the
database. Now you should be able to access this with the public
instance method `all_tags` of your database object.

Example of use:
    notmuchdb = Notmuch::Database.new path, { :create =&gt; false,
    	:mode =&gt; Notmuch::MODE_READ_ONLY }

    my_tags = notmuchdb.all_tags

    my_tags.each { |tag|
      print tag
    }

    my_tags.destroy!

Amended by db: improve error reporting, add test
</content>
</entry>
<entry>
<title>ruby: handle return status of database close</title>
<updated>2014-09-16T18:17:15Z</updated>
<author>
<name>Peter Wang</name>
<email>novalazy@gmail.com</email>
</author>
<published>2014-04-16T12:59:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=034102303eb4a2577ea06a453241fed6fe882322'/>
<id>urn:sha1:034102303eb4a2577ea06a453241fed6fe882322</id>
<content type='text'>
Throw an exception if notmuch_database_destroy fails.
</content>
</entry>
<entry>
<title>ruby: Update for changes to notmuch_database_get_directory</title>
<updated>2012-05-15T11:59:05Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-05-13T23:36:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bc4000a95289da7f4928ea448382c69781f2653c'/>
<id>urn:sha1:bc4000a95289da7f4928ea448382c69781f2653c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ruby: Update Ruby bindings for new notmuch_database_{open, create} signatures</title>
<updated>2012-05-05T13:14:47Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-04-30T16:25:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9721343e5b75e0e5a305ef32358fd83dcde650b4'/>
<id>urn:sha1:9721343e5b75e0e5a305ef32358fd83dcde650b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ruby: Use notmuch_database_destroy instead of notmuch_database_close</title>
<updated>2012-04-28T12:30:02Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2012-04-22T12:07:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=288feb7cdf1798408c708394fd935f05acf87985'/>
<id>urn:sha1:288feb7cdf1798408c708394fd935f05acf87985</id>
<content type='text'>
Adapt the ruby bindings to the notmuch_database_close split.

Signed-off-by: Justus Winter &lt;4winter@informatik.uni-hamburg.de&gt;
</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: Add wrappers for database_find_message*</title>
<updated>2011-10-04T13:06:20Z</updated>
<author>
<name>Ali Polatel</name>
<email>alip@exherbo.org</email>
</author>
<published>2011-10-04T13:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=898613116db746aa0f915ae43da8aba28545203d'/>
<id>urn:sha1:898613116db746aa0f915ae43da8aba28545203d</id>
<content type='text'>
Two new wrappers:
Notmuch::Database.find_message(id) =&gt; Notmuch::Message or nil
Notmuch::Database.find_message_by_filename(path) =&gt; Notmuch::Message or nil
</content>
</entry>
</feed>
