aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c5
1 files changed, 4 insertions, 1 deletions
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 *