Reply all - issue
[notmuch-archives.git] / 0f / b3506818668a3240a58ff393d216be799b2dd1
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 4BC18429E29\r
6         for <notmuch@notmuchmail.org>; Wed, 12 Jan 2011 14:39:47 -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 pHjb9mlIQ52g for <notmuch@notmuchmail.org>;\r
16         Wed, 12 Jan 2011 14:39:47 -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 E14E142D2BF\r
19         for <notmuch@notmuchmail.org>; Wed, 12 Jan 2011 14:39:46 -0800 (PST)\r
20 Received: by everglades.pioto.org (Postfix, from userid 1000)\r
21         id 249251616D0; Wed, 12 Jan 2011 17:39:45 -0500 (EST)\r
22 From: Mike Kelly <pioto@pioto.org>\r
23 Subject: Re: About the json output and the number of results shown.\r
24 To: notmuch@notmuchmail.org\r
25 References: <AANLkTi=Mzu9bu3y0RKB5YZUpZOT9qujXgxtpB-8Bvk=2@mail.gmail.com>\r
26 In-Reply-To: <AANLkTi=Mzu9bu3y0RKB5YZUpZOT9qujXgxtpB-8Bvk=2@mail.gmail.com>\r
27 MIME-Version: 1.0\r
28 Date: Wed, 12 Jan 2011 22:39:45 +0000\r
29 Message-Id: <1294871985-ner-781@everglades>\r
30 Content-Type: text/plain\r
31 X-BeenThere: notmuch@notmuchmail.org\r
32 X-Mailman-Version: 2.1.13\r
33 Precedence: list\r
34 List-Id: "Use and development of the notmuch mail system."\r
35         <notmuch.notmuchmail.org>\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
37         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
39 List-Post: <mailto:notmuch@notmuchmail.org>\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
43 X-List-Received-Date: Wed, 12 Jan 2011 22:39:47 -0000\r
44 \r
45 I've had other problems attempting to use the JSON interface recently.\r
46 For starters, if I'm simply trying to retrieve a single message, the\r
47 interface is rather awkard. I seem to need to do something like:\r
48 \r
49     my $json = `notmuch show --format=json id:$message_id`;\r
50     my $parsed_json = decode_json($json);\r
51     my $message = $parsed_json->[0][0][0];\r
52 \r
53 And, when I'm doing my search earlier to even find those message ids, I\r
54 need to do a check to `notmuch count` first to see if I'll even get any\r
55 results, because the 0 result case is not valid JSON.\r
56 \r
57 Of course, any feedback, like "you're doing it wrong" would be helpful.\r
58 My script is available at:\r
59 \r
60     http://git.pioto.org/gitweb?p=pioto-scripts.git;a=blob;f=mail/notmuch-poll.pl;hb=master\r
61 \r
62 -- \r
63 Mike Kelly\r