unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jameson Rollins <jrollins@finestructure.net>
To: Sebastian Spaeth <Sebastian@SSpaeth.de>,
	Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: problem with folder: search in python bindings
Date: Mon, 21 Mar 2011 09:32:52 -0700	[thread overview]
Message-ID: <871v20bfij.fsf@servo.finestructure.net> (raw)
In-Reply-To: <877hbsfq4q.fsf@SSpaeth.de>

[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]

On Mon, 21 Mar 2011 16:29:57 +0100, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:
> On Thu, 17 Mar 2011 09:19:29 -0700, Jameson Rollins <jrollins@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

Thanks, Sebastian.  Very convenient of you to include it in the repo!

> Let me know what you find out.

So right off the bat I'm seeing a big discrepancy between the results
From notmuch and notmuch.py:

servo:~/src/notmuch/git [personal] 0$ notmuch count from:jrollins
34358
servo:~/src/notmuch/git [personal] 0$ ./bindings/python/notmuch.py count from:jrollins
34358
servo:~/src/notmuch/git [personal] 0$ notmuch count folder:sent
635
servo:~/src/notmuch/git [personal] 0$ ./bindings/python/notmuch.py count folder:sent
7
servo:~/src/notmuch/git [personal] 0$ 

As you can see, the two interfaces are returning the same results for
the "from:jrollins" search, but the binary is returning 635 results for
the "folder:sent" search while the python interface is returning 7.
That's a big discrepancy.  This must be related to the same problem I
was seeing with my test case.

I'm running notmuch.py from my "personal" branch, which is the same
branch that the binary has been compiled from.  My database has also
recently been rebuild from the same branch.

I really have no idea what could be going on here.  It's a stranger
result even than the one I was seeing before, since it is actually
returning *some* results.

Any suggestions about how we might go about debugging this?

jamie.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2011-03-21 16:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15 18:30 problem with folder: search in python bindings Jameson Rollins
2011-03-16  9:25 ` Sebastian Spaeth
2011-03-17 16:19   ` Jameson Rollins
2011-03-21 15:29     ` Sebastian Spaeth
2011-03-21 16:32       ` Jameson Rollins [this message]
2011-03-21 16:45         ` Jesse Rosenthal
2011-03-21 17:34           ` Jameson Rollins
2011-03-21 17:42             ` Jesse Rosenthal
2011-03-21 18:01               ` Jameson Rollins
2011-03-22  9:35                 ` Sebastian Spaeth
2011-03-22 16:32                   ` Jameson Rollins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871v20bfij.fsf@servo.finestructure.net \
    --to=jrollins@finestructure.net \
    --cc=Sebastian@SSpaeth.de \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).