[evolution] Bug 708390 - text-highlight: Don't interfere with printing



commit 169ec754ae991e0bd3975ee89e6110f1a0a8d841
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Sep 30 15:36:49 2013 -0400

    Bug 708390 - text-highlight: Don't interfere with printing
    
    The text-highlight module is for enhancing the *display* of textual
    email parts.  It should not interfere at all when printing an email.

 .../e-mail-formatter-text-highlight.c              |   29 +------------------
 1 files changed, 2 insertions(+), 27 deletions(-)
---
diff --git a/modules/text-highlight/e-mail-formatter-text-highlight.c 
b/modules/text-highlight/e-mail-formatter-text-highlight.c
index b387408..ce61d88 100644
--- a/modules/text-highlight/e-mail-formatter-text-highlight.c
+++ b/modules/text-highlight/e-mail-formatter-text-highlight.c
@@ -139,33 +139,8 @@ emfe_text_highlight_format (EMailFormatterExtension *extension,
        }
 
        if (context->mode == E_MAIL_FORMATTER_MODE_PRINTING) {
-               CamelDataWrapper *dw;
-               CamelStream *filter_stream;
-               CamelMimeFilter *mime_filter;
-
-               dw = camel_medium_get_content (CAMEL_MEDIUM (mime_part));
-               if (dw == NULL)
-                       goto exit;
-
-               camel_stream_write_string (
-                       stream, "<pre><div class=\"pre\">", cancellable, NULL);
-
-               filter_stream = camel_stream_filter_new (stream);
-               mime_filter = camel_mime_filter_tohtml_new (
-                       CAMEL_MIME_FILTER_TOHTML_PRE |
-                       CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES, 0);
-               camel_stream_filter_add (
-                       CAMEL_STREAM_FILTER (filter_stream), mime_filter);
-               g_object_unref (mime_filter);
-
-               e_mail_formatter_format_text (
-                       formatter, part, filter_stream, cancellable);
-
-               camel_stream_flush (filter_stream, cancellable, NULL);
-               g_object_unref (filter_stream);
-
-               camel_stream_write_string (
-                       stream, "</div></pre>", cancellable, NULL);
+               /* Don't interfere with printing. */
+               goto exit;
 
        } else if (context->mode == E_MAIL_FORMATTER_MODE_RAW) {
                gint pipe_stdin, pipe_stdout;


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