From c51d5b3cdb5ca0816816e88ca6f7136a24e74eee Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 16 May 2011 22:28:36 -0700 Subject: notmuch show: Include output for the enclosing multipart part of a MIME mail Previously, the outer multipart part of any multipart/mixed, multipart/signed, etc. MIME message was silently omitted from the "notmuch show" output. This prevented any client from correctly determining to which parts a signature applies, for example. Now, we actually emit these parts as their own parts. The output is still flattened---the contained parts are not yet included "within" the multipart part---so it's still not possible to determine to which parts a signature applies, but this is one step along the path. The test suite is updated to reflect this change, (though we'll eventually want to fix the emacs interface to not display buttons for the multipart enclosure parts as there's nothing useful for the user to actually do with them). --- notmuch-show.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'notmuch-show.c') diff --git a/notmuch-show.c b/notmuch-show.c index ef421ec..c877152 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -410,6 +410,11 @@ format_part_text (GMimeObject *part, int *part_count) show_part_content (part, stream_stdout); g_object_unref(stream_stdout); } + else if (g_mime_content_type_is_type (content_type, "multipart", "*")) + { + /* Do nothing for multipart since its content will be printed + * when recursing. */ + } else { printf ("Non-text part: %s\n", -- cgit v1.2.3