[evolution/webkit: 128/177] Don't automatically treat inline parts as attachments (fixes #668524)"



commit a86976bcd96da9f1879770de6be413719008c679
Author: Dan VrÃtil <dvratil redhat com>
Date:   Tue Jan 24 10:17:59 2012 +0100

    Don't automatically treat inline parts as attachments (fixes #668524)"

 em-format/em-format.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/em-format/em-format.c b/em-format/em-format.c
index 0498d0c..20ac4e4 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -1979,8 +1979,7 @@ em_format_parse_part_as (EMFormat *emf,
          * as an attachment. The parser will decide how to display it. */
         disposition = camel_mime_part_get_content_disposition (part);
         if (!info->force_handler && disposition && 
-            ((g_strcmp0 (disposition->disposition, "attachment") == 0) ||
-             (g_strcmp0 (disposition->disposition, "inline") == 0))) {
+            (g_strcmp0 (disposition->disposition, "attachment") == 0)) {
                 ninfo.is_attachment = TRUE;
                 handler = em_format_find_handler (emf, "x-evolution/message/attachment");
                 ninfo.handler = handler;



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