unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Martin Monperrus <martin.monperrus@gnieh.org>
To: notmuch@notmuchmail.org
Subject: bug report: query field in JSON output is not semantic
Date: Wed, 13 Nov 2024 07:08:04 +0100	[thread overview]
Message-ID: <b88e2348-b168-449d-9ee9-e9a88f2769ab@gnieh.org> (raw)

Hi Notmuch team,

### Action:
$ notmuch search --output=summary --format=json "bug"'
{
   "thread": "000000000002a9f9",
   "timestamp": 1634505852,
   "date_relative": "2021-10-17",
   "matched": 6,
   "total": 14,
   "authors": "Martin Monperrus, Long Zhang| Benoit Baudry",
   "subject": "ChaosETH related work",
   "query": [
     "id:297c63e4490f35f52872c047216dc7239ab066a9.camel@csc.kth.se 
id:01e9953643a1b790370745247cd8530c302e8452.camel@csc.kth.se 
id:039b5a163a3ddd460b8b382051fc38f2aea7780e.camel@csc.kth.se 
id:042f2a8e038543f488232f681cfd902f@kth.se id:e7e3771ad783cbbb9b4efe18da12f0409b18d95d.camel@kth.se 
id:cd5d56e2789242e0a67cb26a77818638@kth.se",
     "id:fe72077bb44e478284eeaee78b815e92@kth.se 
id:81252c3aed01c60911297bda5e89fa50eef8d776.camel@csc.kth.se 
id:a82bbff022878f1273a4c2abb3ef784ce9803755.camel@csc.kth.se 
id:f2509185a4ef492388182306a317c382@kth.se id:69116b70151c4d24a9429951e2e8b647@kth.se 
id:a67c09ed-b56d-63de-beb8-fc59c438228e@kth.se 
id:f047bb2cf746526025ed67ffdfd675570c6f5579.camel@csc.kth.se 
id:c68abd54ce443ad6992269e97d142d45547ae176.camel@csc.kth.se"
   ],
   "tags": [
     "replied"
   ]
}

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

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




\r

             reply	other threads:[~2024-11-13 11:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-13  6:08 Martin Monperrus [this message]
2024-11-13 11:46 ` bug report: query field in JSON output is not semantic David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b88e2348-b168-449d-9ee9-e9a88f2769ab@gnieh.org \
    --to=martin.monperrus@gnieh.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).