X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-show.c;h=87e52bbc0e81a7f8b0c4c7ca5c374cfdbb5da068;hp=5a83c6056ca5de85ef52b5dbb64359904dbba1a4;hb=1abc33833149f6c71850c1b6f4bdeca38c718023;hpb=506b81679a883d2a96bcd17e7c826a3166bdf82e diff --git a/notmuch-show.c b/notmuch-show.c index 5a83c605..87e52bbc 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -456,7 +456,8 @@ format_part_text (const void *ctx, sprinter_t *sp, mime_node_t *node, g_mime_part_get_filename (GMIME_PART (node->part)) : NULL; if (disposition && - strcmp (disposition->disposition, GMIME_DISPOSITION_ATTACHMENT) == 0) + strcasecmp (g_mime_content_disposition_get_disposition (disposition), + GMIME_DISPOSITION_ATTACHMENT) == 0) part_type = "attachment"; else part_type = "part";