--- /dev/null
+Return-Path: <awg@lagos.xvx.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 9A051431FC0\r
+ for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 22:46:49 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id UwgYLB4RGmUx for <notmuch@notmuchmail.org>;\r
+ Tue, 21 Feb 2012 22:46:48 -0800 (PST)\r
+Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10])\r
+ by olra.theworths.org (Postfix) with ESMTP id E8677431FC3\r
+ for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 22:46:45 -0800 (PST)\r
+Received: from pd3ml3so-ssvc.prod.shaw.ca ([10.0.141.149])\r
+ by pd2mo1so-svcs.prod.shaw.ca with ESMTP; 21 Feb 2012 23:46:45 -0700\r
+X-Cloudmark-SP-Filtered: true\r
+X-Cloudmark-SP-Result: v=1.1 cv=zk9oM8twhc3i0pWciPL6Xc/pqaeDF/K3qFEQp81fRTo=\r
+ c=1 sm=1\r
+ a=ezfLm4zCzQkA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
+ a=DgdU8Ar0EezpiEXugsgA:9 a=vkInCAR_MaVbdWQuTq4A:7\r
+ a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
+Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
+ by pd3ml3so-dmz.prod.shaw.ca with ESMTP; 21 Feb 2012 23:46:45 -0700\r
+Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
+ id D3B128095C4F; Tue, 21 Feb 2012 23:46:44 -0700 (MST)\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v6 06/10] schemata: Add documentation for JSON reply format.\r
+Date: Tue, 21 Feb 2012 23:46:35 -0700\r
+Message-Id: <1329893199-21630-7-git-send-email-awg+notmuch@xvx.ca>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1329893199-21630-1-git-send-email-awg+notmuch@xvx.ca>\r
+References: <1329893199-21630-1-git-send-email-awg+notmuch@xvx.ca>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 22 Feb 2012 06:46:50 -0000\r
+\r
+---\r
+ devel/schemata | 27 +++++++++++++++++++++++++--\r
+ 1 files changed, 25 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/devel/schemata b/devel/schemata\r
+index d90d4c6..ee8cfc0 100644\r
+--- a/devel/schemata\r
++++ b/devel/schemata\r
+@@ -74,8 +74,9 @@ part = {\r
+ content?: string # pre-fetched body content\r
+ }\r
+ \r
+-# The headers of a message (format_headers_json with raw headers) or\r
+-# a part (format_headers_message_part_json with pretty-printed headers)\r
++# The headers of a message (format_headers_json with raw headers\r
++# and reply = FALSE) or a part (format_headers_message_part_json\r
++# with pretty-printed headers)\r
+ headers = {\r
+ Subject: string,\r
+ From: string,\r
+@@ -133,3 +134,25 @@ thread = {\r
+ # matched and unmatched\r
+ subject: string\r
+ }\r
++\r
++notmuch reply schema\r
++--------------------\r
++\r
++reply = {\r
++ # The headers of the constructed reply (format_headers_json with\r
++ # raw headers and reply = TRUE)\r
++ reply-headers: reply_headers,\r
++\r
++ # As in the show format (format_message_json)\r
++ original: message\r
++}\r
++\r
++reply_headers = {\r
++ Subject: string,\r
++ From: string,\r
++ To?: string,\r
++ Cc?: string,\r
++ Bcc?: string,\r
++ In-reply-to: string,\r
++ References: string\r
++}\r
+-- \r
+1.7.5.4\r
+\r