problem with folder: search in python bindings

2011-03-22 Thread Sebastian Spaeth
On Mon, 21 Mar 2011 11:01:24 -0700, Jameson Rollins wrote: > Oh good call, Jesse. Bonus points for you! That was the problem. Damn > it. In retrospect that's so obvious, though, isn't it! I had purged > the notmuch binary package, but had accidentally left libnotmuch1 and > libnotmuch-dev

problem with folder: search in python bindings

2011-03-22 Thread Jameson Rollins
On Tue, 22 Mar 2011 10:35:17 +0100, Sebastian Spaeth wrote: > Pfeww, I was getting very scared that the python bindings have serious > flaws that I am not aware of. Don't ever do that again to me :-). In the future, we should make sure that all new features are included since the beginning.

Re: problem with folder: search in python bindings

2011-03-22 Thread Sebastian Spaeth
On Mon, 21 Mar 2011 11:01:24 -0700, Jameson Rollins jroll...@finestructure.net wrote: Oh good call, Jesse. Bonus points for you! That was the problem. Damn it. In retrospect that's so obvious, though, isn't it! I had purged the notmuch binary package, but had accidentally left libnotmuch1

Re: problem with folder: search in python bindings

2011-03-22 Thread Jameson Rollins
On Tue, 22 Mar 2011 10:35:17 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: Pfeww, I was getting very scared that the python bindings have serious flaws that I am not aware of. Don't ever do that again to me :-). In the future, we should make sure that all new features are included since

problem with folder: search in python bindings

2011-03-21 Thread Sebastian Spaeth
On Thu, 17 Mar 2011 09:19:29 -0700, Jameson Rollins wrote: > Hey, Sebastian. Can you share your notmuch.py script? No, it's my secret plan for earning my pension :). You already got it: http://git.notmuchmail.org/git/notmuch/blob/HEAD:/bindings/python/notmuch.py Let me know what you find out.

problem with folder: search in python bindings

2011-03-21 Thread Jesse Rosenthal
On Mon, 21 Mar 2011 10:34:29 -0700, Jameson Rollins wrote: > It's going to take a lot more digging before I can identify what is > common about these messages and different from all the messages that are > not returned. One guess: do those messages happen to have "folder:sent" in the body? If

problem with folder: search in python bindings

2011-03-21 Thread Jesse Rosenthal
Hmm, I'm getting the same results from the python implementation. On Mon, 21 Mar 2011 09:32:52 -0700, Jameson Rollins wrote: > Any suggestions about how we might go about debugging this? One thing to try would be to run it step by step in an interactive session. I.e., >>> import notmuch as

problem with folder: search in python bindings

2011-03-21 Thread Jameson Rollins
On Mon, 21 Mar 2011 13:42:09 -0400, Jesse Rosenthal wrote: > On Mon, 21 Mar 2011 10:34:29 -0700, Jameson Rollins finestructure.net> wrote: > > It's going to take a lot more digging before I can identify what is > > common about these messages and different from all the messages that are > > not

problem with folder: search in python bindings

2011-03-21 Thread Jameson Rollins
On Mon, 21 Mar 2011 12:45:06 -0400, Jesse Rosenthal wrote: > One thing to try would be to run it step by step in an interactive session. > I.e., Hey, Jesse. So I'm getting different results interactively!: >>> import notmuch >>> db = notmuch.Database("/home/jrollins/.mail") >>> query =

problem with folder: search in python bindings

2011-03-21 Thread Jameson Rollins
On Mon, 21 Mar 2011 16:29:57 +0100, Sebastian Spaeth wrote: > On Thu, 17 Mar 2011 09:19:29 -0700, Jameson Rollins finestructure.net> wrote: > > Hey, Sebastian. Can you share your notmuch.py script? > > No, it's my secret plan for earning my pension :). > You already got it: >

Re: problem with folder: search in python bindings

2011-03-21 Thread Sebastian Spaeth
On Thu, 17 Mar 2011 09:19:29 -0700, Jameson Rollins jroll...@finestructure.net wrote: Hey, Sebastian. Can you share your notmuch.py script? No, it's my secret plan for earning my pension :). You already got it: http://git.notmuchmail.org/git/notmuch/blob/HEAD:/bindings/python/notmuch.py Let

Re: problem with folder: search in python bindings

2011-03-21 Thread Jesse Rosenthal
Hmm, I'm getting the same results from the python implementation. On Mon, 21 Mar 2011 09:32:52 -0700, Jameson Rollins jroll...@finestructure.net wrote: Any suggestions about how we might go about debugging this? One thing to try would be to run it step by step in an interactive session.

Re: problem with folder: search in python bindings

2011-03-21 Thread Jameson Rollins
On Mon, 21 Mar 2011 12:45:06 -0400, Jesse Rosenthal jrosent...@jhu.edu wrote: One thing to try would be to run it step by step in an interactive session. I.e., Hey, Jesse. So I'm getting different results interactively!: import notmuch db = notmuch.Database(/home/jrollins/.mail) query =

Re: problem with folder: search in python bindings

2011-03-21 Thread Jesse Rosenthal
On Mon, 21 Mar 2011 10:34:29 -0700, Jameson Rollins jroll...@finestructure.net wrote: It's going to take a lot more digging before I can identify what is common about these messages and different from all the messages that are not returned. One guess: do those messages happen to have

Re: problem with folder: search in python bindings

2011-03-21 Thread Jameson Rollins
On Mon, 21 Mar 2011 13:42:09 -0400, Jesse Rosenthal jrosent...@jhu.edu wrote: On Mon, 21 Mar 2011 10:34:29 -0700, Jameson Rollins jroll...@finestructure.net wrote: It's going to take a lot more digging before I can identify what is common about these messages and different from all the

problem with folder: search in python bindings

2011-03-17 Thread Jameson Rollins
On Wed, 16 Mar 2011 10:25:29 +0100, Sebastian Spaeth wrote: > Interesting, this is not at all what I am seeing in the current > bindings: > > cd ~/src/notmuch/bindings/python;./notmuch.py count 'folder:sent' > 1957 > /usr/local/bin/notmuch count 'folder:sent' > 1957 Hey, Sebastian. Can you

Re: problem with folder: search in python bindings

2011-03-17 Thread Jameson Rollins
On Wed, 16 Mar 2011 10:25:29 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: Interesting, this is not at all what I am seeing in the current bindings: cd ~/src/notmuch/bindings/python;./notmuch.py count 'folder:sent' 1957 /usr/local/bin/notmuch count 'folder:sent' 1957 Hey,

problem with folder: search in python bindings

2011-03-16 Thread Sebastian Spaeth
On Tue, 15 Mar 2011 11:30:30 -0700, Jameson Rollins wrote: > 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

Re: problem with folder: search in python bindings

2011-03-16 Thread Sebastian Spaeth
On Tue, 15 Mar 2011 11:30:30 -0700, Jameson Rollins jroll...@finestructure.net wrote: 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

problem with folder: search in python bindings

2011-03-15 Thread 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

problem with folder: search in python bindings

2011-03-15 Thread 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