X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=show-message.c;h=05ced9c421c5ec780563312765ea43fa2a5f87df;hp=38f5897aac75ca6cf6673e982d5fab41d90ea70d;hb=bf159bd829efb6aa73c68542949eb11d9a44d93c;hpb=2ce25b93a72b4a8d6daa5321f9ef7df0772a789f diff --git a/show-message.c b/show-message.c index 38f5897a..05ced9c4 100644 --- a/show-message.c +++ b/show-message.c @@ -26,20 +26,11 @@ 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; for (i = 0; i < g_mime_multipart_get_count (multipart); i++) { - if (GMIME_IS_MULTIPART_SIGNED (multipart)) { - /* Don't index the signature. */ - if (i == 1) - continue; - if (i > 1) - fprintf (stderr, "Warning: Unexpected extra parts of multipart/signed. Continuing.\n"); - } show_message_part (g_mime_multipart_get_part (multipart, i), part_count, show_part); } @@ -63,6 +54,8 @@ show_message_part (GMimeObject *part, int *part_count, return; } + *part_count = *part_count + 1; + (*show_part) (part, part_count); }