From 875746e0ef57dc6f0592397d5ba9e561d8751c13 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 18 May 2013 20:59:16 -0400 Subject: Add e_mail_part_set_mime_type(). --- em-format/e-mail-parser-text-plain.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'em-format/e-mail-parser-text-plain.c') diff --git a/em-format/e-mail-parser-text-plain.c b/em-format/e-mail-parser-text-plain.c index 24b4b24344..c6f4d1e628 100644 --- a/em-format/e-mail-parser-text-plain.c +++ b/em-format/e-mail-parser-text-plain.c @@ -92,11 +92,15 @@ process_part (EMailParser *parser, } else if (!camel_content_type_is (type, "text", "calendar")) { GQueue work_queue = G_QUEUE_INIT; + gchar *mime_type; g_string_append_printf (part_id, ".plain_text.%d", part_number); mail_part = e_mail_part_new (part, part_id->str); - mail_part->mime_type = camel_content_type_simple (type); + + mime_type = camel_content_type_simple (type); + e_mail_part_set_mime_type (mail_part, mime_type); + g_free (mime_type); g_string_truncate (part_id, s_len); -- cgit