<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/bindings/python, branch 0.7</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.7</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.7'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-07-11T13:02:12Z</updated>
<entry>
<title>python: represent message tags as unicode instances</title>
<updated>2011-07-11T13:02:12Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-07-11T13:02:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=687366b920caa5de6ea0b66b70cf2a11e5399f7b'/>
<id>urn:sha1:687366b920caa5de6ea0b66b70cf2a11e5399f7b</id>
<content type='text'>
Rather than returning simply strings and having to guess their encoding,
return explicit unicode() strings for the tags. Xapian stores UTF8, so
we know that they come as UTF8 encoded string.

Note: I tried to directly use the c_wchar_p type of the ctypes library
which translates directly into an unicode type, but that did not work
out so well, so we take c_char_p and .decode() them manually.

Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
<entry>
<title>python: Encode query string as a utf-8 byte array</title>
<updated>2011-07-11T09:46:54Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-07-11T09:39:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=504b6242d1fd67d04ee236fc92a54ca39fd682f7'/>
<id>urn:sha1:504b6242d1fd67d04ee236fc92a54ca39fd682f7</id>
<content type='text'>
If we pass in an unicode instance as query string, we would probably get
weird behavior (and indeed do so, see mail
id:"20110707113700.GA16347@megatron"). If a unicode instance is passed
in, make sure we encode it properly to an utf-8 encoded byte string.

Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
<entry>
<title>python: Fix Database().needs_upgrade()</title>
<updated>2011-07-08T20:47:06Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-07-08T20:47:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3545a2960db0017cd2e632171015069e99656488'/>
<id>urn:sha1:3545a2960db0017cd2e632171015069e99656488</id>
<content type='text'>
A stupid typo was preventing this from ever working and it was not
detected until now. Patrick noted the typo and proposed the fix in mail
id:"20110704203926.GA20238@brick.lan".

Patch-by: Patrick Totzke &lt;patricktotzke@googlemail.com&gt;
Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
<entry>
<title>python: Do not implicitely call maildir_flags_to_tags etc</title>
<updated>2011-06-24T06:44:06Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-06-24T06:44:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e59eaa5ddd2c23742c95e2acd34673b58ea34d2d'/>
<id>urn:sha1:e59eaa5ddd2c23742c95e2acd34673b58ea34d2d</id>
<content type='text'>
In order to remain consistent with the underlying C API, we do not
automatically synchronize notmuch tags and maildir flags anymore.

The underlying functions Message.maildir_flags_to_tags and
Message.tags_to_maildir_flags still exist and are available to the user.

Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
<entry>
<title>Do not import notmuch in setup.py.</title>
<updated>2011-06-20T07:45:43Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-06-19T19:53:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c39b492c19ae667b2db2205b113d8378ddcb9093'/>
<id>urn:sha1:c39b492c19ae667b2db2205b113d8378ddcb9093</id>
<content type='text'>
Importing notmuch loads the notmuch shared library. When building
without a system install of notmuch, this requires e.g. setting
LD_LIBRARY_PATH for building and fails completely for cleaning.
</content>
</entry>
<entry>
<title>Simplify (&amp; fix) Message().__str__()</title>
<updated>2011-06-16T15:33:47Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-06-16T15:33:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=12d6f90e77d975be721b6878bf6bbf914d65a369'/>
<id>urn:sha1:12d6f90e77d975be721b6878bf6bbf914d65a369</id>
<content type='text'>
We were still using len(self.get_replies()) for the __str__ summary of a
mail, but 1) len(Messages()) has just gone away 2) the number of replies
can not be retrieved when we got the message via search_messages()
anyway, and 3) it is likely quite expensive to pull all replies for all
messages that we display a summary of.

So we fix this by simplifying str(Message()) to omit the number of replies.

Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
<entry>
<title>python: Bulletproof Database() path parameter</title>
<updated>2011-06-16T13:51:13Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-06-16T13:51:13Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=995303c21bb5012b7eeaa1fe5fd15ae175bfa1e6'/>
<id>urn:sha1:995303c21bb5012b7eeaa1fe5fd15ae175bfa1e6</id>
<content type='text'>
libnotmuch (and python) crashed when I accidently passed in an invalid
value as path argument to the Database() instantiation.

Therefore, we now check via assert that the handed in path is actually a
real string (or None).

Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
<entry>
<title>python: Improve API documentation</title>
<updated>2011-06-16T13:41:48Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-06-16T13:41:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0817f0e168c8212200fc6624aeaac77318a9bc35'/>
<id>urn:sha1:0817f0e168c8212200fc6624aeaac77318a9bc35</id>
<content type='text'>
Various API doc cleanups and improvements. No code change.

Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
<entry>
<title>Implement Message.tags_to_maildir_flags</title>
<updated>2011-06-16T12:41:02Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-06-16T12:41:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d8c0e0c72dd19b50d51f07c70b880f21d69c2590'/>
<id>urn:sha1:d8c0e0c72dd19b50d51f07c70b880f21d69c2590</id>
<content type='text'>
and also maildir_flags_to_tags. The methods will be invoked by
db.add_message() and also (if not overridden via function parameter) by
add|remove_tag and remove_all_tags. Documentation on the usage has been
updated.

Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
<entry>
<title>python: Improve documentation</title>
<updated>2011-06-15T19:36:26Z</updated>
<author>
<name>Sebastian Spaeth</name>
<email>Sebastian@SSpaeth.de</email>
</author>
<published>2011-06-15T19:36:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b4049316cc3bc933453268ed8d3e89b1ee0098a1'/>
<id>urn:sha1:b4049316cc3bc933453268ed8d3e89b1ee0098a1</id>
<content type='text'>
Improve the documentation with regard to the new __cmp__ and __hash__
methods and the implications of doing set arithmetic with Messages()
objects.

Signed-off-by: Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;
</content>
</entry>
</feed>
