From 781f20ac48075c6620ae8671f4877cf1f11881e2 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 3 Feb 2004 20:07:10 +0000 Subject: use FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file contents 2004-02-03 Chris Toshok * e-msg-composer.c (e_msg_composer_guess_mime_type): use FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file contents before coming up with a mime type. svn path=/trunk/; revision=24594 --- composer/ChangeLog | 6 ++++++ composer/e-msg-composer.c | 1 + 2 files changed, 7 insertions(+) diff --git a/composer/ChangeLog b/composer/ChangeLog index bd82403796..6fc3cba00f 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2004-02-03 Chris Toshok + + * e-msg-composer.c (e_msg_composer_guess_mime_type): use + FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file + contents before coming up with a mime type. + 2004-02-03 Dan Winship * Makefile.am (INCLUDES): add widgets/misc diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index d6ea5bebdf..80ab2873f7 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -5116,6 +5116,7 @@ e_msg_composer_guess_mime_type (const char *file_name) info = gnome_vfs_file_info_new (); result = gnome_vfs_get_file_info (file_name, info, GNOME_VFS_FILE_INFO_GET_MIME_TYPE | + GNOME_VFS_FILE_INFO_FORCE_SLOW_MIME_TYPE | GNOME_VFS_FILE_INFO_FOLLOW_LINKS); if (result == GNOME_VFS_OK) { char *type; -- cgit v1.2.3