aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-identify.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-09-06 07:12:27 +0800
committerDan Winship <danw@src.gnome.org>2000-09-06 07:12:27 +0800
commitd9da6499c0dbb37c30e940bbb2100132f7ddf489 (patch)
tree011237b6edd7490919f3fb6f863a443076b15474 /mail/mail-identify.c
parent1bafa31bc2b7f1919b12240a4bb27077d0e0064f (diff)
downloadgsoc2013-evolution-d9da6499c0dbb37c30e940bbb2100132f7ddf489.tar
gsoc2013-evolution-d9da6499c0dbb37c30e940bbb2100132f7ddf489.tar.gz
gsoc2013-evolution-d9da6499c0dbb37c30e940bbb2100132f7ddf489.tar.bz2
gsoc2013-evolution-d9da6499c0dbb37c30e940bbb2100132f7ddf489.tar.lz
gsoc2013-evolution-d9da6499c0dbb37c30e940bbb2100132f7ddf489.tar.xz
gsoc2013-evolution-d9da6499c0dbb37c30e940bbb2100132f7ddf489.tar.zst
gsoc2013-evolution-d9da6499c0dbb37c30e940bbb2100132f7ddf489.zip
camel_mime_part_get_filename now deals with both Content-Disposition and
* mail-display.c (make_safe_filename): * mail-format.c (handle_mystery): * mail-identify.c (mail_identify_mime_part): camel_mime_part_get_filename now deals with both Content-Disposition and Content-Type. svn path=/trunk/; revision=5215
Diffstat (limited to 'mail/mail-identify.c')
-rw-r--r--mail/mail-identify.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/mail/mail-identify.c b/mail/mail-identify.c
index e8d82cb8f5..3f86ea361c 100644
--- a/mail/mail-identify.c
+++ b/mail/mail-identify.c
@@ -42,27 +42,15 @@
char *
mail_identify_mime_part (CamelMimePart *part)
{
- GMimeContentField *content_type;
const char *filename, *type;
GnomeVFSMimeSniffBuffer *sniffer;
CamelStream *memstream;
CamelDataWrapper *data;
GByteArray *ba;
- content_type = camel_mime_part_get_content_type (part);
-
-
/* Try identifying based on name in Content-Type or
* filename in Content-Disposition.
*/
- filename = gmime_content_field_get_parameter (content_type, "name");
- if (filename) {
- type = gnome_vfs_mime_type_from_name_or_default (filename,
- NULL);
- if (type)
- return g_strdup (type);
- }
-
filename = camel_mime_part_get_filename (part);
if (filename) {
type = gnome_vfs_mime_type_from_name_or_default (filename,