unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jesse Rosenthal <jrosenthal@jhu.edu>
To: Jameson Rollins <jrollins@finestructure.net>,
	Sebastian Spaeth <Sebastian@SSpaeth.de>,
	Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: problem with folder: search in python bindings
Date: Mon, 21 Mar 2011 12:45:06 -0400	[thread overview]
Message-ID: <87tyewtobx.fsf@gogo.home> (raw)
In-Reply-To: <871v20bfij.fsf@servo.finestructure.net>


Hmm, I'm getting the same results from the python implementation.

On Mon, 21 Mar 2011 09:32:52 -0700, Jameson Rollins <jrollins@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. I.e.,

>>> import notmuch as nm
>>> db = nm.Database("/where/ever/it/is")
>>> qry = nm.Query(db, "folder:sent")

Then, two things to look at. What's the output of

>>> qry.count_messages()

and what's the output of 

>>> len(qry.search_messages())

If you're still getting weird results on both, try dumping the search
results into a list

>>> msgs = [m for m in qry.search_messages()]

and take a look at them. Anything special about those messages?

Best,
Jesse

  reply	other threads:[~2011-03-21 16:45 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
2011-03-21 16:45         ` Jesse Rosenthal [this message]
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=87tyewtobx.fsf@gogo.home \
    --to=jrosenthal@jhu.edu \
    --cc=Sebastian@SSpaeth.de \
    --cc=jrollins@finestructure.net \
    --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).