diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/procmime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 684256cd..a4de784d 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -782,9 +782,11 @@ MimeInfo *procmime_scan_mime_header(FILE *fp) } if (mimeinfo->mime_type == MIME_APPLICATION_OCTET_STREAM && - mimeinfo->name) { + (mimeinfo->filename || mimeinfo->name)) { const gchar *type; - type = procmime_get_mime_type(mimeinfo->name); + type = procmime_get_mime_type + (mimeinfo->filename ? mimeinfo->filename + : mimeinfo->name); if (type) mimeinfo->mime_type = procmime_scan_mime_type(type); } |