[evolution/gnome-3-16] EMailRequest - SVG images in HTML email are not displayed



commit ff2ba0f879f617ebbef4470ef6a549127a4ecc11
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Apr 27 11:58:40 2015 +0200

    EMailRequest -  SVG images in HTML email are not displayed
    
    We have to set the right mime type to the content, otherwise it
    would be replaced with text/html one later.

 mail/e-mail-request.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-request.c b/mail/e-mail-request.c
index 43b9316..a1f1057 100644
--- a/mail/e-mail-request.c
+++ b/mail/e-mail-request.c
@@ -156,6 +156,11 @@ handle_mail_request (GSimpleAsyncResult *simple,
                        dw = camel_medium_get_content (CAMEL_MEDIUM (mime_part));
                        g_return_if_fail (dw);
 
+                       if (!mime_type) {
+                               g_free (request->priv->mime_type);
+                               request->priv->mime_type = camel_data_wrapper_get_mime_type (dw);
+                       }
+
                        camel_data_wrapper_decode_to_output_stream_sync (
                                dw, output_stream, cancellable, NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]