[evolution/webkit: 125/134] Parse attachments with EM_FORMAT_HTML_INLINE_DISPOSITION as well



commit 76dade02fd7222acead61e0a2790056cb430944f
Author: Dan VrÃtil <dvratil redhat com>
Date:   Wed Nov 30 14:25:34 2011 +0100

    Parse attachments with EM_FORMAT_HTML_INLINE_DISPOSITION as well
    
    This makes audio-inline, itip formatter and vcard-inline plugins work

 mail/em-format-html-display.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index f35e46c..7d6d064 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -493,8 +493,13 @@ efhd_parse_attachment (EMFormat *emf,
 
         /* Though it is an attachment, we still might be able to parse it and
          * so discover some parts that we might be event able to display. */
-        if (handler && handler->parse_func && (handler->flags & EM_FORMAT_HANDLER_COMPOUND_TYPE))
-                handler->parse_func (emf, puri->puri.part, part_id, info, cancellable);
+        if (handler && handler->parse_func && 
+            ((handler->flags & EM_FORMAT_HANDLER_COMPOUND_TYPE) ||
+             (handler->flags & EM_FORMAT_HANDLER_INLINE_DISPOSITION))) {
+                EMFormatParserInfo attachment_info = { .handler = handler,
+                                                       .is_attachment = TRUE };
+                handler->parse_func (emf, puri->puri.part, part_id, &attachment_info, cancellable);
+        }
 
 	e_attachment_set_mime_part (puri->attachment, part);
 	e_attachment_set_shown (puri->attachment, puri->shown);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]