From 319b99cff43f359a7c95f05ab22a1cc660088cb5 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Fri, 18 Sep 2009 16:55:05 +0200 Subject: [PATCH] Show error on decode part to stream if we cannot read the message from disk. Also, unref message created to show the attached msg Fix 3/3 NB#139404. --- src/hildon2/modest-msg-view-window.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hildon2/modest-msg-view-window.c b/src/hildon2/modest-msg-view-window.c index adf3b08..c67a435 100644 --- a/src/hildon2/modest-msg-view-window.c +++ b/src/hildon2/modest-msg-view-window.c @@ -2599,9 +2599,7 @@ on_decode_to_stream_async_handler (TnyMimePart *mime_part, } content_type = tny_mime_part_get_content_type (mime_part); - if ((g_str_has_prefix (content_type, "message/rfc822") || - g_str_has_prefix (content_type, "multipart/") || - g_str_has_prefix (content_type, "text/"))) { + if (g_str_has_prefix (content_type, "message/rfc822")) { ModestWindowMgr *mgr; ModestWindow *msg_win = NULL; TnyMsg * msg; @@ -2631,7 +2629,10 @@ on_decode_to_stream_async_handler (TnyMimePart *mime_part, gtk_widget_show_all (GTK_WIDGET (msg_win)); else gtk_widget_destroy (GTK_WIDGET (msg_win)); + g_object_unref (msg); g_object_unref (file_stream); + } else { + modest_platform_information_banner (NULL, NULL, _("mail_ib_file_operation_failed")); } } else { -- 1.7.9.5