* lib: consider more things to be attachments
This commit is contained in:
@ -217,11 +217,16 @@ looks_like_attachment (GMimeObject *part)
|
|||||||
if (g_ascii_strcasecmp (dispstr, "attachment") == 0)
|
if (g_ascii_strcasecmp (dispstr, "attachment") == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* we also consider images, attachment or inline, to be
|
/* we also consider images, audio, and non-pgp-signature
|
||||||
* attachments... */
|
* application attachments to be attachments... */
|
||||||
ctype = g_mime_object_get_content_type (part);
|
ctype = g_mime_object_get_content_type (part);
|
||||||
if (g_mime_content_type_is_type (ctype, "image", "*"))
|
if (g_mime_content_type_is_type (ctype, "image", "*"))
|
||||||
return TRUE;
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user