Re: [PATCH v3] Allow content preference based on message content.
[notmuch-archives.git] / dc / 8cbf44f3fed6d739531c7e5417a05b23639c6f
1 Return-Path: <prvs=054f461ee=jrosenthal@jhu.edu>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 4D53F429E20\r
6         for <notmuch@notmuchmail.org>; Mon, 21 Mar 2011 09:45:08 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id ovnPVWlymPpT for <notmuch@notmuchmail.org>;\r
16         Mon, 21 Mar 2011 09:45:07 -0700 (PDT)\r
17 Received: from ipex1.johnshopkins.edu (ipex1.johnshopkins.edu [162.129.8.141])\r
18         (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 71CF3431FD0\r
21         for <notmuch@notmuchmail.org>; Mon, 21 Mar 2011 09:45:07 -0700 (PDT)\r
22 X-IronPort-AV: E=Sophos;i="4.63,220,1299474000"; d="scan'208";a="55254166"\r
23 Received: from dyn-butler-159-94.dyn.columbia.edu (HELO gogo.home)\r
24         ([128.59.159.94])\r
25         by ipex1.johnshopkins.edu with ESMTP/TLS/AES256-SHA;\r
26         21 Mar 2011 12:45:06 -0400\r
27 Received: from jkr by gogo.home with local (Exim 4.72)\r
28         (envelope-from <jrosenthal@jhu.edu>)\r
29         id 1Q1iE6-0002Ft-As; Mon, 21 Mar 2011 12:45:06 -0400\r
30 From: Jesse Rosenthal <jrosenthal@jhu.edu>\r
31 To: Jameson Rollins <jrollins@finestructure.net>,\r
32         Sebastian Spaeth <Sebastian@SSpaeth.de>,\r
33         Notmuch Mail <notmuch@notmuchmail.org>\r
34 Subject: Re: problem with folder: search in python bindings\r
35 In-Reply-To: <871v20bfij.fsf@servo.finestructure.net>\r
36 References: <87tyf4xmm1.fsf@servo.finestructure.net>\r
37         <87aagv2z92.fsf@SSpaeth.de>\r
38         <87y64dk9da.fsf@servo.finestructure.net>\r
39         <877hbsfq4q.fsf@SSpaeth.de>\r
40         <871v20bfij.fsf@servo.finestructure.net>\r
41 User-Agent: Notmuch/0.5-81-g708c4f4 (http://notmuchmail.org) Emacs/23.2.1\r
42         (i486-pc-linux-gnu)\r
43 Date: Mon, 21 Mar 2011 12:45:06 -0400\r
44 Message-ID: <87tyewtobx.fsf@gogo.home>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 21 Mar 2011 16:45:08 -0000\r
60 \r
61 \r
62 Hmm, I'm getting the same results from the python implementation.\r
63 \r
64 On Mon, 21 Mar 2011 09:32:52 -0700, Jameson Rollins <jrollins@finestructure.net> wrote:\r
65 > Any suggestions about how we might go about debugging this?\r
66 \r
67 One thing to try would be to run it step by step in an interactive session. I.e.,\r
68 \r
69 >>> import notmuch as nm\r
70 >>> db = nm.Database("/where/ever/it/is")\r
71 >>> qry = nm.Query(db, "folder:sent")\r
72 \r
73 Then, two things to look at. What's the output of\r
74 \r
75 >>> qry.count_messages()\r
76 \r
77 and what's the output of \r
78 \r
79 >>> len(qry.search_messages())\r
80 \r
81 If you're still getting weird results on both, try dumping the search\r
82 results into a list\r
83 \r
84 >>> msgs = [m for m in qry.search_messages()]\r
85 \r
86 and take a look at them. Anything special about those messages?\r
87 \r
88 Best,\r
89 Jesse\r
90 \r