Re: [notmuch] [PATCH] Produce valid JSON output even if mail body is empty

Subject: Re: [notmuch] [PATCH] Produce valid JSON output even if mail body is empty

Date: Sun, 14 Mar 2010 15:01:28 -0400

To: Michal Sojka, notmuch@notmuchmail.org

Cc:

From: James Westby


On Sun, 14 Mar 2010 19:19:11 +0100, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
> Mails with empty body produced the following output:
>   "body": [{"id": 1, "content-type": "text/plain", "content": (null)}]
> The (null) is not valid JSON syntax.

Is this just something that can happen with the body?

I've see (null) in the emacs interface when I've done something silly
such as opening a newer notmuch db with an old client.

Should all the attributes be guarded in a similar manner to ensure valid
JSON?

Thanks,

James

Thread: