]> git.notmuchmail.org Git - notmuch/blobdiff - show-message.c
README: Mention that notmuch only supports maildir or mh format.
[notmuch] / show-message.c
index 784981b6b190166564cfd82c2114bb1b1c3ec9d1..05ced9c421c5ec780563312765ea43fa2a5f87df 100644 (file)
@@ -26,8 +26,6 @@ static void
 show_message_part (GMimeObject *part, int *part_count,
                   void (*show_part) (GMimeObject *part, int *part_count))
 {
-    *part_count = *part_count + 1;
-
     if (GMIME_IS_MULTIPART (part)) {
        GMimeMultipart *multipart = GMIME_MULTIPART (part);
        int i;
@@ -56,6 +54,8 @@ show_message_part (GMimeObject *part, int *part_count,
        return;
     }
 
+    *part_count = *part_count + 1;
+
     (*show_part) (part, part_count);
 }