diff options
author | Milan Crha <mcrha@redhat.com> | 2013-04-05 02:44:40 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-04-05 02:44:40 +0800 |
commit | 186f5dbd1fc9f5fe3292b5f07277f6d403c5ca99 (patch) | |
tree | c5e58ff2f2faf5e4fb77c589dec444e3cc7d6c04 /em-format/e-mail-parser-multipart-mixed.c | |
parent | e9ca986516bab631fd0c83c2569c3aa82eac3cdd (diff) | |
download | gsoc2013-evolution-186f5dbd1fc9f5fe3292b5f07277f6d403c5ca99.tar gsoc2013-evolution-186f5dbd1fc9f5fe3292b5f07277f6d403c5ca99.tar.gz gsoc2013-evolution-186f5dbd1fc9f5fe3292b5f07277f6d403c5ca99.tar.bz2 gsoc2013-evolution-186f5dbd1fc9f5fe3292b5f07277f6d403c5ca99.tar.lz gsoc2013-evolution-186f5dbd1fc9f5fe3292b5f07277f6d403c5ca99.tar.xz gsoc2013-evolution-186f5dbd1fc9f5fe3292b5f07277f6d403c5ca99.tar.zst gsoc2013-evolution-186f5dbd1fc9f5fe3292b5f07277f6d403c5ca99.zip |
Show parts with Content-ID of multipart/mixed as attachments
The multipart/mixed should behave differently than multipart/related,
because subparts of multipart/mixed are not meant to reference each
other by default, thus the subparts should be shown as attachments.
This was reported at https://bugzilla.redhat.com/show_bug.cgi?id=947409
Diffstat (limited to 'em-format/e-mail-parser-multipart-mixed.c')
-rw-r--r-- | em-format/e-mail-parser-multipart-mixed.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/em-format/e-mail-parser-multipart-mixed.c b/em-format/e-mail-parser-multipart-mixed.c index 1fdfb3cc33..1d14fced68 100644 --- a/em-format/e-mail-parser-multipart-mixed.c +++ b/em-format/e-mail-parser-multipart-mixed.c @@ -83,10 +83,13 @@ empe_mp_mixed_parse (EMailParserExtension *extension, ct = camel_mime_part_get_content_type (subpart); /* Display parts with CID as attachments - * (unless they already are attachments). */ + * (unless they already are attachments). + * Show also hidden attachments with CID, + * because this is multipart/mixed, + * not multipart/related. */ if (mail_part != NULL && - mail_part->cid != NULL && - !mail_part->is_attachment) { + mail_part->cid != NULL && + (!mail_part->is_attachment || mail_part->is_hidden)) { e_mail_parser_wrap_as_attachment ( parser, subpart, part_id, &work_queue); |