]> rtime.felk.cvut.cz Git - notmuch.git/commit
emacs: Create an API for fetching parts as undecoded binary
authorAustin Clements <amdragon@mit.edu>
Sat, 24 Jan 2015 21:16:57 +0000 (16:16 -0500)
committerDavid Bremner <david@tethera.net>
Sun, 25 Jan 2015 17:39:13 +0000 (18:39 +0100)
commit021906d6ec60360b5587ae08657fd6caa9a71b17
tree47de763fe7b241d2a2c358fcd1c45759e2522490
parentc67a04de60d4f2f9060e41204f2fd50f1edc6a5c
emacs: Create an API for fetching parts as undecoded binary

The new function, `notmuch-get-bodypart-binary', replaces
`notmuch-get-bodypart-internal'.  Whereas the old function was really
meant for internal use in `notmuch-get-bodypart-content', it was used
in a few other places.  Since the difference between
`notmuch-get-bodypart-content' and `notmuch-get-bodypart-internal' was
unclear, these other uses were always confusing and potentially
inconsistent.  The new call clearly requests the part as undecoded
binary.

This is step 1 of 2 in separating `notmuch-get-bodypart-content' into
two APIs for retrieving either undecoded binary or decoded text.
emacs/notmuch-lib.el
emacs/notmuch-show.el