From 925301288069794eb2b1611bd1888af0996d76e3 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 19 Oct 2000 00:16:00 +0000 Subject: The correct fix this time - the description should be encoded here and not 2000-10-18 Jeffrey Stedfast * camel-mime-part.c (camel_mime_part_set_description): The correct fix this time - the description should be encoded here and not in the camel-medium layer. svn path=/trunk/; revision=6008 --- camel/ChangeLog | 6 ++++++ camel/camel-mime-part.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 7a4a96ae33..638fd4611d 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-10-18 Jeffrey Stedfast + + * camel-mime-part.c (camel_mime_part_set_description): The correct + fix this time - the description should be encoded here and not in + the camel-medium layer. + 2000-10-18 Ettore Perazzoli * camel-mime-filter-charset.c (complete): Put a zero at the start diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index cb60d688a0..e661e0caf5 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -280,8 +280,11 @@ get_header (CamelMedium *medium, const char *header_name) void camel_mime_part_set_description (CamelMimePart *mime_part, const gchar *description) { + char *text = header_encode_string (description); + camel_medium_set_header (CAMEL_MEDIUM (mime_part), - "Content-Description", description); + "Content-Description", text); + g_free (text); } const gchar * -- cgit v1.2.3