From 2f953b11d524e7989bd4ba3900b7648c1bd75288 Mon Sep 17 00:00:00 2001 From: Adam Wolfe Gordon Date: Mon, 12 Mar 2012 22:05:37 +1800 Subject: [PATCH] [PATCH v7 05/10] schemata: Add documentation for JSON reply format. --- 07/d3dc162630380b300d7fa5503069a6d3b48a56 | 103 ++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 07/d3dc162630380b300d7fa5503069a6d3b48a56 diff --git a/07/d3dc162630380b300d7fa5503069a6d3b48a56 b/07/d3dc162630380b300d7fa5503069a6d3b48a56 new file mode 100644 index 000000000..9e91c904c --- /dev/null +++ b/07/d3dc162630380b300d7fa5503069a6d3b48a56 @@ -0,0 +1,103 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 808D5431FAF + for ; Sun, 11 Mar 2012 21:06:04 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id HuhjbiTQLgVU for ; + Sun, 11 Mar 2012 21:06:03 -0700 (PDT) +Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9]) + by olra.theworths.org (Postfix) with ESMTP id 7645F431FDC + for ; Sun, 11 Mar 2012 21:06:02 -0700 (PDT) +Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd7ml3no-ssvc.prod.shaw.ca) + ([10.0.144.222]) + by pd7mo1no-svcs.prod.shaw.ca with ESMTP; 11 Mar 2012 22:06:02 -0600 +X-Cloudmark-SP-Filtered: true +X-Cloudmark-SP-Result: v=1.1 cv=aDUJ/pRHNXkohnfhaDKKve0FfU8uPxX8npdo6G126bI= + c=1 sm=1 + a=KJQp10CYt0cA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17 + a=DgdU8Ar0EezpiEXugsgA:9 a=ys3i4kPKAKdt6LCgFAAA:7 + a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 +Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56]) + by pd7ml3no-dmz.prod.shaw.ca with ESMTP; 11 Mar 2012 22:06:02 -0600 +Received: by lagos.xvx.ca (Postfix, from userid 1000) + id D451A8004958; Sun, 11 Mar 2012 22:06:01 -0600 (MDT) +From: Adam Wolfe Gordon +To: notmuch@notmuchmail.org +Subject: [PATCH v7 05/10] schemata: Add documentation for JSON reply format. +Date: Sun, 11 Mar 2012 22:05:37 -0600 +Message-Id: <1331525142-30539-6-git-send-email-awg+notmuch@xvx.ca> +X-Mailer: git-send-email 1.7.5.4 +In-Reply-To: <1331525142-30539-1-git-send-email-awg+notmuch@xvx.ca> +References: <1331525142-30539-1-git-send-email-awg+notmuch@xvx.ca> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 12 Mar 2012 04:06:04 -0000 + +--- + devel/schemata | 27 +++++++++++++++++++++++++-- + 1 files changed, 25 insertions(+), 2 deletions(-) + +diff --git a/devel/schemata b/devel/schemata +index 24ad775..b1073a9 100644 +--- a/devel/schemata ++++ b/devel/schemata +@@ -77,8 +77,9 @@ part = { + content?: string + } + +-# 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) + headers = { + Subject: string, + From: string, +@@ -136,3 +137,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) ++ original: message ++} ++ ++reply_headers = { ++ Subject: string, ++ From: string, ++ To?: string, ++ Cc?: string, ++ Bcc?: string, ++ In-reply-to: string, ++ References: string ++} +-- +1.7.5.4 + -- 2.26.2