X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=show-message.c;h=784981b6b190166564cfd82c2114bb1b1c3ec9d1;hp=2d3189e33474b02e2e177827f4ab17b3459d24b3;hb=de064f177202b8e7ec4073eef24b17f91eba11c8;hpb=357aba3ec8177c11a7ce22cbe26d92482f6a5e53 diff --git a/show-message.c b/show-message.c index 2d3189e3..784981b6 100644 --- a/show-message.c +++ b/show-message.c @@ -33,13 +33,6 @@ show_message_part (GMimeObject *part, int *part_count, 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 mutlipart/signed. Continuing.\n"); - } show_message_part (g_mime_multipart_get_part (multipart, i), part_count, show_part); } @@ -74,15 +67,9 @@ show_message_body (const char *filename, GMimeParser *parser = NULL; GMimeMessage *mime_message = NULL; notmuch_status_t ret = NOTMUCH_STATUS_SUCCESS; - static int initialized = 0; FILE *file = NULL; int part_count = 0; - if (! initialized) { - g_mime_init (0); - initialized = 1; - } - file = fopen (filename, "r"); if (! file) { fprintf (stderr, "Error opening %s: %s\n", filename, strerror (errno));