<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/query.cc, branch 0.21_rc2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.21_rc2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.21_rc2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2015-10-05T22:44:07Z</updated>
<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>
<entry>
<title>lib: add NOTMUCH_EXCLUDE_FLAG to notmuch_exclude_t</title>
<updated>2013-06-25T05:53:16Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2013-05-13T15:10:51Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d29d7e1ee25059c657412d5b045650f1e3e1533f'/>
<id>urn:sha1:d29d7e1ee25059c657412d5b045650f1e3e1533f</id>
<content type='text'>
Add NOTMUCH_EXCLUDE_FLAG to notmuch_exclude_t so that it can
cover all four values of search --exclude in the cli.

Previously the way to avoid any message being marked excluded was to
pass in an empty list of excluded tags: since we now have an explicit
option we might as well honour it.

The enum is in a slightly strange order as the existing FALSE/TRUE
options correspond to the new
NOTMUCH_EXCLUDE_FLAG/NOTMUCH_EXCLUDE_TRUE options so this means we do
not need to bump the version number.

Indeed, an example of this is that the cli count and show still use
FALSE/TRUE and still work.
</content>
</entry>
</feed>
