]> git.notmuchmail.org Git - notmuch/blobdiff - show-message.c
notmuch part: Fix part numbering to match what's reported by "notmuch show"
[notmuch] / show-message.c
index 44ab8194eed78f31e74c323d2af536bcc971ee68..3c29f26a0490cc951c73aba727eee88bd23b4913 100644 (file)
@@ -138,6 +138,8 @@ show_one_part_worker (GMimeObject *part, int *part_count, int desired_part)
        GMimeMultipart *multipart = GMIME_MULTIPART (part);
        int i;
 
+       *part_count = *part_count + 1;
+
        for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {
                show_one_part_worker (g_mime_multipart_get_part (multipart, i),
                                      part_count, desired_part);