problem with folder: search in python bindings

Subject: problem with folder: search in python bindings

Date: Tue, 15 Mar 2011 11:30:30 -0700

To: Notmuch Mail

Cc:

From: Jameson Rollins


Hey, folks.  I'm seeing something peculiar with the python bindings.
It seems that I am not able to get any results when doing "folder:"
searches with the python bindings.  I'm using a version of notmuch that
includes the folder index patch.

Attached is a script that demonstrates the problem.  It generates a test
repository, then does a couple of searches over it.  When running the
script, I get the following output:

0$ ./python-folder-search-test
Found 2 total files (that's not much mail).
Note: Ignoring non-mail file: /home/jrollins/tmp/tmp.1dMO5vnweJ/config
Processed 2 total files in almost no time.
Added 1 new message to the database.
== notmuch search '*':
thread:0000000000000001  Yest. 23:26 [1/1] Jameson Rollins; python documentation (inbox signed unread)
== notmuch search 'folder:sent':
thread:0000000000000001  Yest. 23:26 [1/1] Jameson Rollins; python documentation (inbox signed unread)
== python search '*':
Jameson Rollins <jrollins@finestructure.net> (2011-03-14) (inbox signed unread) (-1) replies
== python search 'folder:sent':
0$ 

You can see that cli notmuch returns search results when searching for
"folder:sent".  The python bindings, on the other hand, return nothing.

Anyone have any idea what could be going on here?  I'm not familiar with
how the python bindings work, unfortunately.

jamie.

python-folder-search (application/octet-stream)
part-001.sig (application/pgp-signature)

Thread: