[evolution/webkit: 67/105] Parse attachments with EM_FORMAT_HTML_INLINE_DISPOSITION as well



commit c951ce8dd02a3944871c1391cdc39949ee09c92d
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 13da70c..55d219a 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -496,8 +496,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]