]> git.notmuchmail.org Git - notmuch/commit
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)
commitb96ba6326af442edfdad59e5e42ea42892cd3c6b
treea41fa759c3db924e080b30671983ec7a3a883a26
parent35860e00d1a1f1c4116b03a23c2bbeb0089aa4a1
show: indicate length, encoding of omitted body content

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.
devel/schemata
notmuch-show.c