]> git.notmuchmail.org Git - notmuch/blobdiff - show-message.c
notmuch show: Include output for the enclosing multipart part of a MIME mail
[notmuch] / show-message.c
index b1b61be40c2618fddcc56c46e683e517f9101f7d..ff9146e233124b81a110481b58ff4e76a57525a5 100644 (file)
@@ -30,6 +30,9 @@ show_message_part (GMimeObject *part, int *part_count,
        GMimeMultipart *multipart = GMIME_MULTIPART (part);
        int i;
 
+       *part_count = *part_count + 1;
+       (*show_part) (part, part_count);
+
        for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {
            show_message_part (g_mime_multipart_get_part (multipart, i),
                               part_count, show_part);