<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/bindings/python/docs, branch debian/0.31.2-2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.31.2-2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.31.2-2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2019-02-16T13:03:56Z</updated>
<entry>
<title>python: fix threads.__str__ automethod documentation</title>
<updated>2019-02-16T13:03:56Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2019-02-11T18:22:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0888639489dcde2b60e425d76842a4970e444cf6'/>
<id>urn:sha1:0888639489dcde2b60e425d76842a4970e444cf6</id>
<content type='text'>
Indent the directive properly to attach it to Threads autoclass
documentation.

Fixes:

WARNING: don't know which module to import for autodocumenting
'__str__' (try placing a "module" or "currentmodule" directive in the
document, or giving an explicit module name)
</content>
</entry>
<entry>
<title>python: fix documentation title underline</title>
<updated>2019-02-16T13:02:55Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2019-02-11T18:22:36Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=528e5ba2c8a6a8585a3508dee549b2880dfca671'/>
<id>urn:sha1:528e5ba2c8a6a8585a3508dee549b2880dfca671</id>
<content type='text'>
Fix documentation build sphinx warning:

filesystem.rst:18: WARNING: Title underline too short.
</content>
</entry>
<entry>
<title>python: fix documentation build with python 3.7</title>
<updated>2019-02-16T12:42:13Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani.nikula@intel.com</email>
</author>
<published>2019-02-11T18:22:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=510dc8c8377e4fef1e96c13c2ea3f25f4b51c889'/>
<id>urn:sha1:510dc8c8377e4fef1e96c13c2ea3f25f4b51c889</id>
<content type='text'>
The simplistic mocking in conf.py falls short on python 3.7. Just use
unittest.mock instead.

Fixes:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/config.py", line 368, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib/python3/dist-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "/path/to/notmuch/bindings/python/docs/source/conf.py", line 39, in &lt;module&gt;
    from notmuch import __VERSION__,__AUTHOR__
  File "/path/to/notmuch/bindings/python/notmuch/__init__.py", line 54, in &lt;module&gt;
    from .database import Database
  File "/path/to/notmuch/bindings/python/notmuch/database.py", line 25, in &lt;module&gt;
    from .globals import (
  File "/path/to/notmuch/bindings/python/notmuch/globals.py", line 48, in &lt;module&gt;
    class NotmuchDatabaseS(Structure):
TypeError: __mro_entries__ must return a tuple
</content>
</entry>
<entry>
<title>move more http -&gt; https</title>
<updated>2018-05-03T23:59:20Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2018-04-29T08:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c20a5eb80520a11cb697a45b0d9553c68e2199c8'/>
<id>urn:sha1:c20a5eb80520a11cb697a45b0d9553c68e2199c8</id>
<content type='text'>
Correct URLs that have crept into the notmuch codebase with http://
when https:// is possible.

As part of this conversion, this changeset also indicates the current
preferred upstream URLs for both gmime and sup.  the new URLs are
https-enabled, the old ones are not.

This also fixes T310-emacs.sh, thanks to Bremner for catching it.
</content>
</entry>
<entry>
<title>python: add bindings for notmuch_message_get_propert(y/ies)</title>
<updated>2018-05-02T23:16:11Z</updated>
<author>
<name>Ruben Pollan</name>
<email>meskio@sindominio.net</email>
</author>
<published>2018-05-02T17:01:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5e05f00fe59d2f2d7dceadefaab30bcc12b0e8df'/>
<id>urn:sha1:5e05f00fe59d2f2d7dceadefaab30bcc12b0e8df</id>
<content type='text'>
Message.get_property (prop) returns a string with the value of the property and
Message.get_properties (prop, exact=False) yields key, value pairs
</content>
</entry>
<entry>
<title>Fix typos as found by codespell</title>
<updated>2018-03-24T23:09:54Z</updated>
<author>
<name>Georg Faerber</name>
<email>georg@riseup.net</email>
</author>
<published>2018-03-18T02:30:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c117306f2dfcdf705ef3433962d227d1cb39eb90'/>
<id>urn:sha1:c117306f2dfcdf705ef3433962d227d1cb39eb90</id>
<content type='text'>
Signed-off-by: Georg Faerber &lt;georg@riseup.net&gt;
</content>
</entry>
<entry>
<title>python: Fix method name in docs</title>
<updated>2017-12-24T13:17:06Z</updated>
<author>
<name>l-m-h@web.de</name>
<email>l-m-h@web.de</email>
</author>
<published>2017-12-22T22:26:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e0ac149955686353570c19c9949c9032d46fb30f'/>
<id>urn:sha1:e0ac149955686353570c19c9949c9032d46fb30f</id>
<content type='text'>
Fix a method rename in the docs that was overlooked in
3444c731d27fd42bbbdaae00af6ca48b4525b03b.
</content>
</entry>
<entry>
<title>python: add bindings to access config</title>
<updated>2017-12-19T10:36:30Z</updated>
<author>
<name>l-m-h@web.de</name>
<email>l-m-h@web.de</email>
</author>
<published>2017-12-07T11:40:46Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6c6b0f13ffc3988b0f31774b33b8215be02abaa9'/>
<id>urn:sha1:6c6b0f13ffc3988b0f31774b33b8215be02abaa9</id>
<content type='text'>
The C functions notmuch_database_get_config,
notmuch_database_get_config_list and notmuch_database_set_config are
part of the official C bindings.  So there should also be some python
bindings for them.

Also they are the only way to access the named queries introduced in
b9bf3f44.

The interface of the python functions is designed to be close to the C
functions.
</content>
</entry>
<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>Fix orthography</title>
<updated>2017-07-18T09:50:44Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2017-07-17T22:16:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=87bdfbc91f65cb1031ef0ac8a804759f2061ac10'/>
<id>urn:sha1:87bdfbc91f65cb1031ef0ac8a804759f2061ac10</id>
<content type='text'>
</content>
</entry>
</feed>
