aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c7
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";