aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-parser-message.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-02-18 19:37:12 +0800
committerMilan Crha <mcrha@redhat.com>2014-02-18 19:37:12 +0800
commitbc2fd7b35695bc18a5f9dd0111d58d93d7e19d9b (patch)
tree96c68182db3f458b710e0dea25fa920b674190df /em-format/e-mail-parser-message.c
parent3219d7a8e37fadadd823dd7676a40d40283836fd (diff)
downloadgsoc2013-evolution-bc2fd7b35695bc18a5f9dd0111d58d93d7e19d9b.tar
gsoc2013-evolution-bc2fd7b35695bc18a5f9dd0111d58d93d7e19d9b.tar.gz
gsoc2013-evolution-bc2fd7b35695bc18a5f9dd0111d58d93d7e19d9b.tar.bz2
gsoc2013-evolution-bc2fd7b35695bc18a5f9dd0111d58d93d7e19d9b.tar.lz
gsoc2013-evolution-bc2fd7b35695bc18a5f9dd0111d58d93d7e19d9b.tar.xz
gsoc2013-evolution-bc2fd7b35695bc18a5f9dd0111d58d93d7e19d9b.tar.zst
gsoc2013-evolution-bc2fd7b35695bc18a5f9dd0111d58d93d7e19d9b.zip
Bug #724437 - Content-Disposition inline confuses message formatter
Diffstat (limited to 'em-format/e-mail-parser-message.c')
-rw-r--r--em-format/e-mail-parser-message.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/em-format/e-mail-parser-message.c b/em-format/e-mail-parser-message.c
index 95446c06bb..282cef4ef4 100644
--- a/em-format/e-mail-parser-message.c
+++ b/em-format/e-mail-parser-message.c
@@ -26,6 +26,7 @@
#include <libemail-engine/libemail-engine.h>
#include "e-mail-parser-extension.h"
+#include "e-mail-part-attachment.h"
#include "e-mail-part-utils.h"
typedef EMailParserExtension EMailParserMessage;
@@ -96,7 +97,7 @@ empe_message_parse (EMailParserExtension *extension,
* bar but also set the "force_inline" flag since it doesn't make
* sense to collapse the message body if we can render it. */
mail_part = g_queue_peek_head (&work_queue);
- if (mail_part != NULL) {
+ if (mail_part != NULL && !E_IS_MAIL_PART_ATTACHMENT (mail_part)) {
if (e_mail_part_get_is_attachment (mail_part)) {
e_mail_parser_wrap_as_attachment (
parser, part, part_id, &work_queue);