Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4D53F429E20 for ; Mon, 21 Mar 2011 09:45:08 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ovnPVWlymPpT for ; Mon, 21 Mar 2011 09:45:07 -0700 (PDT) Received: from ipex1.johnshopkins.edu (ipex1.johnshopkins.edu [162.129.8.141]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 71CF3431FD0 for ; Mon, 21 Mar 2011 09:45:07 -0700 (PDT) X-IronPort-AV: E=Sophos;i="4.63,220,1299474000"; d="scan'208";a="55254166" Received: from dyn-butler-159-94.dyn.columbia.edu (HELO gogo.home) ([128.59.159.94]) by ipex1.johnshopkins.edu with ESMTP/TLS/AES256-SHA; 21 Mar 2011 12:45:06 -0400 Received: from jkr by gogo.home with local (Exim 4.72) (envelope-from ) id 1Q1iE6-0002Ft-As; Mon, 21 Mar 2011 12:45:06 -0400 From: Jesse Rosenthal To: Jameson Rollins , Sebastian Spaeth , Notmuch Mail Subject: Re: problem with folder: search in python bindings In-Reply-To: <871v20bfij.fsf@servo.finestructure.net> References: <87tyf4xmm1.fsf@servo.finestructure.net> <87aagv2z92.fsf@SSpaeth.de> <87y64dk9da.fsf@servo.finestructure.net> <877hbsfq4q.fsf@SSpaeth.de> <871v20bfij.fsf@servo.finestructure.net> User-Agent: Notmuch/0.5-81-g708c4f4 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Mon, 21 Mar 2011 12:45:06 -0400 Message-ID: <87tyewtobx.fsf@gogo.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 16:45:08 -0000 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 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