Re: [PATCH] lib: reword comment about XFOLDER: prefix
[notmuch-archives.git] / 5f / 3e69e7a13144539f569e5de7023f8bf608fc60
1 Return-Path: <Sebastian@SSpaeth.de>\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 53CAB431FD0\r
6         for <notmuch@notmuchmail.org>; Thu,  2 Jun 2011 00:05:49 -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.09\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id fBd-KXKp0B3v for <notmuch@notmuchmail.org>;\r
17         Thu,  2 Jun 2011 00:05:48 -0700 (PDT)\r
18 Received: from homiemail-a19.g.dreamhost.com (caiajhbdccah.dreamhost.com\r
19         [208.97.132.207])\r
20         by olra.theworths.org (Postfix) with ESMTP id B55CF431FB6\r
21         for <notmuch@notmuchmail.org>; Thu,  2 Jun 2011 00:05:48 -0700 (PDT)\r
22 Received: from homiemail-a19.g.dreamhost.com (localhost [127.0.0.1])\r
23         by homiemail-a19.g.dreamhost.com (Postfix) with ESMTP id D817F604084;\r
24         Thu,  2 Jun 2011 00:05:47 -0700 (PDT)\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:cc:subject\r
26         :in-reply-to:references:date:message-id:mime-version:\r
27         content-type; q=dns; s=sspaeth.de; b=flVEbuy11SPZs76/MlgZ/brIf4e\r
28         UjI6F3fj24hbnVp9YlrJr/Qs0iPkeRpnGndDQckR9TFBW2r7Z7WvKze1CE7cBHdv\r
29         I6jcYboBTC7fEhcnN3Ss6R5li73vlnKG0EiN6v0F5WEVuA7G5J2Yt+dAA6tCK3OA\r
30         /xy/8FuL1YGEz0jA=\r
31 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to:cc\r
32         :subject:in-reply-to:references:date:message-id:mime-version:\r
33         content-type; s=sspaeth.de; bh=LcWpqYo8zAqiH9WOcrczEC23w/Q=; b=g\r
34         0iQ47vmE3WlvTBsw7yUvv24OUlXgGfR9c07i+7Q2sNhiK9t2D1xEitRrlglWXTaV\r
35         zPlTFn3vkYZcQSYYjw8RZT9v79SpTIFW3yerNRtZuZh+3wHiEMiJeGIR0J6lJJmt\r
36         qf0kN20QErTsM/w8nqRdn1cycs00C3aaTrXir+Vbx8=\r
37 Received: from spaetzbook.sspaeth.de (unknown [195.250.171.64])\r
38         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
39         (No client certificate requested)\r
40         (Authenticated sender: fax@sspaeth.de)\r
41         by homiemail-a19.g.dreamhost.com (Postfix) with ESMTPSA id 56CBC604079; \r
42         Thu,  2 Jun 2011 00:05:40 -0700 (PDT)\r
43 Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation);\r
44         Thu, 02 Jun 2011 09:05:29 +0200\r
45 From: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
46 To: Brian May <brian@microcomaustralia.com.au>,\r
47         Patrick Totzke <patricktotzke@googlemail.com>\r
48 Subject: Re: [python] get all messages of a thread\r
49 In-Reply-To: <BANLkTikEJ9dJ5kLg2QJQ+egHg2sh7S1wiA@mail.gmail.com>\r
50 References: <1306588052-sup-9838@brick>\r
51         <BANLkTikEJ9dJ5kLg2QJQ+egHg2sh7S1wiA@mail.gmail.com>\r
52 User-Agent: Notmuch/0.5-209-gc8b5718 (http://notmuchmail.org) Emacs/23.2.1\r
53         (x86_64-pc-linux-gnu)\r
54 Date: Thu, 02 Jun 2011 09:05:29 +0200\r
55 Message-ID: <87aae07lxi.fsf@SSpaeth.de>\r
56 MIME-Version: 1.0\r
57 Content-Type: multipart/signed; boundary="=-=-=";\r
58         micalg=pgp-sha1; protocol="application/pgp-signature"\r
59 Cc: notmuch <notmuch@notmuchmail.org>\r
60 X-BeenThere: notmuch@notmuchmail.org\r
61 X-Mailman-Version: 2.1.13\r
62 Precedence: list\r
63 List-Id: "Use and development of the notmuch mail system."\r
64         <notmuch.notmuchmail.org>\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
68 List-Post: <mailto:notmuch@notmuchmail.org>\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
72 X-List-Received-Date: Thu, 02 Jun 2011 07:05:49 -0000\r
73 \r
74 --=-=-=\r
75 \r
76 On Wed, 1 Jun 2011 15:35:35 +1000, Brian May wrote:\r
77 > Oh, I see, for your code, there is a implied call to __len__, and the\r
78 > __len__ function is completely broken for the reasons described in the\r
79 > documentation:\r
80 \r
81 It seems to have been a bad idea to implement __len__ at all for the\r
82 Messsages() construct in the python bindings, and I wonder if I should\r
83 remove it.\r
84 \r
85 On the other hand, it seems that list(Messages()) implicitely calls\r
86 len(), or so it seems from the error that we get when trying to list() a\r
87 messages object.\r
88 \r
89 An alternative is to implement len() as a call to count_messages() which\r
90 has for me so far always returned the correct number of messages without\r
91 using up the iterator. However, the xapian docs explicitely state that\r
92 it does not guarantee that the count will be correct, so len() might\r
93 return a wrong message size (potentially).\r
94 \r
95 What would be the best way to solve this (besides fixing the C api to\r
96 allow to reset the iterator ;-) ?)\r
97 \r
98 I could implement a custom .as_list() function that returns the\r
99 Messages() object as a list that is guaranteed to be stable, by copying\r
100 out the Message() objects into a list.\r
101 \r
102 Sebastian\r
103 \r
104 --=-=-=\r
105 Content-Type: application/pgp-signature\r
106 \r
107 -----BEGIN PGP SIGNATURE-----\r
108 Version: GnuPG v1.4.11 (GNU/Linux)\r
109 \r
110 iEYEARECAAYFAk3nNjkACgkQVYX1jMgnoGJwrwCfTDJ4FxGbMYRyI8rcWrHvOHTz\r
111 lDsAnR1MA0rfwKMBBJzAVLJ73jZpbInt\r
112 =98j3\r
113 -----END PGP SIGNATURE-----\r
114 --=-=-=--\r