From cd0589b1b3eb57d1d37145ffe6fe2574922140b9 Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 8 Sep 2012 12:46:55 +0300 Subject: [PATCH] * lib: consider more things to be attachments --- lib/mu-msg-file.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/mu-msg-file.c b/lib/mu-msg-file.c index 9b5da52d..6253322b 100644 --- a/lib/mu-msg-file.c +++ b/lib/mu-msg-file.c @@ -217,11 +217,16 @@ looks_like_attachment (GMimeObject *part) if (g_ascii_strcasecmp (dispstr, "attachment") == 0) return TRUE; - /* we also consider images, attachment or inline, to be - * attachments... */ + /* we also consider images, audio, and non-pgp-signature + * application attachments to be attachments... */ ctype = g_mime_object_get_content_type (part); if (g_mime_content_type_is_type (ctype, "image", "*")) return TRUE; + if (g_mime_content_type_is_type (ctype, "audio", "*")) + return TRUE; + if ((g_mime_content_type_is_type (ctype, "application", "*")) && + !g_mime_content_type_is_type (ctype, "*", "pgp-signature")) + return TRUE; return FALSE; }