--- /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 ACCF0429E27\r
+ for <notmuch@notmuchmail.org>; Tue, 13 Mar 2012 21:30:41 -0700 (PDT)\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 qORfsGCsUZ+E for <notmuch@notmuchmail.org>;\r
+ Tue, 13 Mar 2012 21:30:40 -0700 (PDT)\r
+Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10])\r
+ by olra.theworths.org (Postfix) with ESMTP id 46285431FCF\r
+ for <notmuch@notmuchmail.org>; Tue, 13 Mar 2012 21:30:25 -0700 (PDT)\r
+Received: from pd3ml2so-ssvc.prod.shaw.ca ([10.0.141.138])\r
+ by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 13 Mar 2012 22:30:24 -0600\r
+X-Cloudmark-SP-Filtered: true\r
+X-Cloudmark-SP-Result: v=1.1 cv=w8ylZ/s5/CpB4NtJ57cq/Y3wf+h+jIFeVVN4WVEh/uc=\r
+ c=1 sm=1\r
+ a=DDStVRt5HYoA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
+ a=DgdU8Ar0EezpiEXugsgA:9 a=ys3i4kPKAKdt6LCgFAAA:7\r
+ a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
+Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
+ by pd3ml2so-dmz.prod.shaw.ca with ESMTP; 13 Mar 2012 22:30:21 -0600\r
+Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
+ id DDD388004EBA; Tue, 13 Mar 2012 22:30:20 -0600 (MDT)\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v7.1 05/11] schemata: Add documentation for JSON reply format.\r
+Date: Tue, 13 Mar 2012 22:30:10 -0600\r
+Message-Id: <1331699416-30775-6-git-send-email-awg+notmuch@xvx.ca>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1331699416-30775-1-git-send-email-awg+notmuch@xvx.ca>\r
+References: <1331525142-30539-1-git-send-email-awg+notmuch@xvx.ca>\r
+ <1331699416-30775-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, 14 Mar 2012 04:30:42 -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 24ad775..728a46f 100644\r
+--- a/devel/schemata\r
++++ b/devel/schemata\r
+@@ -77,8 +77,9 @@ part = {\r
+ content?: string\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
+@@ -136,3 +137,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_part_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