diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-19 08:59:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:21 +0800 |
commit | 875746e0ef57dc6f0592397d5ba9e561d8751c13 (patch) | |
tree | 0688deb80bbf3109d37ee5428cb03dfe370d1925 /em-format/e-mail-parser-text-plain.c | |
parent | 0ee556d346fe8976b63d9eb1c929b41a101037e1 (diff) | |
download | gsoc2013-evolution-875746e0ef57dc6f0592397d5ba9e561d8751c13.tar.gz gsoc2013-evolution-875746e0ef57dc6f0592397d5ba9e561d8751c13.tar.zst gsoc2013-evolution-875746e0ef57dc6f0592397d5ba9e561d8751c13.zip |
Add e_mail_part_set_mime_type().
Diffstat (limited to 'em-format/e-mail-parser-text-plain.c')
-rw-r--r-- | em-format/e-mail-parser-text-plain.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |