]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
emacs: Improve the acquisition of text parts.
authorDavid Edmondson <dme@dme.org>
Tue, 8 Mar 2016 17:12:59 +0000 (17:12 +0000)
committerDavid Bremner <david@tethera.net>
Sun, 27 Mar 2016 20:44:24 +0000 (17:44 -0300)
`notmuch-get-bodypart-text' assumed that it is always possible to
acquire text/* parts via the sexp output format. This is not true if the
part in question has a content type of application/octet-stream but is
being interpreted as text/* based on the extension of the part filename.

Rework `notmuch-get-bodypart-text' to use the raw output format to
address this and make the implementation common with that of
`notmuch-get-bodypart-binary'.


No differences found