<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/query.cc, branch 0.22.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.22.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.22.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2016-04-15T10:07:23Z</updated>
<entry>
<title>Add internal functions to search for alternate doc types</title>
<updated>2016-04-15T10:07:23Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2016-04-09T01:54:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=011fc41d4d1a1dc9ae3765c9f08ee603eea7bc7e'/>
<id>urn:sha1:011fc41d4d1a1dc9ae3765c9f08ee603eea7bc7e</id>
<content type='text'>
Publicly we are only exposing the non-ghost documents (of "type"
"mail").  But internally we might want to inspect the ghost messages
as well.

This changeset adds two new private interfaces to queries to recover
information about alternate document types.
</content>
</entry>
<entry>
<title>lib: add versions of n_q_count_{message,threads} with status return</title>
<updated>2015-10-05T22:44:07Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-09-27T15:31:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=87ee9a53e36f395e73e16da12cb268a708147259'/>
<id>urn:sha1:87ee9a53e36f395e73e16da12cb268a708147259</id>
<content type='text'>
Although I think it's a pretty bad idea to continue using the old API,
this allows both a more gentle transition for clients of the library,
and allows us to break one monolithic change into a series
</content>
</entry>
<entry>
<title>lib: constify arguments to notmuch_query_get_*</title>
<updated>2015-09-23T11:58:19Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-09-23T11:31:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=93ee4faa4d60e78c8cfeb95580919cac07ac0eca'/>
<id>urn:sha1:93ee4faa4d60e78c8cfeb95580919cac07ac0eca</id>
<content type='text'>
These functions are all just accessors, and it's pretty clear they don't
modify the query struct. This also fixes one warning I created when I
introduced status.c.
</content>
</entry>
<entry>
<title>lib: remove use of notmuch_query_search_messages from query.cc</title>
<updated>2015-09-04T11:06:08Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-06-07T15:01:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f16944c3b40be414aac85762e2f075a9d1239736'/>
<id>urn:sha1:f16944c3b40be414aac85762e2f075a9d1239736</id>
<content type='text'>
There is not too much point in worrying about the bad error reporting
here, because the count api is due for the same deprecation.
</content>
</entry>
<entry>
<title>lib: add public accessor for database from query</title>
<updated>2015-08-04T07:11:34Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-06-07T15:01:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6b440a0adf327fa9c3f5e3dcc84f9356c62a4580'/>
<id>urn:sha1:6b440a0adf327fa9c3f5e3dcc84f9356c62a4580</id>
<content type='text'>
This is to make it easier for clients of the library to update to the
new error code returning versions of notmuch_query_search_messages
</content>
</entry>
<entry>
<title>lib: replace almost all fprintfs in library with _n_d_log</title>
<updated>2015-03-28T23:34:15Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-12-26T16:25:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=736ac26407914425a9c94e86616225292cf716dd'/>
<id>urn:sha1:736ac26407914425a9c94e86616225292cf716dd</id>
<content type='text'>
This is not supposed to change any functionality from an end user
point of view. Note that it will eliminate some output to stderr. The
query debugging output is left as is; it doesn't really fit with the
current primitive logging model. The remaining "bad" fprintf will need
an internal API change.
</content>
</entry>
<entry>
<title>lib: make notmuch_query_count_messages explicitely exact</title>
<updated>2015-03-13T06:58:55Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-10-14T16:32:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6d44e5ac4743f618513c9a080733d91afa683f16'/>
<id>urn:sha1:6d44e5ac4743f618513c9a080733d91afa683f16</id>
<content type='text'>
The default is actually exact if no checkatleast parameter is
specified. This change makes that explicit, mainly for documentation,
but also to be safe in the unlikely event of a change of default.

[ commit message rewritten by db based on id:87lho0nlkk.fsf@nikula.org
]
</content>
</entry>
<entry>
<title>lib: add new status reporting API for notmuch_query_search_{m,t}</title>
<updated>2015-03-01T07:49:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-01-20T07:53:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7a0fc103678ea1b1da2df561d222c08db04c5af2'/>
<id>urn:sha1:7a0fc103678ea1b1da2df561d222c08db04c5af2</id>
<content type='text'>
This at least allows distinguishing between out of memory and Xapian
exceptions. Adding finer grained status codes would allow different
Xapian exceptions to be preserved.

Adding wrappers allows people to transition gradually to the new API,
at the cost of bloating the library API a bit.
</content>
</entry>
<entry>
<title>lib: make notmuch_threads_valid return FALSE when passed NULL</title>
<updated>2014-01-25T00:20:54Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-01-23T12:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=29f125212619ebca8621dd2106b412b22e1b6d22'/>
<id>urn:sha1:29f125212619ebca8621dd2106b412b22e1b6d22</id>
<content type='text'>
Without this patch, the example code in the header docs crashes for certain
invalid queries (see id:871u00oimv.fsf@approx.mit.edu)
</content>
</entry>
<entry>
<title>query: bind queries to database objects</title>
<updated>2013-11-02T13:20:01Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2013-09-30T16:04:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fd733a4f5c41948b895e37daf9bc0912f695ae59'/>
<id>urn:sha1:fd733a4f5c41948b895e37daf9bc0912f695ae59</id>
<content type='text'>
The queries don't really work after a database is closed, and we would
like them to be freed if the database is destroyed.

Acknowledged-by: David Bremner &lt;david@tethera.net&gt;
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
</feed>
