From c33aef05f2459480863b8b36ac813b3a8b3ad42c Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 18 Jun 2008 09:24:05 +0000 Subject: also use MimeInfo::filename to determine file type. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2018 ee746299-78ed-0310-b773-934348b2243d --- libsylph/procmime.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libsylph') 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); } -- cgit v1.2.3