Re: [PATCH 1/4] show: indicate length of omitted body content (json)
authorJameson Graef Rollins <jrollins@finestructure.net>
Sun, 5 Aug 2012 21:37:02 +0000 (14:37 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:48:52 +0000 (09:48 -0800)
f0/5326ea85fe2a0e5064e70b3a436a9711651e0a [new file with mode: 0644]

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