[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 93 / 863f779713434ee84f726f61fafc6c397b8e0b
1 Return-Path: <pioto@pioto.org>\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 C7CB1431FB6\r
6         for <notmuch@notmuchmail.org>; Sat, 29 Jan 2011 07:59:54 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 bUIEijtXyKVk for <notmuch@notmuchmail.org>;\r
16         Sat, 29 Jan 2011 07:59:54 -0800 (PST)\r
17 Received: from everglades.pioto.org (mail.pioto.org [207.192.71.235])\r
18         by olra.theworths.org (Postfix) with ESMTP id E7F42431FB5\r
19         for <notmuch@notmuchmail.org>; Sat, 29 Jan 2011 07:59:53 -0800 (PST)\r
20 Received: from aether (c-68-44-60-100.hsd1.nj.comcast.net [68.44.60.100])\r
21         (Authenticated sender: pioto)\r
22         by everglades.pioto.org (Postfix) with ESMTPSA id BA0C1160644\r
23         for <notmuch@notmuchmail.org>; Sat, 29 Jan 2011 10:59:52 -0500 (EST)\r
24 Date: Sat, 29 Jan 2011 10:59:45 -0500\r
25 From: Mike Kelly <pioto@pioto.org>\r
26 To: notmuch@notmuchmail.org\r
27 Subject: Re: About the json output and the number of results shown.\r
28 Message-ID: <20110129105945.17700652@aether>\r
29 In-Reply-To: <87mxmkn4g7.fsf@yoom.home.cworth.org>\r
30 References: <AANLkTi=Mzu9bu3y0RKB5YZUpZOT9qujXgxtpB-8Bvk=2@mail.gmail.com>\r
31         <1294871985-ner-781@everglades>\r
32         <87mxmkn4g7.fsf@yoom.home.cworth.org>\r
33 X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.1; x86_64-pc-linux-gnu)\r
34 Mime-Version: 1.0\r
35 Content-Type: multipart/signed; micalg=PGP-SHA1;\r
36         boundary="Sig_/YVvfyRZQKLLDtsblYT9WG/G";\r
37         protocol="application/pgp-signature"\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Sat, 29 Jan 2011 15:59:55 -0000\r
51 \r
52 --Sig_/YVvfyRZQKLLDtsblYT9WG/G\r
53 Content-Type: text/plain; charset=US-ASCII\r
54 Content-Transfer-Encoding: quoted-printable\r
55 \r
56 On Sat, 29 Jan 2011 06:44:40 +1000\r
57 Carl Worth <cworth@cworth.org> wrote:\r
58 \r
59 > On Wed, 12 Jan 2011 22:39:45 +0000, Mike Kelly <pioto@pioto.org>\r
60 > wrote:\r
61 > > For starters, if I'm simply trying to retrieve a single message, the\r
62 > > interface is rather awkard. I seem to need to do something like:\r
63 > >=20\r
64 > >     my $json =3D `notmuch show --format=3Djson id:$message_id`;\r
65 > >     my $parsed_json =3D decode_json($json);\r
66 > >     my $message =3D $parsed_json->[0][0][0];\r
67 >=20\r
68 > That does seem fairly awkward, yes. Do you have a suggestion for how\r
69 > you'd like the output to be structured instead?\r
70 \r
71 Well, if I ask for a single message, I'd expect to just get a single\r
72 message. So, $message =3D $parsed_json, without the extra single-entry\r
73 arrays.\r
74 \r
75 > > And, when I'm doing my search earlier to even find those message\r
76 > > ids, I need to do a check to `notmuch count` first to see if I'll\r
77 > > even get any results, because the 0 result case is not valid JSON.\r
78 >=20\r
79 > Yikes! That's a bug in notmuch that we should get fixed rather than\r
80 > you just working around it. I just started adding a test for this\r
81 > case. Currently:\r
82 >=20\r
83 >       notmuch search --format=3Djson "string that matches nothing"\r
84 >=20\r
85 > returns nothing. Presumably, this should return just an empty json\r
86 > array instead, (that is, "[]")?\r
87 \r
88 Yeah, should be "[]".\r
89 \r
90 Thanks.\r
91 \r
92 --=20\r
93 Mike Kelly\r
94 \r
95 --Sig_/YVvfyRZQKLLDtsblYT9WG/G\r
96 Content-Type: application/pgp-signature; name=signature.asc\r
97 Content-Disposition: attachment; filename=signature.asc\r
98 \r
99 -----BEGIN PGP SIGNATURE-----\r
100 Version: GnuPG v2.0.17 (GNU/Linux)\r
101 \r
102 iEYEARECAAYFAk1EOXQACgkQokMzJ47YCzoNRgCfcwlZdwPNo7DgIxv4OMt0xHTW\r
103 CagAn2196bRcBFN6BNvjfFqKCJd1KQua\r
104 =HpoE\r
105 -----END PGP SIGNATURE-----\r
106 \r
107 --Sig_/YVvfyRZQKLLDtsblYT9WG/G--\r