[PATCH v5 2/5] Rename the -json printer functions in notmuch-reply and notmuch-show...
[notmuch-archives.git] / 1c / 3558020074735c04e1a9fe23ebafb5b559707b
1 Return-Path: <amdragon@mit.edu>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 056BA431FAF\r
6         for <notmuch@notmuchmail.org>; Sun, 11 Mar 2012 17:36:17 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id dDF4-py9Rwi5 for <notmuch@notmuchmail.org>;\r
16         Sun, 11 Mar 2012 17:36:16 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU\r
18         [18.9.25.15])\r
19         by olra.theworths.org (Postfix) with ESMTP id 7758E431FAE\r
20         for <notmuch@notmuchmail.org>; Sun, 11 Mar 2012 17:36:16 -0700 (PDT)\r
21 X-AuditID: 1209190f-b7f8a6d000000914-11-4f5d44ffc47d\r
22 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
23         by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 81.D6.02324.FF44D5F4; Sun, 11 Mar 2012 20:36:15 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id q2C0aE3R013450; \r
27         Sun, 11 Mar 2012 20:36:14 -0400\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q2C0aDAI012712\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Sun, 11 Mar 2012 20:36:14 -0400 (EDT)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1S6tFF-0003CT-Nb; Sun, 11 Mar 2012 20:36:13 -0400\r
37 Date: Sun, 11 Mar 2012 20:36:13 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
40 Subject: Re: [PATCH v6 06/10] schemata: Add documentation for JSON reply\r
41         format.\r
42 Message-ID: <20120312003613.GB2754@mit.edu>\r
43 References: <1329893199-21630-1-git-send-email-awg+notmuch@xvx.ca>\r
44         <1329893199-21630-7-git-send-email-awg+notmuch@xvx.ca>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 Content-Disposition: inline\r
48 In-Reply-To: <1329893199-21630-7-git-send-email-awg+notmuch@xvx.ca>\r
49 User-Agent: Mutt/1.5.21 (2010-09-15)\r
50 X-Brightmail-Tracker:\r
51  H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IR4hTV1v3vEutv0NWoaHFkzyx2i+s3ZzI7\r
52         MHk8W3WL2aPpx2LWAKYoLpuU1JzMstQifbsErozLb2+yFszgq7hy9zV7A2MfVxcjJ4eEgInE\r
53         hMOtrBC2mMSFe+vZuhi5OIQE9jFKbPl/lwnC2cAo8e/TDXaQKiGBk0wSG5p5IBJLGCXO/j0J\r
54         1s4ioCrx+thGNhCbTUBDYtv+5YwgtoiAlsSP9V/BapgFpCW+/W5mArGFBYIkmj4tBLN5BbQl\r
55         3rcuZoZYUC2xedJkNoi4oMTJmU9YIHq1JG78ewlUzwE2Z/k/DpAwp4CzxLlVv8BWiQqoSEw5\r
56         uY1tAqPQLCTds5B0z0LoXsDIvIpRNiW3Sjc3MTOnODVZtzg5MS8vtUjXRC83s0QvNaV0EyM4\r
57         rCX5dzB+O6h0iFGAg1GJh5fTIMpfiDWxrLgy9xCjJAeTkiivv2OsvxBfUn5KZUZicUZ8UWlO\r
58         avEhRgkOZiUR3oeGQDnelMTKqtSifJiUNAeLkjivmtY7PyGB9MSS1OzU1ILUIpisDAeHkgSv\r
59         ATB+hQSLUtNTK9Iyc0oQ0kwcnCDDeYCGR4HU8BYXJOYWZ6ZD5E8xKkqJ8zqDJARAEhmleXC9\r
60         sLTzilEc6BVh3kCQKh5gyoLrfgU0mAlo8GeuaJDBJYkIKakGRs11jozJrBW1tyue/VN35Z5y\r
61         659kruy2Y2dlLniI2Ky1vcmrOkvPw2/GadZbntlpp6ufld8zDz5W+y6gZtvhP52z9TkkxNcL\r
62         8vH+smSIVHwVvbQ44VzC45OzdnozbhP5PumuwwtlyRTXKz57Y/63zxGKbl3QF73rhtlrgcpZ\r
63         fOceyEat3jw1RomlOCPRUIu5qDgRAEzZ0oIWAwAA\r
64 Cc: notmuch@notmuchmail.org\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.13\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69         <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Mon, 12 Mar 2012 00:36:17 -0000\r
78 \r
79 Oops.  Looks like I left references to various old JSON functions in\r
80 the schemata file.  I'll submit a patch to fix those up, but you might\r
81 as well use the correct function names in the new documentation.\r
82 \r
83 Quoth Adam Wolfe Gordon on Feb 21 at 11:46 pm:\r
84 > ---\r
85 >  devel/schemata |   27 +++++++++++++++++++++++++--\r
86 >  1 files changed, 25 insertions(+), 2 deletions(-)\r
87\r
88 > diff --git a/devel/schemata b/devel/schemata\r
89 > index d90d4c6..ee8cfc0 100644\r
90 > --- a/devel/schemata\r
91 > +++ b/devel/schemata\r
92 > @@ -74,8 +74,9 @@ part = {\r
93 >      content?:       string    # pre-fetched body content\r
94 >  }\r
95 >  \r
96 > -# The headers of a message (format_headers_json with raw headers) or\r
97 > -# a part (format_headers_message_part_json with pretty-printed headers)\r
98 > +# The headers of a message (format_headers_json with raw headers\r
99 > +# and reply = FALSE) or a part (format_headers_message_part_json\r
100 > +# with pretty-printed headers)\r
101 \r
102 There's only format_headers_json now and it outputs pretty-printed\r
103 headers.\r
104 \r
105 >  headers = {\r
106 >      Subject:        string,\r
107 >      From:           string,\r
108 > @@ -133,3 +134,25 @@ thread = {\r
109 >                                # matched and unmatched\r
110 >      subject:        string\r
111 >  }\r
112 > +\r
113 > +notmuch reply schema\r
114 > +--------------------\r
115 > +\r
116 > +reply = {\r
117 > +    # The headers of the constructed reply (format_headers_json with\r
118 > +    # raw headers and reply = TRUE)\r
119 > +    reply-headers: reply_headers,\r
120 > +\r
121 > +    # As in the show format (format_message_json)\r
122 \r
123 format_part_json\r
124 \r
125 > +    original: message\r
126 > +}\r
127 > +\r
128 > +reply_headers = {\r
129 > +    Subject:        string,\r
130 > +    From:           string,\r
131 > +    To?:            string,\r
132 > +    Cc?:            string,\r
133 > +    Bcc?:           string,\r
134 > +    In-reply-to:    string,\r
135 > +    References:     string\r
136 > +}\r