diff options
author | Dan Winship <danw@src.gnome.org> | 2000-09-06 07:12:27 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-09-06 07:12:27 +0800 |
commit | d9da6499c0dbb37c30e940bbb2100132f7ddf489 (patch) | |
tree | 011237b6edd7490919f3fb6f863a443076b15474 /mail/mail-display.c | |
parent | 1bafa31bc2b7f1919b12240a4bb27077d0e0064f (diff) | |
download | gsoc2013-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-display.c')
-rw-r--r-- | mail/mail-display.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index d8b49c2128..960c97d18f 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -94,15 +94,10 @@ write_data_to_file (CamelMimePart *part, const char *name, gboolean unique) static char * make_safe_filename (const char *prefix, CamelMimePart *part) { - GMimeContentField *type; const char *name = NULL; char *safe, *p; - type = camel_mime_part_get_content_type (part); - if (type) - name = gmime_content_field_get_parameter (type, "name"); - if (!name) - name = camel_mime_part_get_filename (part); + name = camel_mime_part_get_filename (part); if (!name) name = "attachment"; |