]> git.notmuchmail.org Git - notmuch/commit
emacs: do not call notmuch show for non-inlinable parts
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Tue, 29 Nov 2011 21:19:54 +0000 (01:19 +0400)
committerDavid Bremner <bremner@debian.org>
Thu, 8 Dec 2011 00:05:25 +0000 (20:05 -0400)
commita647f43643073cd02e26788e417efd8dd3323669
treeb84e10b1edb52d539eda54f4b02d7d3c9b081f18
parent3e0820eb7138df4f11fdf6fc8baf96f583152f14
emacs: do not call notmuch show for non-inlinable parts

Before the change, there was a workaround to avoid notmuch show calls
for parts with application/* Content-Type.  But non-inlinable parts
are not limited to this Content-Type (e.g. mp3 files have audio/mpeg
Content-Type and are not inlinable).  For such parts
`notmuch-show-insert-part-*/*' handler is called which unconditionally
fetches contents for all parts.

The patch moves content fetching from `notmuch-show-insert-part-*/*'
to `notmuch-show-mm-display-part-inline' function after MIME inlinable
checks are done to avoid useless notmuch show calls.  The
application/* hack is no longer needed and removed.
emacs/notmuch-show.el
test/emacs