[PATCH v6 06/10] schemata: Add documentation for JSON reply format.

Austin Clements amdragon at MIT.EDU
Sun Mar 11 17:36:13 PDT 2012


Oops.  Looks like I left references to various old JSON functions in
the schemata file.  I'll submit a patch to fix those up, but you might
as well use the correct function names in the new documentation.

Quoth Adam Wolfe Gordon on Feb 21 at 11:46 pm:
> ---
>  devel/schemata |   27 +++++++++++++++++++++++++--
>  1 files changed, 25 insertions(+), 2 deletions(-)
> 
> diff --git a/devel/schemata b/devel/schemata
> index d90d4c6..ee8cfc0 100644
> --- a/devel/schemata
> +++ b/devel/schemata
> @@ -74,8 +74,9 @@ part = {
>      content?:       string    # pre-fetched body content
>  }
>  
> -# The headers of a message (format_headers_json with raw headers) or
> -# a part (format_headers_message_part_json with pretty-printed headers)
> +# The headers of a message (format_headers_json with raw headers
> +# and reply = FALSE) or a part (format_headers_message_part_json
> +# with pretty-printed headers)

There's only format_headers_json now and it outputs pretty-printed
headers.

>  headers = {
>      Subject:        string,
>      From:           string,
> @@ -133,3 +134,25 @@ thread = {
>                                # matched and unmatched
>      subject:        string
>  }
> +
> +notmuch reply schema
> +--------------------
> +
> +reply = {
> +    # The headers of the constructed reply (format_headers_json with
> +    # raw headers and reply = TRUE)
> +    reply-headers: reply_headers,
> +
> +    # As in the show format (format_message_json)

format_part_json

> +    original: message
> +}
> +
> +reply_headers = {
> +    Subject:        string,
> +    From:           string,
> +    To?:            string,
> +    Cc?:            string,
> +    Bcc?:           string,
> +    In-reply-to:    string,
> +    References:     string
> +}


More information about the notmuch mailing list