diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-01-28 02:06:57 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-01-28 02:06:57 +0800 |
commit | 6b1b5d30fd4dd6e02513947a1d706554ff2a9fec (patch) | |
tree | 41cd8e6291f2941582245c9e5f1fe40037662ff9 /mail/mail-identify.c | |
parent | 143ba4162a04d8a623245c8965b7cce54326cd0b (diff) | |
download | gsoc2013-evolution-6b1b5d30fd4dd6e02513947a1d706554ff2a9fec.tar.gz gsoc2013-evolution-6b1b5d30fd4dd6e02513947a1d706554ff2a9fec.tar.zst gsoc2013-evolution-6b1b5d30fd4dd6e02513947a1d706554ff2a9fec.zip |
Fixed a #warning by converting a local path into a file: uri before
2003-01-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-identify.c (mail_identify_mime_part): Fixed a #warning by
converting a local path into a file: uri before feeding it to
gnome-vfs.
* message-list.c (message_list_set_folder): Removed a FIXME that
I've decided is no longer needed.
2003-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_add_account): Emit the account-added
event.
(mail_config_remove_account): Emit the account-removed event.
* mail-account-gui.c (mail_account_gui_save): Emit the changed
event on the account-list for the changed account.
svn path=/trunk/; revision=19655
Diffstat (limited to 'mail/mail-identify.c')
-rw-r--r-- | mail/mail-identify.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/mail-identify.c b/mail/mail-identify.c index e2f614f059..0ef8b7e9e3 100644 --- a/mail/mail-identify.c +++ b/mail/mail-identify.c @@ -30,6 +30,7 @@ #include <string.h> #include <glib.h> +#include <libgnomevfs/gnome-vfs-utils.h> #include <libgnomevfs/gnome-vfs-mime-utils.h> #include "mail.h" @@ -52,15 +53,17 @@ mail_identify_mime_part (CamelMimePart *part, MailDisplay *md) const char *filename, *magic_type = NULL; CamelDataWrapper *data; char *name_type = NULL; - + char *uri; + filename = camel_mime_part_get_filename (part); if (filename) { /* GNOME-VFS will misidentify TNEF attachments as MPEG */ if (!strcmp (filename, "winmail.dat")) return g_strdup ("application/vnd.ms-tnef"); - -#warning "does gnome_vfs_get_mime_type handle a plain filename as the 'text_uri'?" - name_type = gnome_vfs_get_mime_type(filename); + + uri = gnome_vfs_get_uri_from_local_path (filename); + name_type = gnome_vfs_get_mime_type (uri); + g_free (uri); } data = camel_medium_get_content_object (CAMEL_MEDIUM (part)); |