[evolution/gnome-3-28] I#19 - Show "message/feedback-report" attachments inline
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-28] I#19 - Show "message/feedback-report" attachments inline
- Date: Fri, 15 Jun 2018 11:46:34 +0000 (UTC)
commit 52dd256a92b760d138faaad66b2b2f770ba59d5f
Author: Milan Crha <mcrha redhat com>
Date: Fri Jun 15 13:45:08 2018 +0200
I#19 - Show "message/feedback-report" attachments inline
Closes https://gitlab.gnome.org/GNOME/evolution/issues/19
src/em-format/e-mail-parser-message-deliverystatus.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/src/em-format/e-mail-parser-message-deliverystatus.c
b/src/em-format/e-mail-parser-message-deliverystatus.c
index f85e8d1d42..6e6a05b6f7 100644
--- a/src/em-format/e-mail-parser-message-deliverystatus.c
+++ b/src/em-format/e-mail-parser-message-deliverystatus.c
@@ -21,6 +21,7 @@
#include <e-util/e-util.h>
+#include "e-mail-part-attachment.h"
#include "e-mail-parser-extension.h"
typedef EMailParserExtension EMailParserMessageDeliveryStatus;
@@ -49,6 +50,7 @@ empe_msg_deliverystatus_parse (EMailParserExtension *extension,
GQueue *out_mail_parts)
{
GQueue work_queue = G_QUEUE_INIT;
+ CamelContentType *ct;
EMailPart *mail_part;
gsize len;
@@ -65,6 +67,15 @@ empe_msg_deliverystatus_parse (EMailParserExtension *extension,
* message/delivery-status is to display the part as an attachment */
e_mail_parser_wrap_as_attachment (parser, part, part_id, &work_queue);
+ ct = camel_mime_part_get_content_type (part);
+ if (ct && camel_content_type_is (ct, "message", "feedback-report")) {
+ EMailPart *attachment_part;
+
+ attachment_part = g_queue_peek_head (&work_queue);
+ if (attachment_part && E_IS_MAIL_PART_ATTACHMENT (attachment_part))
+ attachment_part->force_inline = TRUE;
+ }
+
e_queue_transfer (&work_queue, out_mail_parts);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]