aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-06 03:47:35 +0800
committerDan Winship <danw@src.gnome.org>2000-07-06 03:47:35 +0800
commit53faeaabcc20626b63d0a815f06851aa97152dcd (patch)
tree4c55776503d9b2c6bdd8e68dbc282eff9ba12f3a /mail/mail-format.c
parent0837fc409943cafbf57dcd51525b9b7f68148639 (diff)
downloadgsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.tar.gz
gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.tar.zst
gsoc2013-evolution-53faeaabcc20626b63d0a815f06851aa97152dcd.zip
Use the gnomevfs sniff buffer interface to try to identify the MIME type
* mail-identify.c (mail_identify_mime_part): Use the gnomevfs sniff buffer interface to try to identify the MIME type when everything else fails. * mail-display.c (on_object_requested): * mail-format.c (lookup_handler, handle_undisplayable, handle_audio): s/gnome_mime/gnome_vfs_mime/ * Makefile.am: Add gnomevfs stuff svn path=/trunk/; revision=3893
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index e2fef22180..909eced8ca 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -29,6 +29,7 @@
#include "e-util/e-html-utils.h"
#include "e-util/e-setup.h" /*for evolution_dir*/
#include <libgnome/libgnome.h>
+#include <libgnomevfs/gnome-vfs-mime-info.h>
#include <ctype.h> /* for isprint */
#include <string.h> /* for strstr */
@@ -268,9 +269,9 @@ lookup_handler (const char *mime_type, gboolean *generic)
return handler_function;
}
- whole_goad_id = gnome_mime_get_value (mime_type, "bonobo-goad-id");
- generic_goad_id = gnome_mime_get_value (mime_type_main,
- "bonobo-goad-id");
+ whole_goad_id = gnome_vfs_mime_get_value (mime_type, "bonobo-goad-id");
+ generic_goad_id = gnome_vfs_mime_get_value (mime_type_main,
+ "bonobo-goad-id");
if (whole_goad_id && (!generic_goad_id ||
strcmp (whole_goad_id, generic_goad_id) != 0)) {
@@ -1002,7 +1003,7 @@ handle_audio (CamelMimePart *part, const char *mime_type,
char *id;
const char *desc;
- desc = gnome_mime_get_value (mime_type, "description");
+ desc = gnome_vfs_mime_get_value (mime_type, "description");
if (desc)
id = g_strdup_printf ("%s data", desc);
else {
@@ -1149,7 +1150,7 @@ handle_undisplayable (CamelMimePart *part, const char *mime_type,
const char *desc;
char *id;
- desc = gnome_mime_get_value (mime_type, "description");
+ desc = gnome_vfs_mime_get_value (mime_type, "description");
if (desc)
id = g_strdup (desc);
else