aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@helixcode.com>2000-11-15 16:44:57 +0800
committerRadek Doulik <rodo@src.gnome.org>2000-11-15 16:44:57 +0800
commit7384e82aa7369af5d6aa07afd856a5f9cf1f6841 (patch)
treece0486fa8f6a55207601d51db1ecd0db5a479a24 /camel/camel-mime-utils.c
parentfb76cad79ae9228a426fcd0e4a39d920ec17d864 (diff)
downloadgsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.gz
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.bz2
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.lz
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.xz
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.tar.zst
gsoc2013-evolution-7384e82aa7369af5d6aa07afd856a5f9cf1f6841.zip
mime_guess_type_from_file_name moved back to composer as it introduced
2000-11-15 Radek Doulik <rodo@helixcode.com> * camel-mime-utils.c: mime_guess_type_from_file_name moved back to composer as it introduced unwanted VFS dependency svn path=/trunk/; revision=6578
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 8db0e23fe4..fb3842829e 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3113,22 +3113,3 @@ header_msgid_generate (void)
return g_strdup_printf ("%d.%d.%d.camel@%s.%s", (gint) time (NULL), getpid (), count++,
(host && *host) ? host : "unknown.host", (domain && *domain) ? domain : "unknown.domain");
}
-
-gchar *
-mime_guess_type_from_file_name (const gchar *file_name)
-{
- GnomeVFSFileInfo info;
- GnomeVFSResult result;
-
- result = gnome_vfs_get_file_info (file_name, &info,
- GNOME_VFS_FILE_INFO_GET_MIME_TYPE |
- GNOME_VFS_FILE_INFO_FOLLOW_LINKS);
- if (result == GNOME_VFS_OK) {
- gchar *type;
-
- type = g_strdup (gnome_vfs_file_info_get_mime_type (&info));
- gnome_vfs_file_info_unref (&info);
- return type;
- } else
- return NULL;
-}