diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-17 01:06:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:20 +0800 |
commit | cd5a55f9812643109be6c2b0ed5d8f8ce655a4a9 (patch) | |
tree | 271b673b6e311d5cb44acdd0b6c1d1830aa6982e /em-format/e-mail-parser-multipart-digest.c | |
parent | f6f11a1da2dfa2c7616cd18b36a44fefd66f0c75 (diff) | |
download | gsoc2013-evolution-cd5a55f9812643109be6c2b0ed5d8f8ce655a4a9.tar.gz gsoc2013-evolution-cd5a55f9812643109be6c2b0ed5d8f8ce655a4a9.tar.zst gsoc2013-evolution-cd5a55f9812643109be6c2b0ed5d8f8ce655a4a9.zip |
em-format cleanups.
Diffstat (limited to 'em-format/e-mail-parser-multipart-digest.c')
-rw-r--r-- | em-format/e-mail-parser-multipart-digest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/em-format/e-mail-parser-multipart-digest.c b/em-format/e-mail-parser-multipart-digest.c index 5d33103b1e..8cf80be00f 100644 --- a/em-format/e-mail-parser-multipart-digest.c +++ b/em-format/e-mail-parser-multipart-digest.c @@ -88,6 +88,7 @@ empe_mp_digest_parse (EMailParserExtension *extension, } else { GQueue work_queue = G_QUEUE_INIT; EMailPart *mail_part; + gboolean wrap_as_attachment; e_mail_parser_parse_part_as ( parser, subpart, part_id, "message/rfc822", @@ -95,8 +96,12 @@ empe_mp_digest_parse (EMailParserExtension *extension, mail_part = g_queue_peek_head (&work_queue); + wrap_as_attachment = + (mail_part != NULL) && + !mail_part->is_attachment; + /* Force the message to be collapsable */ - if (mail_part != NULL && !mail_part->is_attachment) + if (wrap_as_attachment) e_mail_parser_wrap_as_attachment ( parser, subpart, part_id, &work_queue); |