Re: bug report: query field in JSON output is not semantic

Subject: Re: bug report: query field in JSON output is not semantic

Date: Wed, 13 Nov 2024 05:46:40 -0600

To: Martin Monperrus, notmuch@notmuchmail.org

Cc:

From: David Bremner


Martin Monperrus <martin.monperrus@gnieh.org> writes:

> Hi Notmuch team,
>

Hi Martin.

>
> ###Expected behavior:
> "query" field contains a semantic list of ids that can be manipulated in pure JSON
>

This might indeed have been a reasonable design, but it's not what is
documented in devel/schemata. So it depends which expectations I guess.

> ### Actual behavior:
> "query" field contains a string that has to be
> parsed, split by space

Currently we do not fix the query in question to be a list of
id's, so I guess it would conform to the current spec to outpu
t some
other kind of query that needed to be parsed. I don't forsee doing that,
though, so perhaps in the long term we can make this change.

It would require potentially adjusting the emacs front end and any other
client relying on the JSON format, so it's not a completely trivial
change.

Thanks for your suggestion,

David

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: