]> git.notmuchmail.org Git - notmuch/commit
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)
commitc41d0db077f295c92b01b69ed001afa233b7d0f0
treef5b88b8d5d94f7ca61c17a121551d11829c2b308
parent742b566cac5bae98d612bff306f08d45d4e27614
emacs: Improve the acquisition of text parts.

`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'.
emacs/notmuch-lib.el