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

James Westby jw+debian at jameswestby.net
Sun Mar 14 12:01:28 PDT 2010


On Sun, 14 Mar 2010 19:19:11 +0100, Michal Sojka <sojkam1 at 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


More information about the notmuch mailing list