]> git.notmuchmail.org Git - notmuch/commitdiff
show: indicate length, encoding of omitted body content
authorPeter Wang <novalazy@gmail.com>
Sat, 15 Dec 2012 23:24:23 +0000 (10:24 +1100)
committerDavid Bremner <bremner@debian.org>
Mon, 17 Dec 2012 13:10:35 +0000 (09:10 -0400)
If a leaf part's body content is omitted, return the encoded length and
transfer encoding 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.

Returning the _encoded_ content length is more efficient than returning
the _decoded_ content length.  Returning the transfer encoding allows
the consumer to estimate the decoded content length.


No differences found