aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-show.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2011-05-16 22:28:36 -0700
committerGravatar Carl Worth <cworth@cworth.org>2011-05-17 14:51:06 -0700
commitc51d5b3cdb5ca0816816e88ca6f7136a24e74eee (patch)
treebe75427f07bc5c6b16a8467bf3ed6c47ccfc15c3 /notmuch-show.c
parentd67f75549785117a8e0c3bc4f0bd71352a29974c (diff)
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).
Diffstat (limited to 'notmuch-show.c')
-rw-r--r--notmuch-show.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/notmuch-show.c b/notmuch-show.c
index ef421ec7..c8771520 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",