emacs: Remove broken `notmuch-get-bodypart-content' API
authorAustin Clements <amdragon@mit.edu>
Sat, 24 Jan 2015 21:16:58 +0000 (16:16 -0500)
committerDavid Bremner <david@tethera.net>
Sun, 25 Jan 2015 17:39:13 +0000 (18:39 +0100)
commit991efcded840944b2f7ebf97d4c9df51a3d011cf
treeb7458e98dafdd85a4a7556e36fa4262d838ac6e6
parent021906d6ec60360b5587ae08657fd6caa9a71b17
emacs: Remove broken `notmuch-get-bodypart-content' API

`notmuch-get-bodypart-content' could do two very different things,
depending on conditions: for text/* parts other than text/html, it
would return the part content as a multibyte Lisp string *after*
charset conversion, while for other parts (including text/html), it
would return binary part content without charset conversion.

This commit completes the split of `notmuch-get-bodypart-content' into
two different and explicit APIs: `notmuch-get-bodypart-binary' and
`notmuch-get-bodypart-text'.  It updates all callers to use one or the
other depending on what's appropriate.
emacs/notmuch-lib.el
emacs/notmuch-show.el