diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-07-27 03:23:29 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-07-27 03:23:29 +0800 |
commit | 7878c06f05c0aa1a66b380fd4f31ddde227c7db1 (patch) | |
tree | 7b42596d2eccfba5f23a9aab34c079514ce4cd2a /em-format | |
parent | 181ae9cd3ec31790190a2a7adf008605598584c6 (diff) | |
download | gsoc2013-evolution-7878c06f05c0aa1a66b380fd4f31ddde227c7db1.tar gsoc2013-evolution-7878c06f05c0aa1a66b380fd4f31ddde227c7db1.tar.gz gsoc2013-evolution-7878c06f05c0aa1a66b380fd4f31ddde227c7db1.tar.bz2 gsoc2013-evolution-7878c06f05c0aa1a66b380fd4f31ddde227c7db1.tar.lz gsoc2013-evolution-7878c06f05c0aa1a66b380fd4f31ddde227c7db1.tar.xz gsoc2013-evolution-7878c06f05c0aa1a66b380fd4f31ddde227c7db1.tar.zst gsoc2013-evolution-7878c06f05c0aa1a66b380fd4f31ddde227c7db1.zip |
Bug #680634 - Missing image attachment
Diffstat (limited to 'em-format')
-rw-r--r-- | em-format/e-mail-parser-multipart-mixed.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/em-format/e-mail-parser-multipart-mixed.c b/em-format/e-mail-parser-multipart-mixed.c index 990a8f2a08..33663d8e9e 100644 --- a/em-format/e-mail-parser-multipart-mixed.c +++ b/em-format/e-mail-parser-multipart-mixed.c @@ -97,9 +97,19 @@ empe_mp_mixed_parse (EMailParserExtension *extension, new_parts = e_mail_parser_parse_part ( parser, subpart, part_id, cancellable); - /* Force messages to be expandable */ ct = camel_mime_part_get_content_type (subpart); - if (!new_parts || + + /* Display parts with CID as attachments */ + if (new_parts && new_parts->data && + (E_MAIL_PART (new_parts->data)->cid != NULL)) { + + parts = g_slist_concat (parts, + e_mail_parser_wrap_as_attachment ( + parser, subpart, new_parts, + part_id, cancellable)); + + /* Force messages to be expandable */ + } else if (!new_parts || (camel_content_type_is (ct, "message", "rfc822") && new_parts && new_parts->data && !E_MAIL_PART (new_parts->data)->is_attachment)) { |