From a647f43643073cd02e26788e417efd8dd3323669 Mon Sep 17 00:00:00 2001 From: Dmitry Kurochkin Date: Wed, 30 Nov 2011 01:19:54 +0400 Subject: 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. --- test/emacs | 1 - 1 file changed, 1 deletion(-) (limited to 'test') diff --git a/test/emacs b/test/emacs index bdac84f8..42e5d613 100755 --- a/test/emacs +++ b/test/emacs @@ -488,7 +488,6 @@ test_emacs "(let ((notmuch-command \"$notmuch_counter_command\")) test_expect_equal $(notmuch_counter_value) 1 test_begin_subtest "Do not call notmuch for non-inlinable audio/mpeg parts" -test_subtest_known_broken id='message-with-audio/mpeg-attachment@notmuchmail.org' emacs_deliver_message \ 'Message with audio/mpeg attachment' \ -- cgit v1.2.3