Re: [PATCH 1/2] Add Google Inc. to AUTHORS as a contributor.
[notmuch-archives.git] / 85 / efef405586e985db4276525ad29b168fcb6886
1 Return-Path: <jrollins@finestructure.net>\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 BE3A7429E20\r
6         for <notmuch@notmuchmail.org>; Mon, 21 Mar 2011 10:34:39 -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: 0.01\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
12         tests=[T_MIME_NO_TEXT=0.01] 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 mPR2g9tQL8v6 for <notmuch@notmuchmail.org>;\r
16         Mon, 21 Mar 2011 10:34:38 -0700 (PDT)\r
17 Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7])\r
18         by olra.theworths.org (Postfix) with ESMTP id 9AB80431FD0\r
19         for <notmuch@notmuchmail.org>; Mon, 21 Mar 2011 10:34:38 -0700 (PDT)\r
20 Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com\r
21         [98.149.172.122])\r
22         (user=jgr2110 author=jrollins@servo.finestructure.net mech=PLAIN\r
23         bits=0)\r
24         by tarap.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p2LHYZY6004814\r
25         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
26         Mon, 21 Mar 2011 13:34:36 -0400 (EDT)\r
27 Received: from jrollins by servo.finestructure.net with local (Exim 4.74)\r
28         (envelope-from <jrollins@finestructure.net>)\r
29         id 1Q1izw-0002Zn-IY; Mon, 21 Mar 2011 10:34:32 -0700\r
30 From: Jameson Rollins <jrollins@finestructure.net>\r
31 To: Jesse Rosenthal <jrosenthal@jhu.edu>,\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: <87tyewtobx.fsf@gogo.home>\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> <87tyewtobx.fsf@gogo.home>\r
41 User-Agent: Notmuch/0.5-137-g2e489e3 (http://notmuchmail.org) Emacs/23.2.1\r
42         (i486-pc-linux-gnu)\r
43 Date: Mon, 21 Mar 2011 10:34:29 -0700\r
44 Message-ID: <87hbaw9y3e.fsf@servo.finestructure.net>\r
45 MIME-Version: 1.0\r
46 Content-Type: multipart/signed; boundary="=-=-=";\r
47         micalg=pgp-sha256; protocol="application/pgp-signature"\r
48 X-No-Spam-Score: Local\r
49 X-Scanned-By: MIMEDefang 2.68 on 128.59.29.7\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Mon, 21 Mar 2011 17:34:39 -0000\r
63 \r
64 --=-=-=\r
65 Content-Transfer-Encoding: quoted-printable\r
66 \r
67 On Mon, 21 Mar 2011 12:45:06 -0400, Jesse Rosenthal <jrosenthal@jhu.edu> wr=\r
68 ote:\r
69 > One thing to try would be to run it step by step in an interactive sessio=\r
70 n. I.e.,\r
71 \r
72 Hey, Jesse.  So I'm getting different results interactively!:\r
73 \r
74 >>> import notmuch\r
75 >>> db =3D notmuch.Database("/home/jrollins/.mail")\r
76 >>> query =3D notmuch.Query(db, "folder:sent")\r
77 >>> query.count_messages()\r
78 9L\r
79 >>> len(query.search_messages())\r
80 9\r
81 >>>=20\r
82 \r
83 This same search returns 635 results with the binary, 7 results with the\r
84 notmuch.py script, and now 9 in this interactive session.  This is going\r
85 to be a pain to debug.\r
86 \r
87 > >>> msgs =3D [m for m in qry.search_messages()]\r
88 >=20\r
89 > and take a look at them. Anything special about those messages?\r
90 \r
91 So I'm seeing quite a few strange things here.\r
92 \r
93 >>> for m in msgs:\r
94 ...     print m.get_message_id()\r
95 ...     print ' ', m.get_filename()\r
96 ...=20\r
97 87tyewtobx.fsf@gogo.home\r
98   /home/jrollins/.mail/mailboxes/snapper/new/1300725908.Vfd05I469d8M318600.=\r
99 snapper\r
100 871v20bfij.fsf@servo.finestructure.net\r
101   /home/jrollins/.mail/mailboxes/snapper/new/1300725184.Vfd05I469d6M959989.=\r
102 snapper\r
103 87y64dk9da.fsf@servo.finestructure.net\r
104   /home/jrollins/.mail/mailboxes/snapper/new/1300378797.Vfd05I469d8M808571.=\r
105 snapper\r
106 87aagv2z92.fsf@SSpaeth.de\r
107   /home/jrollins/.mail/mailboxes/snapper/new/1300267540.Vfd05I46a17M964837.=\r
108 snapper\r
109 87tyf4xmm1.fsf@servo.finestructure.net\r
110   /home/jrollins/.mail/mailboxes/snapper/new/1300213852.Vfd05I469d8M923454.=\r
111 snapper\r
112 1290682750-30283-3-git-send-email-dme@dme.org\r
113   /home/jrollins/.mail/archive/2010/cur/1290698042_0.5764.servo,U=3D333629,=\r
114 FMD5=3D7e33429f656f1e6e9d79b29c3f82c57e:2,\r
115 8763426kd5.fsf@steelpick.2x.cz\r
116   /home/jrollins/.mail/archive/2010/cur/1270740662_1.29713.servo,U=3D264838=\r
117 ,FMD5=3D7e33429f656f1e6e9d79b29c3f82c57e:2,\r
118 87636feg10.fsf@servo.finestructure.net\r
119   /home/jrollins/.mail/archive/2010/cur/1265129567.M505745P5400Q1.servo:2,S\r
120 87eil3ehjh.fsf@servo.finestructure.net\r
121   /home/jrollins/.mail/archive/2010/cur/1265127608.M500761P12582Q1.servo:2,S\r
122 >>>=20\r
123 \r
124 First of all, only messages that were sent by me are in my sent folder.\r
125 There are no messages in there that are sent by anyone else.  But this\r
126 search is returning messages that are from people other than me.  That\r
127 makes no sense.\r
128 \r
129 Second, strangely, all of the messages are ones that are sent to the\r
130 notmuch list.  Not sure what to make of that except that the messages\r
131 that were sent from me to the list are also in my received mail so are\r
132 actually duplicated in my mail store.  I have plenty of other messages\r
133 that fall into that same condition, though.\r
134 \r
135 It's going to take a lot more digging before I can identify what is\r
136 common about these messages and different from all the messages that are\r
137 not returned.  For what it's worth, it's not *just* that they were sent\r
138 to the list, since the binary is counting 35 messages that are in the\r
139 sent folder and sent to the list:\r
140 \r
141 servo:~ 0$ notmuch count folder:sent and to:notmuch\r
142 35\r
143 servo:~ 0$=20\r
144 \r
145 I'll keep poking at this, but others can test this and report what they\r
146 see I would really appreciate it.\r
147 \r
148 jamie.\r
149 \r
150 --=-=-=\r
151 Content-Type: application/pgp-signature\r
152 \r
153 -----BEGIN PGP SIGNATURE-----\r
154 Version: GnuPG v1.4.11 (GNU/Linux)\r
155 \r
156 iQIcBAEBCAAGBQJNh4wlAAoJEO00zqvie6q8XSEP/jUHlD+r1fY86sPl61tDmQtE\r
157 P+jRj8FFe0ehcZFhQWhblXANSqdcmFkSZKc6wxFG/AK1zJs8/V1y9mH1WvsKvNVJ\r
158 PdNQqvDdnAjhpCx0zLZFKn81ySV8tl50IuIPms1GA2vIFxRcfkGhaBQrW99P22QJ\r
159 5G7pL1G6S+rkZadP3EYzNfH8e3njkoJMr5tG/JOe7POy2G59q+5iqQ1JHdg/iU5i\r
160 3gm8sH+4N7vwzNyUFvgNRk9jy3ECHBDcJcGwDcOoSWW8fQ9ZpfkjuaVcBUM9/gGi\r
161 p6rddMKVDZuhl3mjTCYnxTCJbTzD2fNOW2jWmx7lVoTbEwIvRBCzZp0r7Vh13o+n\r
162 OM5xZeoAYiPAhAd64+WMNZ+5NQ6J1iBW41TdGabQQVK0uqVezMGfmQb6g4ORfaMC\r
163 wY2AgpOnHQ7vUJLopz3byXhVY55zqGfrmxuFnQLbWqSCfVB9sbmyIbwmCVao3EGD\r
164 7EpNDUveoI/6zIvY9Lo5dTctHQOGRaebYo05kvaZ8ju+UFbkEZtR4zKieAGmKKhB\r
165 T3Dwo53teS6ZIimAwT3uGY/FSYkbp5QyM/pGmEX39Uimul9bjfkLB8s6gRcUpnYl\r
166 MLYfcVbZ5MAPc4O3YvuaIeHlNG1cVhvhRUnL4vi88iN2rff+GnqV72fXTiIZEICo\r
167 b9x9+G87gCTVXQFESjzi\r
168 =kQv5\r
169 -----END PGP SIGNATURE-----\r
170 --=-=-=--\r