aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer.c1
2 files changed, 7 insertions, 0 deletions
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 <toshok@ximian.com>
+
+ * 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 <danw@ximian.com>
* 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;