aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.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-format.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-format.c')
-rw-r--r--mail/mail-format.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index fc0fd20f87..c8cff1d857 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1243,7 +1243,6 @@ handle_mystery (CamelMimePart *part, MailDisplay *md,
{
const char *info;
char *htmlinfo;
- GMimeContentField *content_type;
mail_html_write (md->html, md->stream, "<table><tr><td>");
@@ -1276,10 +1275,7 @@ handle_mystery (CamelMimePart *part, MailDisplay *md,
}
/* Write the name, if we have it. */
- content_type = camel_mime_part_get_content_type (part);
- info = gmime_content_field_get_parameter (content_type, "name");
- if (!info)
- info = camel_mime_part_get_filename (part);
+ info = camel_mime_part_get_filename (part);
if (info) {
htmlinfo = e_text_to_html (info, 0);
mail_html_write (md->html, md->stream, "Name: %s<br>",