Re: [PATCH 1/2] Add Google Inc. to AUTHORS as a contributor.
[notmuch-archives.git] / 7e / afd1091658edde0271af9b7e70629a8adb678b
1 Return-Path: <james@jameswestby.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 3A6594048F5\r
6         for <notmuch@notmuchmail.org>; Sun, 14 Mar 2010 12:01:34 -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.866\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.866 tagged_above=-999 required=5\r
12         tests=[AWL=-0.867, BAYES_50=0.001] autolearn=ham\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 ivMi0VwZ6W3y for <notmuch@notmuchmail.org>;\r
16         Sun, 14 Mar 2010 12:01:33 -0700 (PDT)\r
17 Received: from jameswestby.net (jameswestby.net [89.145.97.141])\r
18         by olra.theworths.org (Postfix) with ESMTP id 34A3A454968\r
19         for <notmuch@notmuchmail.org>; Sun, 14 Mar 2010 12:01:33 -0700 (PDT)\r
20 Received: from [74.220.175.184] (helo=flash)\r
21         by jameswestby.net with esmtpa (Exim 4.69)\r
22         (envelope-from <james@jameswestby.net>)\r
23         id 1Nqt47-00048z-BI; Sun, 14 Mar 2010 19:01:31 +0000\r
24 Received: by flash (Postfix, from userid 1000)\r
25         id B3699605C14; Sun, 14 Mar 2010 15:01:28 -0400 (EDT)\r
26 From: James Westby <jw+debian@jameswestby.net>\r
27 To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org\r
28 In-Reply-To: <1268590751-7478-1-git-send-email-sojkam1@fel.cvut.cz>\r
29 References: <87mxyabwha.fsf@steelpick.localdomain>\r
30         <1268590751-7478-1-git-send-email-sojkam1@fel.cvut.cz>\r
31 Date: Sun, 14 Mar 2010 15:01:28 -0400\r
32 Message-ID: <87ociqbud3.fsf@jameswestby.net>\r
33 MIME-Version: 1.0\r
34 Content-Type: text/plain; charset=us-ascii\r
35 Subject: Re: [notmuch] [PATCH] Produce valid JSON output even if mail body\r
36  is empty\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Sun, 14 Mar 2010 19:01:34 -0000\r
50 \r
51 On Sun, 14 Mar 2010 19:19:11 +0100, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
52 > Mails with empty body produced the following output:\r
53 >   "body": [{"id": 1, "content-type": "text/plain", "content": (null)}]\r
54 > The (null) is not valid JSON syntax.\r
55 \r
56 Is this just something that can happen with the body?\r
57 \r
58 I've see (null) in the emacs interface when I've done something silly\r
59 such as opening a newer notmuch db with an old client.\r
60 \r
61 Should all the attributes be guarded in a similar manner to ensure valid\r
62 JSON?\r
63 \r
64 Thanks,\r
65 \r
66 James\r