]> git.cworth.org Git - notmuch/commit
CLI/show: support --duplicate for structured output
authorDavid Bremner <david@tethera.net>
Fri, 1 Jul 2022 21:45:44 +0000 (18:45 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 30 Jul 2022 11:41:50 +0000 (08:41 -0300)
commit4612f3eb3dbf16bf98ccbadef77d7a6f6361e692
tree11f6350c5731fe3777d66cbb87e198377c0c342e
parentcef5eaaef61b1f4dde6276ef267fb923f1b16680
CLI/show: support --duplicate for structured output

This introduces a new mandatory key for message structures, namely
"duplicate". Per convention in devel/schemata this does _not_ increase
the format version. This means that clients are responsible for
checking that it exists, and not crashing if it does not.

The main functional change is teaching mime_node_open to understand a
'duplicate' argument.

Support for --duplicate in notmuch-reply would make sense, but we
defer it to a later commit.
devel/schemata
mime-node.c
notmuch-client.h
notmuch-reply.c
notmuch-show.c
test/T160-json.sh
test/T170-sexp.sh
test/T520-show.sh
test/test-lib.sh