From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C8C2E431FB6 for ; Sun, 5 Aug 2012 14:37:13 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 4V-GM+G2uIBm for ; Sun, 5 Aug 2012 14:37:09 -0700 (PDT) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 65A8D431FAE for ; Sun, 5 Aug 2012 14:37:09 -0700 (PDT) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id 0848F2E50D7C; Sun, 5 Aug 2012 14:37:09 -0700 (PDT) X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new Received: from finestructure.net (unknown [76.89.192.57]) (Authenticated sender: jrollins) by fire-doxen-submit (Postfix) with ESMTP id 443642E50D83; Sun, 5 Aug 2012 14:37:06 -0700 (PDT) Received: by finestructure.net (Postfix, from userid 1000) id D604747E; Sun, 5 Aug 2012 14:37:05 -0700 (PDT) From: Jameson Graef Rollins To: Peter Wang , notmuch@notmuchmail.org Subject: Re: [PATCH 1/4] show: indicate length of omitted body content (json) In-Reply-To: <1344151345-25411-1-git-send-email-novalazy@gmail.com> References: <1344151345-25411-1-git-send-email-novalazy@gmail.com> User-Agent: Notmuch/0.13.2+121~gfda8989 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Sun, 05 Aug 2012 14:37:02 -0700 Message-ID: <87y5ltuikh.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: Sun, 05 Aug 2012 21:37:13 -0000 --=-=-= On Sun, Aug 05 2012, Peter Wang wrote: > If a leaf part's body content is omitted, return the content length in > --format=json output. This information may be used by the consumer, > e.g. to decide whether to download a large attachment over a slow link. > --- > devel/schemata | 5 ++++- > notmuch-show.c | 8 ++++++++ > 2 files changed, 12 insertions(+), 1 deletions(-) > > diff --git a/devel/schemata b/devel/schemata > index 9cb25f5..3df2764 100644 > --- a/devel/schemata > +++ b/devel/schemata > @@ -69,7 +69,10 @@ part = { > # A leaf part's body content is optional, but may be included if > # it can be correctly encoded as a string. Consumers should use > # this in preference to fetching the part content separately. > - content?: string > + content?: string, > + # If a leaf part's body content is not included, the content-length > + # may be included instead. > + content-length?: int Hey, Peter. Something somewhere, and probably at least here in the schemata, should mention what the uids are (b? kB? KiB? YiB?) jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJQHud+AAoJEO00zqvie6q8KK0P/RM/i5d8IW6M+Vm3WagdSMq6 a0p9ESK9bRQxK0WojaidLfS8UA6f2Hde73za4Pldpd6jsx0U1goXZPWRUa82t81Q ktB1wUxyCm4Hi/TiiyeO/04qA4liw7HXVN8rz7wVQGLqAaa559X8yV2lLBynbXRI BCPN5glwFxL2BvllXacNgmSRyMdcr/xHgaybkjK3JM/3W3TG54e2prR47MMKwW8P eaMZT+gqiWIpO0h6gAEc70/V9lryfbLQJ9xEw8vuVyzdIOZvoF6vozH2Rf2ZLIB/ N2Ebr8Uk2RUSYF4xCFOmxUAVmOmWSeIy+F/4vSOakvinl6aQ0vwLpajCVcdchS21 D22yxad61BWi6jkzQ/d9ap1LZm2QcdYr6NEqyydDmVExvfE+fnN984VEtmRp09X/ kLL5nDekB6qiGBrJjB7Ep1IP0eJjL3Mb068hKs1/sXC1dQFOqeWou35alwLowxSe a+mOp2UernJrGCdj2Kv8t4K3N86zs1xKF63D/wzo8HHUh3Y9YW9C1Sq1DvFnURas R985aEqaTUUY2bNk2y8wpRCNaIuxz2CEsH9SJ056sphS7h7Rf5b15JjZ1SJJoTZC P0bVahHNtN4m9a34ZI1uF3ENKcQAyUVmW43pzIjrCOqqu16H7Yt9tBqntRgEf9np +6R1lOE6pNqAFZLuaO6A =6aAh -----END PGP SIGNATURE----- --=-=-=--