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 056BA431FAF for ; Sun, 11 Mar 2012 17:36:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 dDF4-py9Rwi5 for ; Sun, 11 Mar 2012 17:36:16 -0700 (PDT) Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU [18.9.25.15]) by olra.theworths.org (Postfix) with ESMTP id 7758E431FAE for ; Sun, 11 Mar 2012 17:36:16 -0700 (PDT) X-AuditID: 1209190f-b7f8a6d000000914-11-4f5d44ffc47d Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id 81.D6.02324.FF44D5F4; Sun, 11 Mar 2012 20:36:15 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id q2C0aE3R013450; Sun, 11 Mar 2012 20:36:14 -0400 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q2C0aDAI012712 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 11 Mar 2012 20:36:14 -0400 (EDT) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1S6tFF-0003CT-Nb; Sun, 11 Mar 2012 20:36:13 -0400 Date: Sun, 11 Mar 2012 20:36:13 -0400 From: Austin Clements To: Adam Wolfe Gordon Subject: Re: [PATCH v6 06/10] schemata: Add documentation for JSON reply format. Message-ID: <20120312003613.GB2754@mit.edu> References: <1329893199-21630-1-git-send-email-awg+notmuch@xvx.ca> <1329893199-21630-7-git-send-email-awg+notmuch@xvx.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1329893199-21630-7-git-send-email-awg+notmuch@xvx.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IR4hTV1v3vEutv0NWoaHFkzyx2i+s3ZzI7 MHk8W3WL2aPpx2LWAKYoLpuU1JzMstQifbsErozLb2+yFszgq7hy9zV7A2MfVxcjJ4eEgInE hMOtrBC2mMSFe+vZuhi5OIQE9jFKbPl/lwnC2cAo8e/TDXaQKiGBk0wSG5p5IBJLGCXO/j0J 1s4ioCrx+thGNhCbTUBDYtv+5YwgtoiAlsSP9V/BapgFpCW+/W5mArGFBYIkmj4tBLN5BbQl 3rcuZoZYUC2xedJkNoi4oMTJmU9YIHq1JG78ewlUzwE2Z/k/DpAwp4CzxLlVv8BWiQqoSEw5 uY1tAqPQLCTds5B0z0LoXsDIvIpRNiW3Sjc3MTOnODVZtzg5MS8vtUjXRC83s0QvNaV0EyM4 rCX5dzB+O6h0iFGAg1GJh5fTIMpfiDWxrLgy9xCjJAeTkiivv2OsvxBfUn5KZUZicUZ8UWlO avEhRgkOZiUR3oeGQDnelMTKqtSifJiUNAeLkjivmtY7PyGB9MSS1OzU1ILUIpisDAeHkgSv ATB+hQSLUtNTK9Iyc0oQ0kwcnCDDeYCGR4HU8BYXJOYWZ6ZD5E8xKkqJ8zqDJARAEhmleXC9 sLTzilEc6BVh3kCQKh5gyoLrfgU0mAlo8GeuaJDBJYkIKakGRs11jozJrBW1tyue/VN35Z5y 659kruy2Y2dlLniI2Ky1vcmrOkvPw2/GadZbntlpp6ufld8zDz5W+y6gZtvhP52z9TkkxNcL 8vH+smSIVHwVvbQ44VzC45OzdnozbhP5PumuwwtlyRTXKz57Y/63zxGKbl3QF73rhtlrgcpZ fOceyEat3jw1RomlOCPRUIu5qDgRAEzZ0oIWAwAA Cc: notmuch@notmuchmail.org 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 00:36:17 -0000 Oops. Looks like I left references to various old JSON functions in the schemata file. I'll submit a patch to fix those up, but you might as well use the correct function names in the new documentation. Quoth Adam Wolfe Gordon on Feb 21 at 11:46 pm: > --- > devel/schemata | 27 +++++++++++++++++++++++++-- > 1 files changed, 25 insertions(+), 2 deletions(-) > > diff --git a/devel/schemata b/devel/schemata > index d90d4c6..ee8cfc0 100644 > --- a/devel/schemata > +++ b/devel/schemata > @@ -74,8 +74,9 @@ part = { > content?: string # pre-fetched body content > } > > -# 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) There's only format_headers_json now and it outputs pretty-printed headers. > headers = { > Subject: string, > From: string, > @@ -133,3 +134,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) format_part_json > + original: message > +} > + > +reply_headers = { > + Subject: string, > + From: string, > + To?: string, > + Cc?: string, > + Bcc?: string, > + In-reply-to: string, > + References: string > +}