aboutsummaryrefslogtreecommitdiffhomepage
path: root/devel
diff options
context:
space:
mode:
authorGravatar Adam Wolfe Gordon <awg+notmuch@xvx.ca>2012-03-18 10:32:37 -0600
committerGravatar David Bremner <bremner@debian.org>2012-03-19 21:56:25 -0300
commit5abc9c1097a54e0e8b62e468d51728edb26b9101 (patch)
tree7588656ce3f9a04e7189d9149fc7df0bfe1b45a5 /devel
parent1904b01b96c1b731afb9649e7b5bceffce901b88 (diff)
schemata: Add documentation for JSON reply format.
Diffstat (limited to 'devel')
-rw-r--r--devel/schemata27
1 files changed, 25 insertions, 2 deletions
diff --git a/devel/schemata b/devel/schemata
index 24ad7757..728a46f2 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_part_json)
+ original: message
+}
+
+reply_headers = {
+ Subject: string,
+ From: string,
+ To?: string,
+ Cc?: string,
+ Bcc?: string,
+ In-reply-to: string,
+ References: string
+}